228
Timer and Counter Instructions
Section 3-6
Description
When the execution condition for MTIM(543)/MTIMX(554) is ON and the reset
and timer bits are both OFF, MTIM(543)/MTIMX(554) increments the PV in
D2. If the pause bit is turned ON, the timer will stop incrementing the PV, but
the PV will retain its value. MTIM(543)/MTIMX(554) will resume timing when
the pause bit goes OFF again.
The PV (content of D2) is compared to the eight SVs in S through S+7 each
time that MTIM(543)/MTIMX(554) is executed, and if any of the SVs is less
than or equal to the PV, the corresponding Completion Flag (D1 bits 00
through 07) is turned ON.
When the PV reaches 9999, the PV will be reset to 0000 and all of the Com-
pletion Flags will be turned OFF. If the reset bit is turned ON while the timer is
operating or paused, the PV will be reset to 0000 and all of the Completion
Flags will be turned OFF.
The following table shows the operation of MTIM(543)/MTIMX(554) for the
four possible combinations of the reset and pause bits.
Index Registers
---
Indirect addressing using
Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
D1
D2
S
Reset bit
(Bit 08)
Pause bit
(Bit 09)
Operation
OFF
OFF
The PV will be updated and the corresponding Completion
Flag will be turned ON when SV
≤
PV.
ON
The PV will not be updated and MTIM(543)/MTIMX(554)
will be treated as NOP(000).
0
to
to
Timer input
Timer PV (D2)
SV 7
Completion
flags (D1)
Bit 7
Timer PV
Timer SVs
SV 2
SV 1
SV 0
0
Bit 2
Bit 1
Bit 0
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...