Appendices
A-10
CJ2 CPU Unit Software User’s Manual
A-1-4 Timer and Counter Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
HUNDRED-MS
TIMER
TIM
(BCD)
--- Output Required
TIMX
(Binary)
550
TEN-MS TIMER TIMH
(BCD)
015 Output Required
TIMHX
(Binary)
551
ONE-MS
TIMER
TMHH
(BCD)
540 TMHH(540)/TMHHX(552) operates a decrementing timer with
units of 1-ms. The setting range for the set value (SV) is 0 to
9.999 s for BCD and 0 to 65.535 s for binary (decimal or hexa-
decimal).
The timing charts for TMHH(540) and TMHHX(552) are the
same as those given above for TIMH(015).
Output Required
TMHHX
(BCD)
552
TIM
N
S
N: Timer number
S: Set value
SV
SV
Timer input
Timer PV
Completion
Flag
Timer input
Timer PV
Completion
Flag
TIM/TIMX(550) operates a decrementing timer with
units of 0.1-s. The setting range for the set value
(SV) is 0 to 999.9 s for BCD and 0 to 6,553.5 s for
binary (decimal or hexadecimal).
Timer Input Turned OFF before Completion Flag
Turns ON
TIMX(550)
N
S
N: Timer number
S: Set value
TIMH(015)
N
S
N: Timer number
S: Set value
SV
SV
Timer input
Timer PV
Completion
Flag
Timer input
Timer PV
Completion
Flag
TIMH(015)/TIMHX(551) operates a decrementing
timer with units of 10-ms. The setting range for the
set value (SV) is 0 to 99.99 s for BCD and 0 to
655.35 s for binary (decimal or hexadecimal).
Timer Input Turned OFF before Completion Flag Turns
ON
TIMHX(551)
N
S
N: Timer number
S: Set value
TMHH(540)
N
S
N: Timer number
S: Set value
0
0
Timer input
Timer PV
Completion
Flag
Completion
Flag
Timer input
ON
OFF
ON
OFF
SV
ON
OFF
ON
OFF
SV
Timer PV
Timer Input Turned OFF before Completion
Flag Turns ON
TMHHX(552)
N
S
N: Timer number
S: Set value