228
Timer and Counter Instructions Section 5-15
hexadecimal value F in the most significant digit of PV indicates that the PV is
negative.
With absolute high-speed counters 1 and 2, the PV can be 0000 0000 to
0000 4095 in BCD Mode, or 0000 0000 to 0000 0359 in 360
° Mode.
High-speed Counter or
Pulse Output Status
(C=001)
If C is 001 (CQM1 only), PRV(62) reads the operating status of the specified
high-speed counter or pulse output and writes the data to D. Refer to 1-3-5
Determining the Status of Ports 1 and 2 for details on determining the status
of pulse outputs.
The following table shows the function of bits in D for high-speed counters 1
and 2, and pulse outputs from ports 1 and 2 (CQM1-CPU43-E/-EV1 only).
Bits not listed in the table are not used and will always be 0.
For absolute high-speed counters 1 and 2 (CQM1-CPU44-E/-EV1 only), Bit
00 of D indicates the comparison status (0: Stopped; 1: Comparing). The
other bits in D (01 through 15) are not used and will always be 0.
Note These flags are in AR 05 and AR 06, but those words are normally refreshed
only once each cycle, so the data obtained with PRV(62) will be more up-to-
date.
Range Comparison
Results (C=002)
If C is 002 (CQM1 only), PRV(62) reads the results of the comparison of the
PV to the 8 ranges defined by CTBL(63) and writes this data to D. Bits 00
through 07 of D contain the Comparison Result flags for ranges 1 to 8. (0: Not
in range; 1: In range)
Note These flags are in AR 05 and AR 06, but those words are normally refreshed
only once each cycle, so the data obtained with PRV(62) will be more up-to-
date.
Flags ER: The specified port and function are not compatible.
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
D+1 exceeds the data area boundary. (C=000)
There is an error in the operand settings.
PRV(62) is executed in an interrupt subroutine while a pulse I/O or
high-speed counter instruction is being executed in the main program.
Leftmost 4 digits Rightmost 4 digits Linear Mode Ring Mode
D+1 D F8388607 to 08388607
00000000 to 00064999
Leftmost 4 digits Rightmost 4 digits BCD Mode 360° Mode
D+1 D 0000 0000 to 0000 4095 0000 0000 to 0000 0359
Bit Function
00 High-speed counter comparison status. (0: Stopped; 1: Comparing)
01 High-speed counter underflow/overflow.
(0: Normal; 1: Underflow/Overflow occurred.)
04 Deceleration of pulse frequency. (0: Not specified; 1: Specified.)
05 Total number of pulses specified. (0: Not specified; 1: Specified.)
06 Pulse output completed. (0: Not completed; 1: Completed)
07 Pulse output status (0: Stopped; 1: Outputting)