126
Absolute Encoder Interface Board Section 2-3
2-3-7 High-speed Counter Interrupts
The Absolute Encoder Interface Board interfaces an absolute encoder. Inter-
rupt processing can be performed in response to binary gray code signals
input to ports 1 or 2 from an absolute rotary encoder.
The two ports can be operated separately. The counter for port 1 is called
absolute high-speed counter 1 and the counter for port 2 is called absolute
high-speed counter 2. This section describes how to use absolute high-speed
counters 1 and 2. The counting rate is 4 kHz.
Processing Input Signals and Operating Modes
There are two operating modes that can be used for absolute high-speed
counters 1 and 2.
1,2,3... 1. BCD Mode:
The absolute rotary encoder’s binary gray code is first converted to normal
binary (hexadecimal) data, and then converted to BCD.
2. 360
° Mode:
With the maximum value of the resolution taken to be 360
°, the input from
the absolute rotary encoder is converted to an angle between 0
° and 359°.
CTBL(63) settings are made in 5
° units.
The resolution of the binary gray code inputs to ports 1 and 2 must be one of
the three resolutions listed in the following table. The table also shows the
range of values associated with each resolution in each operating mode.
Setting Absolute High-speed Counter in 360
° Mode
The following table shows how the settings, which are made in units of 5°, are
converted into binary gray codes according to the resolution.
5
° to 45°
DM 6643 00 to 07 Port 1 Resolution
00 Hex: 8 bits
01 Hex: 10 bits
02 Hex: 12 bits
When operation
starts.
08 to 15 Operating mode settings
00 Hex: BCD Mode
01 Hex: 360° Mode
DM 6644 00 to 07 Port 2 Resolution
00 Hex: 8 bits
01 Hex: 10 bits
02 Hex: 12 bits
08 to 15 Operating mode settings
00 Hex: BCD Mode
01 Hex: 360° Mode
Word Bits Function When setting is
activated
Resolution Possible PVs
BCD Mode 360° Mode
8-bit 0 to 255 PV output: 0° to 359° (1° units)
Comparison table settings: 0° to 355° (5° units)
10-bit 0 to 1023
12-bit 0 to 4095
Resolution 5° 10° 15° 20° 25° 30° 35° 40° 45°
8-bit 4 7 11141821252832
10-bit 14 28 43 57 71 85 100 114 128
12-bit 57 114 171 228 284 341 398 455 512