CPM2A/CPM2C High-speed Counters
Application Examples
Target Value Comparison
62
AR 1100 through AR 1107 are refreshed with every scan, so there may be a dis-
crepancy from the exact PV range comparison result at any given time.
When the range comparison result is read by executing PRV(62), AR 1100
through AR 1107 are refreshed with the same timing.
Mask/Unmask All Interrupts
For details regarding masking and unmasking all interrupts, refer to 2-1-2 Inter-
rupt Inputs.
Explanation
In this example, specified interrupt subroutines are executed by matching the
high-speed counter's PV with five values set as a target value comparison table.
With each interrupt, the data in DM 0000 to DM 0004 is incremented by one.
Wiring (CPM2A)
E6B2-CWZ6C
Rotary Encoder
Orange
White
Black
Blue
Brown
Section
2-2