16-8
16-3-15. WAIT_IP
Format
WAIT_IP [Input port No.][Condition] [Input value] T=[Value] s
Function It stops operation until the condition is
satisfied. If a time condition (T=) is
given, it resumes operation after the
specified time interval.
Input port No.
Terminal type: I1# .......... 1-bit input
I4# .......... 4-bit input
I8# .......... 8-bit input
I16# ........ 16-bit input
Terminal No.
Value or variable name (GI, LI)
Condition
Lock condition
Standard.
I/O lock.
Condition Relation condition:
=Terminal status and Input value are equal.
Input value A value to compare with the terminal status.
(Value or variable name, or ON/OFF for 1-bit
input.)
Syntax check None.
Value Specify duration of time for the wait condition
to be satisfied before executing the next
command. (Value or variable name (GR,
LR).) [Set range: 0 - 99.99]
T=0: to wait until condition is satisfied.
Example Stop operation until I1# type input
terminal is turned ON and resume
operation after 20 seconds of time.
WAIT_IP I1#(001) = ON T= 20
The same command in
conventional models
WAIT IPORT=, T=
16-3-16. WAIT_VAL
Format
WAIT_VAL[Input No.][Condition] [Input value] T =[Timer] s
Function Input No. Variable (GB, LB, GI, LI)
It stops operation until the condition is
satisfied. If a time condition (T=) is
given, it resumes operation after the
specified time interval regardless of
the result of the condition test.
Condition Standard.
Lock condition I/O lock.
Condition [Relation condition]
= Value 1 and Value 2 are equal.
< Value 1 is smaller than Value 2.
> Value 1 is bigger than Value 2.
<= Value 1 is equal to or less than Value 2.
>= Value 1 is equal to or bigger than Value 2.
<> Value 1 is not equal to Value 2.
Syntax check None. Input value Value or variable
Timer Specify duration of time for the condition to
be satisfied before executing the next
command. (Value or variable name (GR,
LR).) [Set range: 0 - 99.99]
T=0: to wait until condition is satisfied.
Example Stop operation until I1#type input terminal is turned ON, however, resume operation after 20 seconds of
time.
WAIT_VAL I1#(001) = ON T= 20