![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414420.webp)
7-15
Section
Timer and Counter Instructions
402
The port specifier (P) specifies the high-speed counter or pulse output that will
be controlled.
P
Function
000
Specifies high-speed counter input (inputs 00000, 00001, and 00002), in-
put frequency for synchronized pulse control (inputs 00000, 00001, and
00002), single-phase pulse output 0 with no acceleration/deceleration (out-
puts 01000 and 01001), single-phase pulse output 0 with trapezoidal ac-
celeration/deceleration (output 01000), or synchronized pulse control out-
put 0 (output 01000/01001).
010*
Specifies single-phase pulse output 1 with no acceleration/deceleration
(output 01001) or synchronized pulse control output 1 (output 01001).
100*
Specifies interrupt input 0 in counter mode (input 00003).
101*
Specifies interrupt input 1 in counter mode (input 00004).
102*
Specifies interrupt input 2 in counter mode (input 00005).
103*
Specifies interrupt input 3 in counter mode (input 00006).
Note
*These settings can be used in CPM2A/CPM2C PCs only.
The control data, C, determines which type of data will be accessed.
C
Function
Destination word(s)
000
Reads the PV of the high-speed counter or interrupt
input (counter mode) or the input frequency of the
synchronized pulse control.
D and D+1
001
Reads the status of the high-speed counter or pulse
output.
D
002
Reads the results of range comparison.
D
003*
Reads the PV of the pulse output.
D and D+1
Note
*This setting can be used in CPM2A/CPM2C PCs only.
If C is 000, PRV(62) reads the PV of the specified high-speed counter or interrupt
input (counter mode).
High-speed Counter PV or Input Frequency (P=000)
When the output is used for a high-speed counter, PRV(62) reads the PV of the
specified high-speed counter and writes the 8-digit BCD value in D and D+1.
(The leftmost 4 digits are written to D+1.)
The PV can be F838 8608 to 0838 8607 in differential phase mode, pulse + di-
rection input mode, or up/down input mode. (The hexadecimal “F” in the first digit
acts as a minus sign.)
The PV can be 0000 0000 to 1677 7215 in increment mode.
When the output is used for synchronized pulse control, PRV(62) reads the input
frequency and writes the 8-digit BCD value in D and D+1. The input frequency
can be 0000 0000 to 0002 0000.
Interrupt Input PV (P=100 to 103)
PRV(62) reads the PV of the specified interrupt input (counter mode) and writes
the 4-digit hexadecimal value (0000 to FFFF) in D.
If C is 001, PRV(62) reads the operating status of the specified high-speed
counter or pulse output and writes the data to D.
Read PV (C=000)
Read Status (C=001)