CPM2A/CPM2C High-speed Counters
74
Starting the Count Operation and Permitting Interrupts
Incrementing Counter
(@)INT(89)
004
000
C
Decrementing Counter
(@)INT(89)
003
000
C
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).
(@)INT(89)
P
002
C
2
Read PV
This function reads the counter's present value (PV).
Using an Instruction
(@)PRV(62)
P
000
D
Interrupt control designation (004: Refresh incrementing counter SV)
Fixed: 000
Control data word
2
Interrupt control designation (003: Refresh decrementing counter SV)
Fixed: 000
Control data word
2
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
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
C
2
Registers the PV data to be changed.
0000 to FFFF
Port specifier (100. 102, 102, 103: Interrupt inputs (counter mode) 0 to 3)
Control designation (000: Read PV)
Word for storing PV
D
Read PV data
The PV that is read is stored here.
0000 to FFFF
Section
2-2
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?