MIME-Version: 1.0 Content-Location: file:///C:/65791A4C/HDProtocol.htm Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="us-ascii" RS-232 Interface protocol HD

HD-150/HD-300 RS-232 Interface protocol:

The RS232 interfa= ce of HD shipping scale has two work modes: SCI.1 (factory default setting) and SCI.0  (to select the work mod= e, please refer the HD-150/HD-300 user manual ).

When the work mod= e “SCI.1” (Serial Communication Interface transmitting and receiving data format R= 20;1”) is selected, The HD shipping scale can work with the UPS®= Worldship® Program. HD’s data transmitting or receiving format is the same as the Toledo= ®= PS60= .

When the work mode  “SCI.0” is selected and scale’s “DATA” is pressed or the carriage re= turn (0d hex) is received, HD shipping scale will transmit weight,unit,stability,over/down or low voltage message according to the following protocol:

Baud rate    :  9600bps

Start bit      :  1 bit

Data bits     :  8 bits

     Stop bit    &nb= sp; :  1 bit

     Parity        :  none

The scale transmits 14 bytes ASC data each time:

(Byte1) (Byte2) (Byte3) (Byte4) (Byte5)……(By= te8) (Byte9) (Byte10) (Byte11) (Byte12) (Byte14)

the details are as follows:

Byte 1=3D “:” (colon), starting byte;

Byte 2=3D “W” means that the following 7 (By= te3……Byte9) bytes are weight;

      =3D“= M” means that the following 7 (Byte3……Byte9) bytes are message (e.= g. “OVER”);

Byte 3=3D “-” means Byte3…Byte9 is neg= ative weight

    =3D “ ” me= ans Byte3…Byte9 is positive weight or other message

Byte 4.5.6.7.8.9 =3D xxxxxx  means current weight or other mess= age

Byte 10.11=3D“lb” means that the weight unit= is lb;

        =   =3D “kg” means the weight unit is kg;<= /p>

Byte 12=3D “S” means the readings are stable= ;

       =3D&= #8220; “ means the readings are unstable;

Byte 13=3D “L” means the low voltage;

=3D “ ” means normal voltage;

Byte 14=3Dcarriage return (0d hex);

 

Examples:

1.      = When scale indicator is displaying R= 20;123.45kg” , and the scale is stable , the power is not low voltage and data received = is “0d (hex)” or “DATA” key been pressed, the scale will send out following 14 bytes :

(3Ah)(57h)(20h)(31h)(32h)(33h)(2Eh)(34h)(35h)(6Bh)(67h)(53h)(20h)(0Dh= )

  :   W        1   2    3    .   4    5   k    g   S  

2.      = When scale indicator is displaying R= 20;-234.5lb” , scale is unstable , low voltage and received “0d (hex)” or &#= 8220;DATA” key been pressed, the scale will send out following 14 bytes :

(3Ah)(57h)(2Dh)(32h)(33h) (34h) (2Eh) (35h)(30h)(6Ch)(62h)(20h)(4Ch)(= 0Dh)

  :   W   -    2    3    4    .    5    0   l    b        L

3.      = When scale indicator is displaying R= 20;_____” , current weight unit is “kg”, scale is stable , not low voltage and received “0d (hex)” or “DATA” key been pressed,= the scale will send out following 14 bytes :

(3Ah)(4Dh)(20h)(64h)(6Fh)(77h)(6Eh)(20h)(20h)(6Bh)(67h)(53h)(20h)(0Dh= )

  :   M        d   o   w    n        =     k    g   S  

 

 

RS-232 connect between HD scale and Host :

 Scale--------------------------Cabl= e---------------------------Host

 (DB9 female)--------(DB9 male)----(DB9 female)--------(DB9 male)

TXD  2----------------2---------------------------------2---------------2= RXD

RXD  3---------------3-----------------= -----------------3---------------3 TXD

GND  5---------------5----------------------------------5--------------5 = GND

DSR  4---------------4----------------------------------4--------------4 = DTR

DTR  6---------------6----------------------------------6---------------6= DSR

CTS  7---------------7----------------------------------7---------------7= RTS

RTS  8---------------8----------------------------------8---------------8= CTS

NC   1---------------1----------------------------------1---------------1=

NC   9---------------9-----------= -----------------------9---------------9

 Note: HD scale DB9 female’s p= in4 and pin6 is shorted, pin7 and pin8 is shorted!

 =

Note that his gui= de is Copyright GKI Technologies. Unauthorized reprinting is prohibited.<= /o:p>

 =