2-1
Section
CPM2A/CPM2C Interrupt Functions
41
Operation Example
One-shot Mode
Explanation
In this example, the timer is started when the execution condition (00005) turns
from OFF to ON. When the time (approx. 1 s) has elapsed, the interrupt subrou-
tine is executed one time. When the interrupt subroutine is executed, 1 is added
to DM 0000.
Elapsed time: 100 x 100 x 0.1 = 1,000 ms
Programming
ON for 1 cycle at beginning
of operation
Clears Increment Area (DM 0000).
Always ON
(Execution condition)
Decrement counter setting
Count: 100 (0000 to 9999 BCD)
Count interval setting
Count interval setting: 10 ms
(0005 to 0320 BCD)
Starts interval timer in one-shot mode.
Executes interrupt one time
only when time elapses.
(69)