Pulse I/O Board
102
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).
(@)PRV(62)
The PV of each high-speed counter is stored as shown below. In Linear Mode,
the leftmost bit will be F for negative values.
Leftmost four digits
D+1
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.
(@)INI(61)
Leftmost four digits
P1+1
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
Word
Bits
AR 04
08 to 15
P: Port
P
001: Port 1
002: Port 2
000
D: First destination word
D
Rightmost four digits
Linear Mode
D
F8388608 to 08388607
(−8,388,608 to 8,388,607)
P: Port
001: Port 1
P
002: Port 2
002
P1: First PV word
P1
Rightmost four digits
Linear Mode
P1
F8388608 to 08388607
Slot
The stored error codes are as follows:
2
00 Hex:
01, 02 Hex:
03 Hex:
Section 2-2
Ring Mode
00000000 to 0006499
Ring Mode
00000000 to 0006499
Function
Normal
Hardware error
PC Setup error
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?