CPM2A/CPM2C Interrupt Functions
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
(Execution condition)
Always ON
Clears Increment Area (DM 0000).
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.
(69)
Executes interrupt one time
only when time elapses.
Section
2-1
41
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?