Movemove statement, Move, Move statement – Lenze PMSS1000 Simple Servo User Manual
Page 62

Indexer-Programmer-Manual.pdf REV 1.3
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
{Statements1}
statements will be performed if condition is TRUE
{Statements 2}
statements will be performed if condition is FALSE
Remarks
Only {Statements 1} or {Statements 2} will be performed. It is impossible for both to take
place.
See Also
WHILE, DO
Example:
IF APOS > 4
V0=2
;----------------------------------------------------------
ELSE
V0=0
ENDIF
;----------------------------------------------------------
If V1 <> V2 && V3>V4
V2=9
ENDIF
MOVE
Move
Statement
Purpose
MOVE UNTIL performs motion until condition becomes TRUE. MOVE WHILE
performs motion while conditions stays TRUE. Statement suspends the program
execution until motion is completed unless statement is used with C modifier.
Syntax
MOVE [BACK] UNTIL
MOVE [BACK] WHILE
BACK
Optional. Changes direction of the move.
C Optional.
C[ontinue]
modifier allows program to continue while motion is performed. If
the other motion is not completed yet requested motion is placed
in motion stack. Motion stack is 32 entries deep. If there is no
62