Disableturns servo offstatement, Do untildo/untilstatement, Disable – Lenze PMSS1000 Simple Servo User Manual
Page 52: Turns servo off statement, Do until, Do/until statement

Indexer-Programmer-Manual.pdf REV 1.3
DISABLE
Turns
servo
OFF
Statement
Purpose
DISABLE turns power to the motor OFF and disables servo.
Syntax DISABLE
Remarks
After execution of enable APOS and TPOS not valid. They will remain their last values
before DISABLE has been invoked. They will be reset to 0 after execution of ENABLE
statement.
See Also ENABLE
Example: DISABLE
DO
UNTIL
Do/Until Statement
Purpose
DO
UNTIL repeatedly until
Syntax
DO
any
valid
statement(s)
The condition to be tested.
The condition may be a comparison, an input being TRUE or FALSE (H or L) system
flag or a variable used as flag (if 0 - false, else - true ).
Comparisons compare the values of two operands and
determine if the condition is TRUE or FALSE. A comparison may
be greater (>), less than (<), less than or equal (<=), or greater
than or equal to (>=). The operands of a comparison may be
user variable, system variables, analog input values, or
constants.
IN_A1
;an input is evaluated to true if active
V1
;user variable. True when non 0, false
;when 0
INPOSITION
;system
flag
V1 > V2
;user variable comparison
V1 > APOS
;comparison user and system variables
APOS < 8.4
;compare system variable to constant
Remarks
Unlike WHILE statement, the loop body will always be executed at least once
because the DO/UNTIL statement tests the
executed.
See Also WHILE,
IF
Example:
DO MOVED V1
WAIT TIME 2000 ;Do statements while
WHILE IN_A2
;IN_A2 is activated (TRUE)
52