102
Pulse I/O Board
Section 2-2
Using PRV(62)
PRV(62) is used to read the PVs of high-speed counters 1 and 2. Specify
high-speed counter 1 or 2 in P (P=001 or 002).
The PV of each high-speed counter is stored as shown below. In Linear Mode,
the leftmost bit will be F for negative values.
Note
The PV can be read accurately at the time PRV(62) is executed.
Changing the PV
There are two ways to change the PV of high-speed counters 1 and 2.
• Resetting to 0 using one of the reset methods
• Using INI(61)
The method using INI(61) is explained here. Refer to
Reset Methods
on
page 71 for an explanation of the use of the reset methods.
Changing the PV with INI(61)
Change the PV of high-speed counters 1 and 2 by using INI(61) as shown
below.
To specify a negative number in Linear Mode, set F Hex in the leftmost digit.
Reading Status of High-speed Counters 1 and 2
There are 2 ways to read the status of high-speed counters 1 and 2:
• Reading the relevant flags in the AR area of the CQM1H
• Using PRV(62)
Reading the Relevant AR Area Flags
The CQM1H data words relating to high-speed counters 1 and 2 are shown
below. It is possible to know the status of high-speed counters 1 and 2 by
reading these words.
• Inner Board Error Codes
(@)PRV(62)
P
000
D
P: Port
001: Port 1
002: Port 2
D: First destination word
Leftmost four digits
Rightmost four digits
Linear Mode
Ring Mode
D+1
D
F8388608 to 08388607
(
−
8,388,608 to 8,388,607)
00000000 to 0006499
Word
Bits
Function
AR 04
08 to 15
Slot
2
The stored error codes are as follows:
00 Hex:
Normal
01, 02 Hex:
Hardware error
03 Hex:
PC Setup error
(@)INI(61)
P
002
P1
P: Port
001: Port 1
002: Port 2
P1: First PV word
Leftmost four digits
Rightmost four digits
Linear Mode
Ring Mode
P1+1
P1
F8388608 to 08388607
00000000 to 0006499