Command Reference
WAIT_VAR
Table explanation
Group
Wait
Syntax
WAIT_VAR <variable> <condition> <value>
Op. Code
110
Modes
Program, Sequential
Description
Pauses execution of program until the condition on <variable>
value is met.
variable
System variable (see Chapter
9, List of
System Variables).
Serial
1 U
condition
Select a relational operator:
Condition Code
== 0
> 1
< 2
>= 3
<= 4
!= 5
Serial
1 U
Syntax
Arguments
value
Set a value with the same units as
<variable>.
Serial
4 V
Example
LABEL 1
SET_ZERO_POSITION demand_position
SLIDE 50
WAIT_VAR Position_actual_value = 20000
SLIDE 0
END
Example
Explanation
Position_actual_value is set to zero; motor starts moving at a
constant speed (50 uu); as soon as the motor reaches position
20000 the next command is executed and motor stops.
See Also
IF, WAIT_INPUT
XtraWare User Manual
169
Summary of Contents for XTRAWARE - V3.0
Page 2: ......
Page 4: ......
Page 12: ......
Page 79: ...Operating the XtraDrive Using XtraWare Table 14 Sample ECAM Table XtraWare User Manual 69 ...
Page 202: ......
Page 220: ......
Page 258: ...List of Operation Codes 248 XtraWare User Manual versions use STOP_EX ...