Omron CJ2 - 02-2010 User Manual page 547

Cj2 cpu unit software
Table of Contents

Advertisement

Instruction
Mnemonic
Code
COUNTER
CNTW
814
WAIT
(BCD)
CNTWX
818
(Binary)
HIGH-
TMHW
815
SPEED
(BCD)
TIMER WAIT
TMHWX
817
(Binary)
LOOP
LOOP
809
LEND
LEND
810
CJ2 CPU Unit Software User's Manual
Symbol/Operand
CNTW(814)
Delays execution of the rest of the block program until the
N
specified count has been achieved. Execution will be continued
from the next instruction after CNTW(814)/CNTWX(817) when
SV
the counter counts out.
SV: 0 to 9,999 times for BCD and 0 to 65,535 times for binary
N: Counter number
SV: Set value
I:
Count input
CNTWX(818)
N
SV
N: Counter number
SV: Set value
I:
Count input
TMHW(815)
Delays execution of the rest of the block program until the
N
specified time has elapsed. Execution will be continued from
the next instruction after TMHW(815) when the timer times out.
SV
SV: 0 to 99.99 s for BCD and 0 to 655.35 s for binary
N: Timer number
SV: Set value
TMHW(817)
N
SV
N: Timer number
SV: Set value
BEND
---
LOOP(809) designates the beginning of the loop program.
Execution condition
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.
Function
"A"
executed.
SV
preset.
Time elapsed.
"B" executed.
"C" executed.
"C"
"C"
executed.
executed.
C
"A"
executed.
SV
Time elapsed.
preset.
C
Execution
Execution
Execution
condition
condition
condition
ON
OFF
OFF
Loop repeated
Appendices
Execution
Location
condition
Block pro-
Required
gram
Block pro-
Required
gram
"B" executed.
"C" executed.
Block pro-
Required
gram
Execution
condition
OFF
Block pro-
Required
gram
A-71

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents