1069
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Block Programming Instructions
3
WAIT/WAIT NOT
WAIT/WAIT NOT
Applicable Program Areas
*1 WAIT(805)/WAIT(805) NOT must be used in block programming regions even within subroutines and interrupt tasks.
Operands
z Operand Specifications
*1 CJ2 CPU Units only.
Flags
Instruction Mnemonic Variations
Function
code
Function
ONE CYCLE AND WAIT WAIT --- 805
The instructions from the WAIT instruction to the
BEND instruction are not executed until the execution
condition (when an operand is not specified) or the
specified bit (when an operand is specified) turns ON.
ONE CYCLE AND WAIT NOT WAIT NOT --- 805
Stops execution of the rest of the block program until a
specified bit OFF or an operand bit turns OFF
Symbol
Operation without an operand (operation by execution condition) Operation with an operand
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage Not allowed OK OK
OK*
1
OK*
1
Not allowed
Operand Description Data type Size
B Bit operand BOOL 1
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
B OKOKOKOKOKOK
OK*
1
OK*
1
--- --- --- --- --- OK OK OK OK ---
Name Label Operation
Error Flag ER • ON if WAIT(805) or WAIT(805) NOT is not in a block program.
• OFF in all other cases.
WAIT(805)
Execution condition
WAIT(805)
WAIT(805) NOT
B
B
B: Bit operand
B: Bit operand