Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 18 of 33

9154 Line Controller System Manual, pages 171 to 180

Pages 171 to 180 of 330

The original document is the PDF (7.7 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Intermec 9154

Page 171 read from a scan by OCR; it may hold reading errors

Determining Available Device Addresses

DETERMINING AVAILABLE DEVICE ADDRESSES

To determine which device addresses are enabled, turn all the polled devices on and call up the Select Polled Devices screen on the Supervisory CRT.

Device addresses that are enabled and have devices connected to them will have E in the status column and just to the right of "Connected."

If there is an E in the status column, but “Connected” does not appear, that address is enabled, but no device is connected, so a device could be configured with that address.

If there is a D in the status column, that address would have to be enabled before a device could be configured with that address. The procedure for checking addresses is explained in detail in Section 10, “Troubleshooting.”

If you have followed the procedures from Sections 3, 4, 5, and 6, in order, your Multi-Drop data collection system should be ready to operate. If your system does not operate properly, Section 10, “Troubleshooting,” provides remedies for problems that may keep your system from operating.

© 1987 INTERMEC Corporation Page 6-13

Page 172

This page is a scan with no text; see it in the PDF.

Page 173 read from a scan by OCR; it may hold reading errors

SECTION 7

HOST TO 9154 COMMUNICATION

INTRODUCTION

DATA COMMUNICATION BETWEEN THE HOST AND 9154 Data Format 9154 to Host Communication Protocol Host to 9154 Communication Protocoi XON/XOFF Handshake Transparency Character Longitudinal Redundancy Check

FOUR TYPES OF 9154 TO HOST COMMUNICATION Solicited Receive and Solicited Transmit (SSM) Solicited Receive and Unsolicited Transmit (SUM) Unsolicited Receive and Solicited Transmit (USM) Unsolicited Receive and Unsolicited Transmit (UUM)

HOST COMPUTER CONTROL OF THE 9154 Start or Stop Polling Enable/Disable Time Broadcast Enable/Disable Time Append Device Status Command Tailoring the Controller for a Supervisory CRT Screen Updating the Controller EEPROM 9161 02 Multi-Drop Concentrator Host Commands Not Implemented on the 9154 Controller

© 1987 INTERMEC Corporation Page 7-1

Page 174 read from a scan by OCR; it may hold reading errors

HOST TO 9154 COMMUNICATION

INTRODUCTION

The controller provides an efficient means for the host computer to communicate with the polled devices. It adds and removes data communication protocol to the data stream so that communication can occur with the least amount of host involvement.

This section describes data communication between the host and the controller in detail. Using the Supervisory CRT, the controller can be configured to communicate using a wide range of protocols. All the data communication parameters discussed in this section are configured using the Supervisory CRT. To take full advantage of the controller's capabilities, review this section carefully.

Two types of settings can be configured for host communications:

* The data communication protocol characters can be changed from their standard ASCII default values to suit the requirements of the host computer.

* The controller can be configured to communicate with the host using solicited or unsolicited protocols, as well asXON/XOFF Handshake and Data Wait Mode.

Section 5, "Configuring the Controller," explains how to implement the data communication options discussed in this section.

DATA COMMUNICATION BETWEEN THE HOST AND 9154

Most of the communication protocol characters used to communicate with the controller can be changed to suit the requirements of the host computer. For example, the host to controller AFF (Affirmative Acknowledgement) signal could be changed from the default of STX Z CR to STX STX Z, STX, ETX X CR, or any other string of up to five ASCII characters. In the descriptions throughout this section, the protocol characters, such as POL, AFF, NEG, and SOM, can either be the factory default values with which the controller was shipped, for example AFF (ACK (06H)), NEG (NAK (15H)), and SOM (STX (02H)), or can be changed to other selected ASCII characters. See Section 5, "Configuring the Controller,” for specific instructions about selecting different values for protocol characters.

Page 7-2 © 1987 INTERMEC Corporation

Page 175 read from a scan by OCR; it may hold reading errors

Data Communication Between the Host and 9154

In examples of protocol, brackets <> will be placed around parameters which may be disabled. For example, in the protocol example which follows, SOM may be disabled.

<SOM> Data EOM

Data Format

Data transmission exchanges sent to and from the controller are asynchronous, ASCIl, serial by bit. A selection of baud rate settings for the host port is stored in the controller's EEPROM, allowing 110, 300, 600, 1200, 2400, 4800, 9600, and 19200 baud data communication.

The sequence of each byte in any data transmission is:

Start bit Data bits (LSB first) Parity Stop bit(s)

Either seven or eight data bits are allowed in each transmission. Parity can be even, odd, or disabled. One or two stop bits are allowed, but the second stop bit should be used only to implement mark and space data formats.

Mark and Space Parity: To implement mark or space data format, the host line parameters must be configured as follows.

Data Data Stop format: bits: Parity: bits: 7 bits, mark 7 disabled 2

7 bits, space 8 disabled 2

8 bits, mark 8 disabled 2

8 bits, space NA NA NA

NA Not applicable

Note: The host is expected to be configured with one stop bit. If two stop bits are used, the controller must implement an intercharacter delay.

© 1987 INTERMEC Corporation Page 7-3

Page 176 read from a scan by OCR; it may hold reading errors

HOST TO 9154 COMMUNICATION

All the operating parameters for the data format can be configured using the Supervisory CRT's Select Operating Parameters screen and are stored in the controller's EEPROM.

9154 to Host Communication Protocol

The host solicits data from the controller by transmitting the host POL character(s). If POL is disabled on the controller, the controller sends data out the host port whenever data is available for transmission. If POL is enabled and received, the controller will transmit a message block, if available, or transmit a host RES character(s) if no data is available.

The controller can be configured with the Supervisory CRT to enable or disable a Data Wait Mode option. If the option is enabled the host need not repeatedly poll the controller for data. If the POL is received by the controller and no data is available to send to the host, the controller will wait for input from any of the polled devices and transmit this data to the host computer as soon as it is available. This option frees the host from repeatedly querying the controller for data transmission. If the Data Wait Mode option is disabled, the host must send the POL character(s) to the controller when data is present before data will be transmitted to the host.

9154 to Host Message Blocks: The format for message blocks transmitted to the host is:

<Header> <SOM> Message Block <EOM><LRC> Header is a short message up to five ASCII characters long. SOM is the Start of Message indicating the beginning of the data block.

Message Block contains one or more individual data records. Each pair of records is separated by a record separator. A data transmission block may contain from 1 to 99 records.

Page 7-4 © 1987 INTERMEC Corporation

Page 177 read from a scan by OCR; it may hold reading errors

Data Communication Between the Host and 9154

EOM is the End of Message and indicates the end of the message block. Itis recommended that the EOM never be disabled.

LRC is the Longitudinal Redundancy Check. See “Longitudinal Redundancy Check" later in this section for an explanation of how itis calculated.

9154 to Host Data Records: The transmission format of each individual data record from the controller to the host is:

XZ Data <EOR>

X is the Multi-Drop port address which can be one of four values, “m", “n", “o,” or “p." X must match the port address defined in the RAM copy of the controller's configuration parameters.

Z is the Multi-Drop device address on port X. Depending upon which device the host is communicating with, Z may be “A-Z" or “0-5."

Data is a single data record containing up to 254 characters, excluding the End of a Record character.

EOR is the record terminator. it indicates the end of an individual data record. The specific ASCII value for EOR can be configured using the Supervisory CRT and is stored in the controller's RAM copy of the configuration parameters.

Before any data characters are transmitted, a transparency check is made if the Transparency Check option is enabled. In a transparency check, the defined DLE character will precede any character in a data field which is an ASCII control character. If this option is disabled, control characters transmitted as data will give no indication that they are data characters rather than control characters.

It is recommended that all data communication protocol fields start with an ASCII control character. For example, if AFF is changed from the default STX Y CR, and STX is removed, the new value should have another ASCIi control character, like ETX, as its first character.

© 1987 INTERMEC Corporation Page 7-5

Page 178 read from a scan by OCR; it may hold reading errors

HOST TO 9154 COMMUNICATION

Host to 9154 Communication Protocol

If the host SEL is enabled and received by the controller while waiting for polled device data, the controller will transmit an AFF response to the host, signaling that it is ready to receive host data. The controller sends a NEG response if it is not ready for data. The AFF/NEG responses are also used (if enabled) to inform the host that data was received correctly or incorrectly.

The NEG response will occur on a message block sent from the host to the controller whenever one of the following conditions occur:

. Bad parity of any character in the message . Bad LRC character received when LRC is enabled ‘ Number of characters in one record is greater than 254

If the controller sends a NEG in response to a message block, the entire message block must be re-transmitted by the host.

The controller can be configured to re-transmit its previous message to the host whenever a timeout of ten seconds or more has occurred (no exchange of data between controller and host for the timeout period). When the re-transmission occurs, the controller will display an error message of “HOST: Timeout" on the error screen of the Supervisory CRT.

Host to 9154 Message Blocks: The format of message blocks transmitted to the controller is:

<SOM> Data <EOM> <LRC>

SOM is the Start of Message.

Data is a transmission block that may contain multiple records but the total byte count of the data portion must not exceed 512 bytes, including record terminators.

EOM is the End of Message. It is recommended that this parameter not be disabled.

LRC is computed by the exclusive OR of all data received, excluding the SOM (or first character of the SOM if the SOM is a string of characters). The LRC provides data security for the protocol.

Page 7-6 © 1987 INTERMEC Corporation

Page 179 read from a scan by OCR; it may hold reading errors

Data Communication Between the Host and 9154

Host to 9154 Data Records: The transmission format for data records from the host to the controller is:

XZ Data <EOR>

X is the Multi-Drop port address which can be one of four values, “m”, "n", "o" or

“p." X must match the port address defined in the RAM copy of the controller's configuration parameters.

Z is the Multi-Drop device address on port X. Depending upon which device the host is communicating with, Z may be "A-Z" or "0-5."

Data may contain up to a maximum of 254 data characters.

EOR is the record terminator indicating the end of a single record going toa specific address.

Because some of the controller's control characters are used by the data link protocol between the controller and host, a transparent character flag (ASCII DLE) can be used by the host to prevent characters in the data stream from being interpreted as control characters for data link protocol. If the DLE is received, the next character will be processed by the controller as regular data and stored in the buffer. The transparent character is never stored in the buffer, but is included in the calculation of an LRC. The DLE character can be defined to be any ASCII character and is stored in controller's copy of the configuration parameters.

The data records for each polled device are not queued. For each polled device the controller has buffer for receiving one record (maximum of 254 characters) of data from the host. This buffer is available for receiving another record of data only when the controller transmits the previous message to the corresponding polled device.

If the host sends a message to a controller buffer for a particular polled device, and that address already has a message waiting to be sent to that device, the controller will respond with an error message to the host, instead of accepting the message intended for that device.

© 1987 INTERMEC Corporation Page 7-7

Page 180 read from a scan by OCR; it may hold reading errors

HOST TO 9154 COMMUNICATION

The format of host-to-polled device buffer error is: «Error Message SOM> XZ BEL <EOR> <Error Message EOM> <LRC>

X is the port address and Z is the device address. This message indicates that the host computer will need to re-transmit the message later.

Device Specific Polling: Device specific polling allows the host to request information from a specific device similar to the way the host sends a message to a specific device.

The controller responds to device specific polls identically to the way it responds to general polls. However, with device specific polling, the message transmitted by the controller will be only one record, even if records per block is more than one.

Device specific polling only works with solicited transmit protocols (From Host POL sequence enabled) where the host polls the controller for information. The format is as follows:

Xz POL

X is the controller's Multi-Drop port address (m,n,0,p).

zis the Multi-Drop address of the device (A-Z or 0-5).

POL is the host to controller POL sequence.

The address, Xz, can also be "SS" which allows the host to specifically request a status response from the controller.

Only one poll is active at a time. If you are using device specific polling, the controller only transmits a record for the device that is currently being polled. Ifa device specific poll is sent for address B, it replaces the previous poll for address A. No data for address A will be transmitted until a device specific poll for address A is transmitted, or the general poll.

Page 7-8 © 1987 INTERMEC Corporation