Command Reference
then
Specifies the action to take:
Setting Code
CALL: Call subroutine
with specified <label>;
when finished, return.
0
GO_TO: Continue from
the specified <label>.
1
Serial
1 U
Syntax
Arguments
label
Label to jump to as required by the operation
specified in <then>.
Serial
1 U
Example
SET_ZERO_POSITION demand_position
SET_OUTPUT 1 Off
DELAY 1000
LABEL 1
SLIDE 100
DELAY 100
IF Position_actual_value > 550000 THEN GO_TO 2
GO_TO 1
END
LABEL 2
SET_OUTPUT 1 ON
SLIDE 0
END
Example
Explanation
Position is set to zero, output 1 is set to off. The motor starts
moving at a constant speed. After a short delay the term is
checked (motor is still running). If true (i.e., the position value is
greater than 550000) go to LABEL 2, output 1 is set to ON, motion
stops, end of program. If false, the subroutine labeled 1 starts
again, until the term becomes true.
See Also
IF_INPUT, CASE, CALL, GO_TO, WAIT_VAR
124
XtraWare User Manual
Содержание XTRAWARE - V3.0
Страница 2: ......
Страница 4: ......
Страница 12: ......
Страница 79: ...Operating the XtraDrive Using XtraWare Table 14 Sample ECAM Table XtraWare User Manual 69 ...
Страница 202: ......
Страница 220: ......
Страница 258: ...List of Operation Codes 248 XtraWare User Manual versions use STOP_EX ...