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

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

Advertisement

CPM2A/CPM2C High-speed Counters
Ladder Diagram
Programming
The following table shows the instructions related to high-speed counter control.
Instruction
Control
(@)CTBL(63)
Register target value
comparison table
Register range
comparison table
Register target value
comparison table and
start comparison
Register range
comparison table and
start comparison
(@)INI(61)
Start comparison
Stop comparison
Change PV
( )
(@)PRV(62)
(
)
Read PV
Read status
Read range comparison
result
(@)INT(89)
Mask all interrupts
Unmask all interrupts
The following table shows the data areas related to high-speed counter control.
Word
Bits
248
High-speed counter PV
00 to 15
249
249
00 to 15
252
00
High-speed counter reset
AR11
00 to 07
High-speed counter range
comparison results
08
High-speed counter
comparison
09
High-speed counter PV
overflow/underflow
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
(@)CTBL(63)
Port specifier (000: High-speed counter)
000
Mode designation (002: Register target value comparison table only)
002
Beginning word of comparison table
S
Registers target value comparison table.
Registers range comparison table.
Registers target value comparison table
and starts comparison.
Registers range comparison table and
starts comparison.
Starts comparison with registered
comparison table.
Stops comparison.
Changes the high-speed counter PV.
Reads the high-speed counter PV.
Reads the high-speed counter status.
Reads range comparison result.
Prohibits all interrupts, including interrupt
inputs, interval timer interrupts,
high-speed counters, etc.
Permits all interrupts, including interrupt
inputs, interval timer interrupts,
high-speed counters, etc.
Name
g
p
Section
2-2
Operation
Contents
Reads high-speed counter
g
p
PV
PV.
When this bit turns ON, a
software reset is triggered
for the high-speed counter.
ON: Condition satisfied
OFF: Condition not satisfied
ON: Comparison in progress
OFF: Comparison stopped
ON: Overflow/underflow
OFF: Normal
57

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents