The text of a manual · part 13 of 46
QX Hawk Industrial Imager User Manual, pages 121 to 130
Pages 121 to 130 of 460
The original document is the PDF (10 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 Microscan QX Hawk 6801
Page 121
Parameters
Protocol Options
Point-to-Point (Standard) Used only with RS-232 or RS-422. Standard Point-to-Point requires no address and sends the data to the host whenever it is available, without a request or handshake from the host.
Point-to-Point with RTS/CTS A scanner initiates a data transfer with an RTS (request-to-send) transmission. The host, when ready, responds with a CTS (clear-to-send) and the data is transmitted. RTS and CTS signals are transmitted over two dedicated wires as defined in the RS-232 standard. Used only with RS-232. Point-to-Point with RTS/CTS (request-to-send/clear-to-send) is a simple hardware handshake protocol that allows a scanner to initiate data transfers to the host.
Point-to-Point with XON/XOFF If an XOFF has been received from the host, data will not be sent to the host until the host sends an XON. During the XOFF phase, the host is free to carry on other chores and accept data from other devices. Used only with RS-232. This option enables the host to send the XON and XOFF command as a single byte transmission command of start (^Q) or stop (^S).
Point-to-Point with RTS/CTS and XON/XOFF Used only with RS-232. This option is a combination of Point-to-Point with RTS/CTS and Point-to-Point with XON/XOFF.
ACK/NAK See ACK / NAK Options.
Polling Mode See Polling Mode Options.
QX Hawk Industrial Imager User Manual
5-23
Page 122
Communication
Address The Protocol Address can be any number between 1 and 50.
Protocol Port RS-232 A or RS-422 can be used as Protocol Ports.
5-24
QX Hawk Industrial Imager User Manual
Page 123
Parameters
ACK / NAK Options These parameters take effect for ACK/NAK on the main RS-232 or RS-422 ports (not on the Auxiliary Port), and are completely independent of the Polling Mode Options. The imager always follows the protocol in both directions (to and from the host). There is no option to disable it from either direction.
RES-NAK Defaults RES: (Reset) REQ: (Request) STX: (Start of Text) ETX: (End of Text) ACK: (Acknowledge) NAK: (Negative Acknowledge)
QX Hawk Industrial Imager User Manual
NUL (0x00) NUL (0x00) NUL (0x00) NUL (0x00) ACK (0x06) NAK (0x15)
5-25
Page 124
Communication
ACK/NAK Protocol The following are general outlines of the ACK/NAK protocol. Items that are framed by brackets ( [ ] ) can either be disabled or enabled. LRC does not include STX, but it does include preamble, postamble, and ETX. Symbol Data Output TX to host: [STX] [preamble] SYMBOL DATA [postamble] [ETX] [LRC] Response from host: ACK/NAK. Sent when LRC, ETX, postamble, or timeout (waiting for more data) are detected (if REQ is disabled) depending on what is enabled. Commands from Host to Imager TX to Imager: [STX] <command> [ETX] [LRC] Response from Imager: ACK/NAK. Sent when LRC, ETX, or command-ending angle bracket ‘>’ are received, depending on what is enabled. Command Response from Imager to Host TX to host: [STX] [preamble] COMMAND RESPONSE DATA [postamble] [ETX] [LRC] Response from host: ACK/NAK. Sent when LRC, ETX, postamble, command-ending angle bracket ‘>’, or timeout (waiting for more data) are detected, depending on what is enabled. As with Polling Mode <K140,5>, the imager can optionally perform the REQ and RES event sequences in ACK/NAK mode. If the sender does not receive an ACK or NAK, it will send REQ to request such a response (if enabled). When the sender receives an ACK, too many NAKs, or times out (if already enabled), it will send a RES (if enabled) to terminate the transaction. Note: See ACK/NAK Data Flow Examples in Appendix F for sample ACK/NAK communication scenarios.
5-26
QX Hawk Industrial Imager User Manual
Page 125
Parameters
Polling Mode Options These parameters only take effect for Polling Mode <K140,5> on the main RS-232 or RS-422 ports (not on the Auxiliary Port), and are completely independent of the ACK/NAK Options <K147>. The values of protocol characters can be changed, but the protocol events cannot be disabled. The polling mode address is configured in the <K140> command. To enable true multidrop protocol, the RS-422/485 port must be enabled, <K102,1>, in order to turn the transmitter on and off. If RS-232 is enabled instead of RS-422/485, <K102,0>, then Polling Mode will operate as a Point-to-Point polling protocol. This is because the RS-232 transmitter is always left on when enabled. Note: See ACK/NAK Data Flow Examples in Appendix F for sample Polling Mode communication scenarios.
RES-NAK Defaults RES: (Reset) REQ: (Request) STX: (Start of Text) ETX: (End of Text) ACK: (Acknowledge) NAK: (Negative Acknowledge)
QX Hawk Industrial Imager User Manual
EOT (0x04) ENQ (0x05) STX (0x02) ETX (0x03) ACK (0x06) NAK (0x15)
5-27
Page 126
Communication
Response Timeout Only used when a response is required from the host. While in Multidrop, if the imager does not receive an ACK or NAK from the host after sending polled data, it will act on a fault. The imager can be set to wait indefinitely by setting Response Timeout to zero. The time that the imager will wait before timing out if ACK, NAK, and ETX are enabled, and a host response is expected.
5-28
QX Hawk Industrial Imager User Manual
Page 127
Parameters
LRC Status Used when extra data integrity is required. An error-checking routine that verifies the accuracy of transmissions. It is the exclusive OR of all characters following the STX (start of text) up to and including the ETX (end of text). What this means is that the binary representation of all the characters in a transmission are cumulatively added in a column and each resulting odd integer is assigned a 1 and each even integer a 0 (two 1s = 0, two 0s = 0, a 1 and a 0 = 1). The extra LRC character is then appended to the transmission, and the receiver (usually the host) performs the same addition and compares the results.
QX Hawk Industrial Imager User Manual
5-29
Page 128
Communication
External Data Routing External Data Routing settings configure the global operation of all external data port settings.
External Data Routing Options Transparent Mode When Transparent Mode is enabled, the following conditions apply: Symbol Data to Source = Fixed to Enabled Ambles to Source = Fixed to Disabled Echo to Source = Fixed to Enabled Output at End of Read Cycle = Fixed to Enabled Output at ETX = Fixed to Enabled with user-defined characters. Default character will be used if this setting is set to Disabled. Output at Timeout = Fixed to Enabled with user-defined timeout. Default time will be used if this setting is set to Disabled.
5-30
QX Hawk Industrial Imager User Manual
Page 129
Parameters Mode of Operation • Source Port data will echo back to itself. • Source Port data will always pass through even when the Destination Port is in Polling Mode with the host. • Whenever ETX is received on the Source Port or symbol data is generated, the data will be send to the Destination Port with its data appearing between the Preamble and symbol data. • Source Port data will always be sent to the Destination Port with a Preamble and Postamble. • Symbol data will be sent to the Source Port on a good read without Preamble or Postamble in Point-to-Point protocol even if the Destination Port is in Polling Mode with the host. • Destination Port data always echoes to the Source Port even if the Destination Port is in Polling Mode.
QX Hawk Industrial Imager User Manual
5-31
Page 130
Communication
Half Duplex Mode When Half Duplex Mode is enabled, the following conditions apply: Symbol Data to Source = Fixed to Enabled Ambles to Source = Fixed to Enabled Echo to Source = Fixed to Disabled Output at End of Read Cycle = Fixed to Disabled Output at ETX = Fixed to Disabled with user-defined characters. Default character will be used if this setting is set to Disabled. Output at Timeout = Fixed to Disabled with user-defined timeout. Default time will be used if this setting is set to Disabled. Mode of Operation • Source Port data is not echoed back to itself. • Source Port data is ignored when the Destination Port is in Polling Mode. • Source Port data or symbol data is sent to the Destination Port whenever it is received. • Source Port data is sent to the Destination Port without a Preamble or Postamble. • Symbol data is sent to the Source Port and the Destination Port at the same time, and conforms to the communication parameters. • Destination Port data is echoed to the Source Port in an un-polled mode.
5-32
QX Hawk Industrial Imager User Manual