20
20 http : // www.kvcins.com
11. MANUAL RELATED TO COMMUNICATION OF PRODUCT
11-1 RS485 ASCII Communication
11-1-1 Communication specification
11-1-1-1 Communication method : RS485 2 Wire half duplex
11-1-1-2 Communication baud rate : 4800, 9600, 19200, 38400 bps ( Default : 38400 bps )
11-1-1-3 Data length : 8 Bit
11-1-1-4 Stop bit : 1 Bit
11-1-1-5 Parity : None
11-1-1-6 Connected units : Max 16 units
11-1-2 FORMAT
11-1-2-1 Command Format
11-1-2-1 Response Format
STX
1Byte , packet starting code 0x2h
ID : MNH , MNL
Device number for each unit ( 00 ~ 15 )
(Ex) If device number 01 ----> MNH=0x30h , MNL=0x31h
COMMAND : CMDH , CMDL
2Byte of high 8bit and low 8bit
STATUS : STSH , STSL
2Byte of high 8bit and low 8bit, indicating of communication status
( EX )
“OK” : Normal
"CE" or “EC” : Command error ( Receiving of impossible command )
"DE" or “ED” : Data error ( Wrong data format )
"BE" or “EB” : BCC Error
STX MNH MNL CMDH CMDL D1 …… Dn ETX BCC
STX MNH MNL STSH STSL D1 …… Dn ETX BCC