Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 83

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents