Hi,
I have the next code:
1 '***********************************************************************************
2 Def Float Gripper_Distance
3 Def Float OffsetX
4 Gripper_Distance=149.5
5 '***********************************************************************************
6 If DIReqChangeGripper=1 Then OffsetX=PBattPre1.X-Gripper_Distance Else OffsetX=0
7 '***********************************************************************************
8 Mvs PBattPre1+(+OffsetX,+0.00,+0.00,+0.00,+0.00,+0.00)
9 '***********************************************************************************
With this routine I want to move robot to position PBattPre1 but I want that X coord to be different if the PLC require this.
If I try to save this in the robot, I receive an syntax error, on the line 8.
That means that the type of the OffsetX variable(FLOAT) is not correct to use there.
Can you told me with what type of variable I must to change OffsetX variable?