Professional Documents
Culture Documents
Encoder
(Linier Scales)
counter
SB+ SB+(RxD/TxD)
SB- SB-(_RxD/_TxD)
+5V +5V
GND 0V
To Counter
1kΩ
150Ω
Receive(RxD)
1kΩ
_______
R _ S EL
(3-2) Communication procedure
(3-2-1) Communication Procedure Generally
50ms(Min.)
(Counter→encoder)
RequestRxD
Request data
DataTxD
(Encoder→Counter)
Data Fr
Frame
(3-2-2)Frame Format
(3-
(3 1)fields
-2-3-1)fields (Request Fr CounterEncoder)
Frame: Counter
10bit 10bit
Idling(H) Idling(H)
0 1 0 cc0 cc1 cc2 cc3 cc4 Cc5 1 0 D0 D1 D2 D3 D4 D5 D6 D7 1
The following are specification of frame & data field of CC code ( 00h ~ 3Fh)
Note) Specification of request frame should be shown data that should be sent at
next timing from an encoder
CC Code Dat0 Dat1 … Dat15 … Dat31 Function
00h(01) ―― ―― … ―― … ―― Request ABS data
01h(05) ―― ―― … ―― … ―― Request serial #
02h(09) ―― ―― … ―― … ―― Request Software version #
03h(0D) ―― ―― … ―― … ―― Not used
04h(11) ―― ―― … ―― … ―― Request calibration Date
05h(15) ―― ―― … ―― … ―― Reserved
06h(19) ―― ―― … ―― … ―― Request error details
0Ch(31) ―― ―― … ―― … ―― Request ABS data (used measurement of LRE)
10h(41) Λx Gain … ―― … ―― Write Gain data of MN805(each λ)
11h(45) Λx ―― … ―― … ―― Read Gain data of MN805(each λ)
12h(49) Λx Delay … ―― … ―― Write delay data of MN805(each λ)
13h(4D) Λx ―― … ―― … ―― Read delay data of MN805(each λ)
14h(51) Data Write hysteresis data0~255(0.5um/1)
15h(55) Read hysteresis 0~255(0.5um/1)
16h(59) A5h 5Ah Setting Zero position of Scale
17h(5D) Read data of Coa、Med、Fine
18h(61) Read error data between track of Coa、Med、Fine
19h(65) A5h 5Ah Start adjustment of error between track of
Coa、Med、Fine
20h(81) Λx ESW … ―― … ―― Request of raw data of λx
(ESW=0:before SER correction)
(ESW≠0:after SER correction)
23h(8D) ESW ―― … ―― … ―― ESW≠0:Stop sampling of MN805
ESW=0:Restart sampling of MN805
25h(95) ―― ―― … ―― … ―― Reset Software
26h(99) A5h 5Ah … ―― … ―― Start adjustment of SRE
27h(9D) ―― ―― … ―― … ―― Stop adjustment of SRE
28h(A1) A5h 5Ah … ―― … ―― Start adjustment of Gain/Delay
30h(C1) Addr0 Addr1 … ―― … ―― Set EEPROM・address
(To execute before Writing/Reading)
31h(C5) Data0 ―― … ―― … ―― Byte Write
(To write one byte onto EEPROM)
32h(C9) Data0 Data1 … Data15 … ―― Page Write
(To write 16 bytes onto EEPROM)
33h(CD) ―― ―― … ―― … ―― Byte Read
(To read one byte on EEPROM)
34h(D1) ―― ―― … ―― … ―― Page Read
(To read 8 byte on EEPROM)
(3- counterencoder)
(3-2-3-2) Each field (Response data frame: counterencoder)
10bit 10bit
Idling(H) Idling(H)
0 0 cc0 cc1 cc2 cc3 cc4 Cc5 1 0 D0 D1 D2 D3 D4 D5 D6 D7 1
(3-
(3-2-3-3)Data
3)Data Field
1.ABS0 ~ 3
ABS Code(BIN 8bit)
ABS3 ABS2 ABS1 ABS0 Sending
Order
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
MSB LSB
2. Ser0 ~ 7
Seial(ASCII 8 bit)
Ser7 Ser6 Ser5 Ser4 Ser3 Ser2 Ser1 Ser0 Sending
Order
ASCII Code ASCII Code ASCII Code ASCII Code ASCII Code ASCII Code ASCII Code ASCII Code
3.Ver0 ~ 3
5.Error 0 ~ 3
Name Code
λ0 02h
λ1 01h
λ2 00h
7.Gain / Delay
Setting & Reading code Data of Gain/Delay (BINARY 8bit)
Gain/Delay
Sending
7 6 5 4 3 2 1 0 Order
MSB LSB
Min Max
Gain 00h 07h
Delay 00h 3Fh
8. Raw 0 ~ 5
λx Raw Data code(Binary,8 bit) sending
Raw5 Raw4 Raw3 Raw2 Raw1 Raw0
Order
“0 “0 “0 “0 11 10 9 8 7 6 5 4 3 2 1 0 “0 “0 “0 “0 11 10 9 8 7 6 5 4 3 2 1 0 “0 “0 “0 “0 11 10 9 8 7 6 5 4 3 2 1 0
” ” ” ” ” ” ” ” ” ” ” ”
MSB LSB MSB LSB MSB LSB
Upper 4Bit of Lower 8Bit of Upper 4Bit of Lower 8Bit of Upper 4Bit of Lower 8Bit of
Phase2Data Phase2Data Phase1Data Phase1Data Phase0Data Phase1Data
9.CRC
Driver Enable
(Counter)
Less than 1μs
Driver Enable
(Encoder)
Less Than 15ms Less than 100μs
RS-485 Rxd
Data
______
RE
Data
Txd
The transmission is with 19.2KBaud. (usual mode: 8 Data bits 1 Stop bit, no
parity)
Although it's a RS485 transceiver it has a termination resistor of 470Ohm.
Each signal line is PU/PD accordingly to it's level with a 2k resistor.
The AT715 sends its position every 50ms (20 times/second), so it is surely
not usable for realtime controlling.
It always sends 6 Bytes in a row.
The first byte is always zero.
Then there are 4 Bytes for the absolute position (resolution 0.5um) with LSB
first. Negative values are in twos complement.
The last byte is a checksum (just all other bytes added).
Page 1