2-2
Section
CPM2A/CPM2C High-speed Counters
49
High-speed
counter function
PC Setup
DM 6642, bits 08 to 15
Encoder
inputs
Input mode
Count
Count-check interrupt
generated.
Differential phase input
Pulse + direction input
Up/down input
Increment input
Ladder diagram program
CTBL(63)
REGISTER COMPARI-
SON TABLE instruction
Register comparison
table
Start comparison
INI(61)
MODE CONTROL
instruction
Specified subroutine executed
(when count-check interrupts are
used).
Change PV
Start/stop
comparison
SBN(92)
RET(93)
Every scan
Counter PV
SR 249 SR 248
PRV(62)
Each time
HIGH-SPEED COUNTER
PV READ instruction
Read PV
Read comparison status
Read range comparison results
Range comparison
results
AR 1100 to AR 1107
PC Setup
DM 6642, bits
00 to 03
Selecting the Input Mode and Reset Method
Input Mode
Select the input mode for the high-speed counter according to the signal type.
Differential Phase Input Mode
In the differential phase input mode, the count is incremented or decremented
according to two differential phase signals with a multiplication of 4 (phase A and
phase B).
Maximum frequency: 5 kHz
Phase A
Phase B
Count
Nms
→
Frequency =
1,000
N x 4
ON
OFF
ON
OFF