Timer and Counter Instructions
Range Comparison
Results (C=002)
Flags
260
High-speed Counter Board
The following table shows the function of bits in D for high-speed counters 1 to
4 on a High-speed Counter Board.
Bit(s)
00 to 07 Contains the internal bit pattern.
08 to 11 Contains the external bit pattern.
12
Counter Operating Flag (0: Stopped; 1: Operating)
13
Comparison Flag (0: Stopped; 1: Operating)
14
PV Overflow/Underflow Flag (0: Normal; 1: Overflow/underflow occurred)
15
SV Error Flag (0: Normal; 1: SV error occurred)
If C is 002, PRV(62) reads the results of the range comparison results for
Pulse I/O Board high-speed counters 1 and 2, or Absolute Encoder Interface
Board absolute high-speed counters 1 and 2.
Bits 00 through 07 of D contain the Comparison Result flags for ranges 1 to 8.
(0: Not in range; 1: In range)
PRV(62) reads the same information stored in the AR words allocated for that
purpose (AR 05 and AR 06 for the Pulse I/O Board or Absolute Encoder Inter-
face Board), but the allocated AR words are refreshed just once each cycle
while PRV(62) reads the most up-to-date values.
ER:
The specified port and function are not compatible.
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/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.
Section 5-16
Function
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?