GP-Pro EX

nmurray

Member
Join Date
Apr 2014
Location
USA
Posts
90
I am at a loss on how to do this seemingly simple task.

I am trying to set a value to a Float Variable using a MOV statement.

S1 = 0.5 it changes this to 0r0.5
D1 = TestFloat (Variable I created to test this, it is of Type Float Variable)

I get this error:
3408 INIT:2 S1 The data type or attribute of the operand does not match other operands. Change the data type or attribute.

I have tried moving 0 or 1 to the TestFloat variable and still no luck, I'm not sure how GP-Pro wants me to type in a float value.
 
I get this error:
3408 INIT:2 S1 The data type or attribute of the operand does not match other operands. Change the data type or attribute.

Based on this it looks like you are trying to move a float into a Integer register. Many devices wont let you do that.
 
ugh I think I solved my problem.. it must be 0f0.5

I thought I tried this earlier but apparently not.

However this brings up a different issue, how can I convert an input to a type of float?
I was hoping to move it to a float variable then scale it so I can get a decimal point.
Or will the input show a decimal point based on my scaling setting I setup for the input?
 

Similar Topics

I have EB Pro installed on windows 11, I can open an existing project and edit but when I got to parameters tab and open page I get the hourglass...
Replies
0
Views
48
Hi all, I am new to can 300 pro, need help with Block Processing Programming in Siemens s7300. Can you send the block processing installer in...
Replies
0
Views
117
Hello, I am using Unity pro V15. I have Quantum CPU 671 and Ethernet NOE 77101 configured. I have configured IO scanning on NOE. I have attached...
Replies
5
Views
137
Hello, I'm new to a program EBpro and I have to find a way to make a numeric object's background change colors depending on read data from plc...
Replies
3
Views
261
Hi guys, I am looking for some help with using GP-PRO to open a project file. Every time I try to open my project file, I receive a message...
Replies
4
Views
380
Back
Top Bottom