2-2
Section
CPM2A/CPM2C High-speed Counters
60
Change PV
This function changes the high-speed counter PV.
Port specifier (000: High-speed counter)
Control designation (002: Change PV)
Beginning word of PV data to change
Rightmost 4 digits
Leftmost 4 digits
PV data to change (Rightmost and leftmost)
Register the PV data to be changed.
The leftmost digit shows the sign (+/–).
Differential phase input mode
Pulse + direction input mode
Up/down pulse input mode
F8388608 to 08388607
Increment mode
00000000 to 16777215
(@)INI(61)
000
002
C
2
C
2
C
2
+1
No interrupt will occur during a target value comparison even if the target value
registered in the comparison table is changed by INI(61).
Read PV
This function reads the high-speed counter PV.
Using an Instruction
Port specifier (000: High-speed counter)
Control designation (000: Read PV)
Beginning word for storing PV
Rightmost 4 digits
Leftmost 4 digits
PV (Rightmost and leftmost)
The read PV will be stored here.
Differential phase input mode
Pulse + direction input mode
Up/down pulse input mode
F8388608 to 08388607
Increment mode
00000000 to 16777215
The leftmost digit shows the sign (+/–).
(@)PRV(62)
000
002
C
2
D
D+1
Using Data Areas
The high-speed counter PV is stored in words 248 and 249 as shown below.
SR 248
SR 249
PV (Rightmost word)
PV (Leftmost word)
Words 248 and 249 are refreshed with every scan, so there may be a discrepan-
cy from the exact PV at any given time.
When the high-speed counter is not used, words 248 and 249 can be used as
work words.
When the PV is read by executing PRV(62), words 248 and 249 are refreshed
with the same timing.