Command Reference
switch Specifies the required output state:
State Code
Off 0
On 1
Serial 1
U
Example LABEL 1
SET_ZERO_POSITION demand_position
SLIDE 200
WAIT_VAR Position_actual_value >= 10000
SLIDE 0
SET_OUTPUT 2 ON
END
Example
Explanation
Current Position is set to zero; slide motion takes place until the
position value equals or exceeds 10000 uu (the WAIT_VAR
command stalls the execution of the next command). When the
position value equals or exceeds 10000 uu, the SLIDE 0
command “stops” (tells the motor to move at 0 speed); the
motor output 2 is set ON; End of program.
See Also SET_OUTPUTS
XtraWare User Manual 149