beautypg.com

3 rs-485 data formats, Rs-485 data formats, See section 10.6.3 – Rice Lake 880 Performance Series Indicator/Controller Technical/Service Manual User Manual

Page 104: Plication. see section 10.6.3, Stx>

background image

98

880 Technical/Service Manual

10.6.3 RS-485 Data Formats
The 880 has a built-in RS-485 software protocol which is enabled when configuring a port’s TYPE as 485. On the

880 only the COM port has hardware support for RS-485 communication.
All RS-485 communication with the 880 is via command and response. An external host must send a command

and wait for a response.
All remote commands are initiated using the data format shown in Figure 10-2:

ASCII 02

decimal

Address of the

receiving indicator
valid range - 0-255

EDP serial command

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

ASCII

13 decimal

Figure 10-2. RS-485 Send Data Format

If the initiating device address matches the port address of a 880 on the RS-485 network, that indicator responds.

The responding indicator uses the format shown in Figure 10-3:

ASCII 02

decimal

Address of the

transmitting indicator

Response commands from
indicator:

<first line>

where EOL = or
(set by TERMIN parameter on the
SERIAL menu)

ASCII 13

decimal

ASCII 3 decimal

Figure 10-3. RS-485 Respond Data Format

• Communication with an RS-485 880 is command / response only. An 880 configured for RS-485 cannot print a

ticket or stream continuous data.

• Any valid EDP command can be sent to the 880 when in RS-485 mode.

• If a command is unrecognized or cannot be executed, the 880 responds with ?? wrapped in the RS-485

protocol. For example:

??

• Depending on the command, the may include its own termination characters that are sent

before the , see the example for the XG command shown below.

• A multi-line response, for example from a DUMPALL command, is wrapped in the header and footer as a total

but each individual line is not.

<first line>

Where:

EOL - or (set by the TERMIN parameter for the port)