13.6 Data Formats
13.6.1
Continuous Output Serial Data Format
If continuous transmission is configured for the EDP
or printer port (STREAM parameter on the SERIAL
menu), the 520 sends data using the Consolidated
Controls serial data format shown in Figure 13-1:
<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.
Figure 13-1. Continuous Output Serial Data Format
13.6.2
Demand Output Serial Data Format
When demand mode is configured for the EDP or
printer port in the setup menus (PRNDEST on the
SERIAL menu), the 520 uses a data string formatted
for a basic ticket printout. The particular ticket format
printed depends on the indicator configuration.
You can use the EDP port or keypad to fully
customize the ticket to work with a wide variety of
printers, scoreboard displays, and other remote
equipment. See Section 12.0 on page 59 for more
information on custom print formats.
13.6.3
RS-485 Data Formats
The 520 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
range 1–255; the address is specified on the
ADDRESS parameter on the SERIAL menu.
All remote commands are initiated using the data
format shown in Figure 13-2:
<STX> <ADDRESS> <COMMAND> <CR>
ASCII 02
EDP serial command
decimal
Address of the
receiving indicator
Figure 13-2. RS-485 Send Data Format
68
520 Installation Manual
G = Gross
<CR> <LF>
N = Net
or <CR>
L = pounds
Status:
K = kilograms
<space> = valid
T = tons (T, TN, LT)
I = Invalid
O = ounces
M = Motion
G = grams
O = Over/under range
<space> = GN,
TROYOZ, TROYLB,
or NONE
ASCII
13 decimal
NOTE: Host must send <CR>, not
<CR> <LF>. Failure to use <CR>
renders all indicators unable to
respond to serial commands
If the initiating device address matches the port
address of a 520 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 13-3:
<STX> <ADDRESS> <DEMAND DATA> <ETX> <CR>
ASCII 02
Response commands from
decimal
indicator:
<first line> <EOL>
<additional lines> <EOL>
<last line> <EOL>
Address of the
transmitting indicator
where EOL = <CR> or <CR> <LF>
(set by TERMIN parameter on the
SERIAL menu)
Figure 13-3. RS-485 Respond Data Format
To send the KPRINT command from an
Example:
ASCII terminal to an indicator at address 65 (decimal)
on the RS-485 network, use the format shown in
Figure 13-2.
•
The keyboard equivalent for the start-of-text
(
) c h a r a c t e r i s
S T X
Table 13-9 on page 74).
•
The indicator address (65) is represented by
an upper case "A".
•
The carriage return (CR) character is
generated by pressing the
Therefore, to send the KPRINT command to the
indicator at address 65, enter the following at the
terminal:
A K P R I N T
CONTROL-B
The indicator responds with the format shown in
Figure 13-3:
<STX> A
SCALE #1
GROSS 1699 LB<EOL>
08/20/1998 10:05 AM<EOL>
<ETX> <CR>
If continuous transmission is configured for the EDP
port (STREAM parameter on the SERIAL menu), the
520 sends data using the data format shown in
Figure 13-4:
<STX> <ADDRESS> <STREAM DATA> <ETX> <CR>
ASCII 02
Response commands from
decimal
indicator:
<STX> <POL> <wwwwwww>
<L/K> <G/N> <S> <EOL>
Address of the
NOTE : This is the Consolidated
transmitting indicator
Controls continuous data format
Figure 13-4. RS-485 Continuous Data Format
ASCII 13
decimal
ASCII 03
decimal
( s e e
C O N T R O L - B
key.
ENTER
ENTER
.
<EOL>
ASCII 13
decimal
ASCII 03
decimal
Need help?
Do you have a question about the 520 and is the answer not in the manual?