Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
ASCII Mode Framing<br />
Symbol Name Description<br />
STX Comm. start 3AH, Char ’:‘<br />
ADR<br />
Slave address<br />
Include 2 ASCII code within 1-byte<br />
Comm. add : 1 ~ 254 convert to Hex representation ;<br />
Ex. Servo drive ADR is No.20 convert to 14H ;<br />
ADR = ’1‘ , ‘4’ → ’1‘ = 31H , ‘4’ = 34H<br />
Function Code Function code<br />
Include 2 ASCII code within 1-byte<br />
Function codes..03H:Read the register contents,<br />
06H:Write Single Register , 08H:Diagnostic function,<br />
10H:Write Multipile Registers<br />
DATA(n-1)<br />
n-word = 2n-byte (ASCII numbers : 4n ), n≦30<br />
│<br />
Data<br />
The format of data is depend on Function code<br />
DATA(0)<br />
LRC Check code Include 2 ASCII code within 1-byte<br />
END 1 END 1 (CR) 0DH;Char ’ \ r ‘<br />
END 0 END 0 (LF) 0AH;Char ’ \ n ‘<br />
RTU Mode<br />
Symbol Name Description<br />
STX Comm. start Excess comm. loss time setting 10ms<br />
ADR<br />
Slave address<br />
1-byte<br />
Comm. address : 1 ~ 254,convert to Hex representation ;<br />
Ex. Comm. address = 20 convert representation to 14 Hex, ADR<br />
= ’14H’<br />
Function Code Function code<br />
1-byte<br />
Function codes..03H:Read the register contents,<br />
06H:Write Single Register , 08H:Diagnostic function,<br />
10H:Write Multipile Registers<br />
DATA(n-1)<br />
n-word = 2n-byte;n≦30<br />
│<br />
Data<br />
The format of data is depend on Function code<br />
DATA(0)<br />
CRC-Low Checking code-LO 1-byte<br />
CRC-High Checking code-HI 1-byte<br />
END 0 End 0 Excess comm. loss time setting 10ms<br />
7-7