MPC2000 Reference Manual [JAPANESE] [ENGLISH]
yControlStatementz   yControlz
yUSEz
WAIT

WAIT SW(0)==1
WAIT SW(-2)
yFORMATz yFUNCTIONz
WAIT logical_eqations

waiting until the condition is 1
yEXPLANATIONz
It's pollling until the condition will be 1.

WAIT SW(0)==0 Waiting until SW(0) is 1
WAIT SW(-2) Waiting until SW(-2) is 1
WAIT A==100 Waiting until A is 100

Wait allows the conjuctions(AND,OR) of logical arguments.
When The timeout condition is necessary, you should add "OR TIMEOUT(0)"

WAIT SW(1)&SW(2) OR TIMEOUT(0)




10 timer_=10
20 WAIT SW(1)&SW(2) OR TIMEOUT(0)
30 IF TIMEOUT(0) THEN : GOTO *TIME_OUT : END_IF
[LASTMODIFY]2019-10-04 14:34:07 [CREATEDATE]2007-09-21 19:48:59
MPC2000 Reference Manual -R5.11-   (C)2007 ACCEL Corp. all right reserved.