Wait_var – Yaskawa FSP Amplifier FlexWorks User Manual
Page 190

Command Reference
190
WAIT_VAR
G
ROUP
Wait
S
YNTAX
WAIT_VAR <variable> <condition> <value>
O
P
. C
ODE
110
M
ODES
Program, Sequential
D
ESCRIPTION
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
S
YNTAX
A
RGUMENTS
value
Set a value with the same units as
<variable>.
Serial 4 V
E
XAMPLE
LABEL 1
SET_ZERO_POSITION demand_position
SLIDE 50
WAIT_VAR Position_actual_value = 20000
SLIDE 0
END
E
XAMPLE
E
XPLANATION
Position_actual_value is set to zero; motor starts
moving at a constant speed (50uu); as soon as the
motor reaches position 20000 the next command is
executed and motor stops.
S
EE
A
LSO
IF, WAIT_INPUT