![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414094.webp)
2-2
Section
CPM2A/CPM2C High-speed Counters
73
The following table shows the instruction operations related to interrupt input
(counter mode) control.
Instruction
Control
Operation
(@)INT(89)
Refresh incrementing
counter SV
Refreshes the counter’s SV and starts the
incrementing count.
Refresh decrementing
counter SV
Refreshes the counter’s SV and starts the
decrementing count.
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.
(@)INI(61)
Change PV
Changes the counter’s PV.
(@)PRV(62) Read PV
Reads the counter’s PV.
The functions related to input interrupts (counter mode) are executed according
to the data areas shown in the following table.
Word
Bits
Name
Contents
240
00 to 15
SV area for input interrupt (counter mode) 0
Stores the
’
241
00 to 15
SV area for input interrupt (counter mode) 1
counter’s set
value (SV)
242
00 to 15
SV area for input interrupt (counter mode) 2
value (SV).
243
00 to 15
SV area for input interrupt (counter mode) 3
244
00 to 15
PV area for input interrupt (counter mode) 0
Stores the
’
245
00 to 15
PV area for input interrupt (counter mode) 1
counter’s
present value
246
00 to 15
PV area for input interrupt (counter mode) 2
present value
(PV).
247
00 to 15
PV area for input interrupt (counter mode) 3
(PV).
Refresh Incrementing Counter SV / Refresh Decrementing Counter SV
These functions store the counter’s set values in data areas and refresh them by
means of INT(89). In this way, they start the count operation for interrupt inputs
(counter mode) and they permit interrupts.
Storing Set Values in Data Areas
The counter’s set values are stored in words 240, 241, 242, and 243.
SR 240
SR 241
SR 242
SR 243
SV for interrupt input (count mode) 0: 0000 to FFFF
SV for interrupt input (count mode) 1: 0000 to FFFF
SV for interrupt input (count mode) 2: 0000 to FFFF
SV for interrupt input (count mode) 3: 0000 to FFFF
Ladder Diagram
Programming