2-2
Section
CPM2A/CPM2C High-speed Counters
74
Starting the Count Operation and Permitting Interrupts
Incrementing Counter
Decrementing Counter
Interrupt control designation (004: Refresh incrementing counter SV)
Fixed: 000
Control data word
Interrupt control designation (003: Refresh decrementing counter SV)
Fixed: 000
Control data word
Specify and store 0
Specify interrupt input (counter mode) 3
Specify interrupt input (counter mode) 2
Specify interrupt input (counter mode) 1
Specify interrupt input (counter mode) 0
0: Refresh SV
1: Do not refresh SV
(@)INT(89)
004
000
C
2
(@)INT(89)
003
000
C
2
Note
When INT(89) is executed to mask interrupts during counter operation (interrupt
control designation 000), counter operation will be stopped and the counter PV
will be reset. To use the counter again, start the counter operation again as de-
scribed above.
Change PV
This function refreshes the counter’s present value (PV).
Port specifier (100. 102, 102, 103: Interrupt inputs (counter mode) 0 to 3)
Control designation (002: Change PV)
Change PV data word
Change PV data
Registers the PV data to be changed.
0000 to FFFF
(@)INT(89)
P
002
C
2
C
2
Read PV
This function reads the counter’s present value (PV).
Using an Instruction
Port specifier (100. 102, 102, 103: Interrupt inputs (counter mode) 0 to 3)
Control designation (000: Read PV)
Word for storing PV
Read PV data
The PV that is read is stored here.
0000 to FFFF
(@)PRV(62)
P
000
D
D
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...