A-73
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-31 Block Programming Instructions
COUNTER
WAIT
CNTW
(BCD)
814 CNTW(814)
N
SV
N: Counter number
SV: Set value
I: Count input
Block pro-
gram
Required
CNTWX
(Binary)
818 CNTWX(818)
N
SV
N: Counter number
SV: Set value
I: Count input
HIGH-
SPEED
TIMER WAIT
TMHW
(BCD)
815 TMHW(815)
N
SV
N: Timer number
SV: Set value
Block pro-
gram
Required
TMHWX
(Binary)
817 TMHW(817)
N
SV
N: Timer number
SV: Set value
LOOP LOOP 809 --- Block pro-
gram
Required
LEND LEND 810 LEND (810) LEND(810) or LEND(810) NOT specifies the end of the loop.
When LEND(810) or LEND(810) NOT is reached, program execu-
tion will loop back to the next previous LOOP(809) until the oper-
and bit for LEND(810) or LEND(810) NOT turns ON or OFF
(respectively) or until the execution condition for LEND(810) turns
ON.
Block pro-
gram
Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
C
SV
preset.
Time elapsed.
Delays execution of the rest of the block program until the
specified count has been achieved. Execution will be continued
from the next instruction after CNTW(814)/CNTWX(817) when
the counter counts out.
SV: 0 to 9,999 times for BCD and 0 to 65,535 times for binary
"C"
executed.
"C"
executed.
"C" executed.
"B" executed.
"A"
executed.
C
BEND
Time elapsed.
Delays execution of the rest of the block program until the
specified time has elapsed. Execution will be continued from
the next instruction after TMHW(815) when the timer times out.
SV: 0 to 99.99 s for BCD and 0 to 655.35 s for binary
"C" executed.
"B" executed.
SV
preset.
"A"
executed.
Loop repeated
Execution condition
Execution
condition
ON
Execution
condition
OFF
Execution
condition
OFF
Execution
condition
OFF
LOOP(809) designates the beginning of the loop program.