7 data formats, Character is, A, k, p, r, i, n, t – Rice Lake 920i Installation Manual V2.0 User Manual

Page 107

Advertising
background image

Appendix

103

10.7 Data Formats

Continuous Output Serial Data Format

If continuous transmission is conÞgured for a serial
port (STREAM parameter set to LFT or INDUST on
the SERIAL menu), the

920i

sends data using the

Consolidated Controls serial data format shown in
Figure 10-2:

Figure 10-2. Continuous Output Serial Data Format

NOTE: If the scale capacity is exceeded, the weight data field
is replaced with
>>>>>>> characters. If the display capability
of the indicator is exceeded, the weight field is replaced with
VERFLOW ("overflow"). Both errors set the <S> status data
field to "I".

Demand Output Serial Data Format

When demand mode is conÞgured for the serial port
(STREAM parameter set to OFF), the

920i

uses a data

string formatted for a basic ticket printout. The
particular ticket format printed depends on the
indicator conÞguration.

You can customize the ticket to work with a wide
variety of printers, scoreboard displays, and other
remote equipment. See Section 6.0 on page 53 for
more information on custom print formats.

RS-485 Data Formats

Two-wire RS-485 communications is available on
p o r t 3 o f t h e C P U b o a r d ; f o u r- w i r e R S - 4 8 5
communications is supported on the ÒAÓ ports of any
installed serial expansion cards.

The

920i

has a built-in RS-485 software protocol

which is enabled when you assign a non-zero address
to the indicator. Valid RS-485 addresses must be in the
r a n g e 1 Ð 2 5 5 ; t h e a d d r e s s i s s p e c i Þ e d o n t h e
ADDRESS parameter on the SERIAL menu.

All remote commands are initiated using the data
format shown in Figure 10-3:

Figure 10-3. RS-485 Send Data Format

If the initiating device address matches the port address
of an

920i

on the RS-485 network, that indicator

responds. For example, with demand outputs, or in
response to a KPRINT command, the responding
indicator uses the format shown in Figure 10-4:

Figure 10-4. RS-485 Respond Data Format

Example:

To send the KPRINT command from an

ASCII terminal to an indicator at address 65 (decimal)
on the RS-485 network, use the format shown in
Figure 10-3.

¥

The keyboard equivalent for the start-of-text
(

STX

) character is

CONTROL-B

.

¥

The indicator address (65) is represented by an
upper case ÒAÓ.

¥

The carriage return (CR) character is generated
by pressing the

ENTER

key.

Therefore, to send the KPRINT command to the
indicator at address 65, enter the following at the
terminal:

CONTROL-B

, A, K, P, R, I, N, T,

ENTER

.

The indicator responds with the format shown in
Figure 10-4:

<STX> A

SCALE #1

<EOL>

GROSS 1699 LB<EOL>
08/20/1998 10:05 AM<EOL>

<ETX> <CR>

If continuous transmission is conÞgured for the serial
port, the

920i

sends data using the data format shown

in Figure 10-5:

Figure 10-5. RS-485 Continuous Data Format

<STX> <POL> <wwwwwww> <UNIT> <G/N> <S> <TERM>

ASCII 02

decimal

Polarity:
<space> = Positive
<–> = Negative

Weight: 7 digits, right-justified, dummy
zeroes, decimal point with no leading
zeroes except for leading zero immediately
preceding the decimal point. Leading
zeroes transmitted as spaces.

L = pounds
K = kilograms
T = tons
G = grains
<space> = grams
O = ounces

G = Gross

N = Net

Status:
<space> = valid
I = Invalid
M = Motion
O = Over/under range

<CR> <LF>

or <CR>

<STX> <ADDRESS> <COMMAND> <CR>

ASCII 02

decimal

Address of the

receiving indicator

EDP serial command

NOTE: Host must send <CR>, not
<CR> <LF>. Failure to use <CR>
renders all indicators unable to
respond to serial commands

ASCII

13 decimal

<STX> <ADDRESS> <DEMAND DATA> <ETX> <CR>

ASCII 02

decimal

Address of the

transmitting indicator

Response commands from
indicator:
<first line> <EOL>
<additional lines> <EOL>
<last line> <EOL>
where EOL = <CR> or <CR> <LF>
(set by TERMIN parameter on the
SERIAL menu)

ASCII 13

decimal

ASCII 03

decimal

Response commands from
indicator:
<STX> <POL> <wwwwwww>
<L/K> <G/N> <S> <EOL>
NOTE :
This is the Consolidated
Controls continuous data format

<STX> <ADDRESS> <STREAM DATA> <ETX> <CR>

ASCII 02

decimal

Address of the

transmitting indicator

ASCII 13

decimal

ASCII 03

decimal

Advertising