![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414078.webp)
2-2
Section
CPM2A/CPM2C High-speed Counters
57
The following table shows the instructions related to high-speed counter control.
Instruction
Control
Operation
(@)CTBL(63)
Register target value
comparison table
Registers target value comparison table.
Register range
comparison table
Registers range comparison table.
Register target value
comparison table and
start comparison
Registers target value comparison table
and starts comparison.
Register range
comparison table and
start comparison
Registers range comparison table and
starts comparison.
(@)INI(61)
Start comparison
Starts comparison with registered
comparison table.
Stop comparison
Stops comparison.
Change PV
Changes the high-speed counter PV.
(@)PRV(62)
Read PV
Reads the high-speed counter PV.
(
)
(
)
Read status
Reads the high-speed counter status.
Read range comparison
result
Reads range comparison result.
(@)INT(89)
Mask all interrupts
Prohibits all interrupts, including interrupt
inputs, interval timer interrupts,
high-speed counters, etc.
Unmask all interrupts
Permits all interrupts, including interrupt
inputs, interval timer interrupts,
high-speed counters, etc.
The following table shows the data areas related to high-speed counter control.
Word
Bits
Name
Contents
248
249
00 to 15
High-speed counter PV
Reads high-speed counter
PV
249
00 to 15
g
p
g
p
PV.
252
00
High-speed counter reset
When this bit turns ON, a
software reset is triggered
for the high-speed counter.
AR11
00 to 07
High-speed counter range
comparison results
ON: Condition satisfied
OFF: Condition not satisfied
08
High-speed counter
comparison
ON: Comparison in progress
OFF: Comparison stopped
09
High-speed counter PV
overflow/underflow
ON: Overflow/underflow
OFF: Normal
Register Target Value Comparison Table
Register Target Value Comparison Table and Start Comparison
These functions register a comparison table to the CPM2A/CPM2C for the pur-
pose of count checking in target value comparison. It is also possible to start the
comparison along with the registration.
Register Target Value Comparison Table
Port specifier (000: High-speed counter)
Mode designation (002: Register target value comparison table only)
Beginning word of comparison table
(@)CTBL(63)
000
002
S
Ladder Diagram
Programming