I am trying to move the robot based on external inputs, which updates a POS, P_offset, which is polled using a timer and updated in an interrupt. Timing of when P_offset gets updated is not critical.
The main part of the code that moves the robot resides in a REPEAT loop. The robot follows the external input without problems, however it stops between each movement. I initially had:
Code
; Set tool and base.
$TOOL = TOOL_DATA[1]
$BASE = $NULLFRAME ;BASE_DATA[1]
CONTINUE
REPEAT
PTP $POS_ACT:Sensor_Offset
CONTINUE
UNTIL (run_saved==TRUE)
Display More
However this didn't work. I then tried to add a second pos in there hoping that it'll give the robot enough 'look ahead' to make the movement continuous, but this didn't work either:
Code
; Set tool and base.
$TOOL = TOOL_DATA[1]
$BASE = $NULLFRAME ;BASE_DATA[1]
CONTINUE
P_current = $POS_ACT
P_next = $POS_ACT:Sensor_Offset
REPEAT
PTP P_current
PTP P_next
P_current = P_next
P_next = $POS_ACT:Sensor_Offset
CONTINUE
UNTIL (run_saved==TRUE)
Display More
Software is v5.4. Any suggestions would be much appreciated