132
Absolute Encoder Interface Board
Section 2-3
• Words Indicating Operational Status
Using PRV(62)
The status of absolute high-speed counters 1 and 2 can also be determined
by executing PRV(62). Specify high-speed counter 1 or 2 (P=001 or 002) and
the destination word D.
The status of the specified high-speed counter is stored in bit 00 of D, as
shown in the following table.
Bits 01 to 15 are set to 0.
Operation Example
This example shows programming that receives an input signal from an abso-
lute rotary encoder at port 1 and uses this input to control outputs IR 10000
through IR 10003. Absolute high-speed counter 1 is set for 8-bit resolution
and 360
°
Mode, and range comparisons are performed. Before executing the
program, set DM 6643 to 0100 (Port 1: 360
°
Mode, 8-bit resolution).
Other PC Setup settings use the default settings. (Inputs are not refreshed at
the time of interrupt processing.)
Word
Bit
Name
Function
Counter 1
Counter 2
AR 05
AR 06
00
High-speed Counter
Range Comparison Flags
ON when meeting first
condition.
When the high-speed
counter is used in range
comparison format, a bit
turns ON when the corre-
sponding condition is
met.
01
ON when meeting second
condition.
02
ON when meeting third
condition.
03
ON when meeting fourth
condition.
04
ON when meeting fifth
condition.
05
ON when meeting sixth
condition.
06
ON when meeting sev-
enth condition.
07
ON when meeting eighth
condition.
08
High-speed Counter
Comparison Flag
Indicates the status of the comparison operation.
0: Stopped
1: Running
Bit
Function
00
Comparison Operation Flag (0: Stopped; 1: Running)
@PRV(62)
001
P
D
P: Port
001: Port 1
002: Port 2
D: First destination word