196
5-21-7
COUNTER WAIT – CNTW<14>
CNTW<14>
N
SV
I
Instruction Format
N
: Counter number
TC
Definer Data Areas
SV
: Set value (BCD)
IR, AR, DM, HR, LR, #
Operand Data Areas
I
: Count input
IR, SR, AR, HR, TC, LR
Each TC number can be used as the definer in only one timer or counter in-
struction, including the normal ladder-diagram timers and counters.
CNTW<14> allows you to create a ‘count’ lag (SV) between execution of the
program part preceding the CNTW<14> (i.e., between BPRG(96) and
CNTW<14> ) and the part following it (i.e., between CNTW<14> and
BEND<01>). The first part will be executed the first time the block program is
entered. When CNTW<14> is reached, the execution of the block program
will stop until SV has been reached, at which time the second part of the
block program will be executed. Once the entire block program has been ex-
ecuted, the process is repeated.
Example
In the following example, B will be executed after the execution of A and after
7,000 counts of 00100 while 00000 is ON.
BPRG(96) 00
CNTW<14>
A
B
BEND<01>
00000
005
#7000
00100
Address
Instruction
Operands
00000
LD
00000
00001
BPRG(96)
00
A
00200
CNTW<14>
005
#
7000
00100
B
00300
BEND<01>
Flags
ER:
SV data is not BCD.
Indirectly addressed DM word is non-existent. (Content of
*
DM word
is not BCD, or the DM area boundary has been exceeded.)
Limitations
Description
Block Programming Instructions
Section 5-21