0 rs-232 communication, 1 pushbutton keypad print – Rice Lake Legal For Trade Platform/Fitness Scale - Rice Lake Dietary Fitness Scale Technical and Operating Instructions User Manual

Page 23

Advertising
background image

Dietary/Fitness Technical and Operating Instructions - RS-232 Communication

19

8.0

RS-232 Communication

The scale comes with an RS-232 port which enables weight data to be transmitted to other equipment, such as a

computer or printer. The RS-232 cable with DB-9 connector (PN 100719) is available from Rice Lake Weighing

Systems. Figure 2-1 on page 2 shows where the RS-232 connection is.
The RS-232 parameters are 9600 baud (selectable in the programming mode), 8 data bits, 1 stop bit, no parity

and no handshaking.
There are three methods of communication:

Pushbutton keypad print

Standard remote protocol

Escape protocol

8.1

Pushbutton Keypad Print

With a stable, in-range weight, press and hold the

Kg-Lb/Print

key for at least three seconds, or until the scale

emits two quick beeps. Note that if the scale does not beep after five seconds, then release the button as the

weight was either in motion, or out of range.

The scale will send out the following 21 character string:

xxxxxxxxx<SP>uu<SP>mmmmm<SP><CR><LF>
Where:

xxxxxxxxx is the weight with decimal point and " - " sign, if negative uu is the unit (lb or kg).
mmmmm is the mode (gross or net)

Examples:

-10 Lb net = <SP><SP><SP><SP>-10.0<SP>lb<SP><SP>Net<SP><SP><SP><CR><LF>
10 Lb gross = <SP><SP><SP><SP><SP>-10.0<SP>lb<SP>Gross<SP><CR><LF>

8.2

Standard Remote Protocol (configuration option #9 set to 1)

When connected to a computer, there are five commands that can be used in the standard remote protocol to

communicate with the scale. They are:

t - tare the scale. If in gross mode, will tare and go to net mode. If in net mode, will remove tare and

return to gross mode.

w - the scale sends the actual weight to the computer.

i - the scale sends the software ID of the scale.

z - the scale will be set to zero (0.0) if possible.

p - the scale sends the same data as a pushbutton keypad print.

The format of the returned data will be the same as noted under the pushbutton keypad print. Note that the w and

p commands will not return a value if the scale is in motion, or displaying an invalid weight.

Advertising