The text of a manual · part 15 of 21
MicroBar NX Reference Manual, pages 141 to 150
Pages 141 to 150 of 202
The original document is the PDF (718 KB). 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 UBI NX
Page 141
RS-232 - Output to host system ENQ / ACK / NAK software protocol When ENQ/ACK/NAK is active, the MicroBar NX beeps after transmission when there is a good read. You must change this parameter if you want Beep Before Transmission (Ð Beeps / Indicator LED - Timing of good read beeps ). 6 error beeps indicate a transmission failure if the timeout expires before transmission (Ð Hardware/software protocols timeout above in this section). ENQ/ACK/NAK is exclusive with the XON/XOFF and RTS/CTS transmission protocols.
Typical ENQ / ACK / NAK scenarios host terminal
MicroBar NX host terminal
MicroBar NX
ENQ
ENQ message (OK)
message (not OK)
ACK (clears message)
NAK repeats message (OK)
ACK (clears message)
MB/NX/RM/00/E/970131
131
Page 142
RS-232 - Output to host system ENQ enquiry character Scanning ENQ activates the ENQ protocol. If ENQ is not used, the MicroBar NX transmits barcode data without waiting for a request from the host system. If an ENQ character is activated, the MicroBar NX waits to receive the ENQ character from the host system before transmitting data after a good read. If no character is received before the end of the specified timeout (Ð Hardware/software protocols timeout above in this section), the data is not transmitted and the MicroBar NX emits 6 error beeps. Not Used (*)
ENQ (HEX 05)
To use a different character for ENQ: 1. Scan Compose Other ENQ Character. 2. Scan the desired character code ( ÐASCII character codes ).
Compose Other ENQ Character
132
MB/NX/RM/00/E/970131
Page 143
RS-232 - Output to host system ACK positive acknowledge character Scanning ACK activates the ACK/NAK protocol. After a successful message transmission, the MicroBar NX waits until the end of the protocol timeout before reading a new bar code (Ð Hardware/software protocols timeout above in this section). If there is no positive acknowledge (ACK) before the end of the specified timeout, the MicroBar NX emits 6 error beeps.
Not Used (*)
ACK (HEX 06)
To use a different character for ACK: 1. Scan Compose Other ACK Character. 2. Scan the desired character code ( ÐASCII character codes ).
Compose Other ACK Character
MB/NX/RM/00/E/970131
133
Page 144
RS-232 - Output to host system NAK negative acknowledge character Scanning NAK activates the ACK/NAK protocol. The MicroBar NX will emit 6 error beeps if it receives a negative acknowledge (NAK) 3 times after sending a message or if the timeout is reached and no ACK has been received.
Not Used (*)
NAK (HEX 15)
To use a different character for NAK: 1. Scan Compose Other NAK Character. 2. Scan the desired character code ( ÐASCII character codes ).
Compose Other NAK Character
134
MB/NX/RM/00/E/970131
Page 145
RS-232 - Output to host system XON/XOFF software protocol This protocol allows the host to control the flow of data from the MicroBar NX. To interrupt reception of data, the host transmits the XOFF character (ASCII DC3) after the specified timeout (ÐRS-232 - Hardware/software protocols timeout). To restart the flow, it sends the XON character (ASCII DC1). When XON/XOFF is active, the MicroBar NX beeps after transmission when there is a good read. You must change this parameter if you want Beep Before Transmission (Ð Beeps / Indicator LED - Timing of good read beeps ). XON/XOFF is exclusive with the ENQ/ACK/NAK and RTS/CTS transmission protocols.
Not Active (*)
Active
MB/NX/RM/00/E/970131
135
Page 146
RS-232 - Output to host system RTS/CTS hardware protocol Activation The MicroBar NX acts as a standard terminal and manages the RTS/CTS lines when configured. RTS is activated (high) before data is transmitted and deactivated (low) when message transmission is completed after the specified timeout (ÐRS-232 - Hardware/software protocols timeout ). CTS is tested before transmission of each character. Data is only transmitted when CTS is activated (high). If CTS is not used by the host system, the MicroBar NX keeps the level high. When RTS/CTS is active, the MicroBar NX beeps after transmission when there is a good read. You must change this parameter if you want Beep Before Transmission (Ð Beeps / Indicator LED - Timing of good read beeps ). If there is no response before the end of the specified timeout, the MicroBar NX emits 6 error beeps. RTS/CTS is exclusive with the ENQ/ACK/NAK and XON/XOFF transmission protocols. Not Active (*)
Active
136
MB/NX/RM/00/E/970131
Page 147
RS-232 - Output to host system RTS/CTS management RTS/CTS not active Low RTS Idle: The MicroBar NX maintains the low level on the RTS pin. High RTS Idle: The MicroBar NX maintains the high level on the RTS pin. RTS/CTS active Low RTS Idle: The MicroBar NX applies the normal RTS/CTS protocol. High RTS Idle: The MicroBar NX reverses the levels (but not the data) of the RTS/CTS protocol - high becomes low and low becomes high. Low RTS Idle (*)
High RTS Idle
LRC (Longitudinal Redundancy Check) LRC calculates the exclusive OR of each character (hexadecimal value) in the data. The result is converted into two bytes which are transmitted after all the other characters. Example If the resulting sum is 4Ah, the two bytes sent are 34h (representing 4) and 41h (representing A): LRC = 4Ah -> LRC1 = 34h, LRC2 = 41h
Not Active (*)
Active
MB/NX/RM/00/E/970131
137
Page 148
RS-232 - Output to host system Preamble / postamble The MicroBar NX can send preambles and postambles - control codes before and after each message - to emulate command keys on the keyboard and allow automatic data entry: <preamble> <barcode data> <postamble> A customizable symbology identifier can be inserted after the preamble ( Ð Code mark). You can include an input identification string before or after the barcode data (Ð Input identification ).
No preamble / no postamble No Preamble (*)
No Postamble
Compose preamble / postamble Each preamble and postamble can contain a maximum of 10 characters Compose Preamble
Compose Postamble
Example
To enter the STX character (ASCII character 02) as a preamble: 1. Scan Compose Preamble. 2. Scan one or more character codes you want to include in the preamble - in our example we would scan the ASCII STX (02h) character code (Ð ASCII character codes ). 3. Scan End Selection to finish (not necessary if you enter 10 characters).
138
MB/NX/RM/00/E/970131
Page 149
RS-232 - Output to host system Predefined postamble codes Carriage Return + Line Feed (*)
Carriage Return
Line Feed
Transmission delay Ð Inter-character delay Ð Inter-message delay
MB/NX/RM/00/E/970131
139
Page 150
RS-232 - Slave mode
RS-232 - Slave mode Activation Slave mode allows the MicroBar NX to be configured or controlled directly by the terminal host system via the RS-232 output port. N° 105 - RS-232 Slave Mode
How to use slave mode 1. Activate slave mode
Scan the N° 105 - RS-232 Slave Mode code and reconfigure the standard RS-232 output parameters to suit your system if required. 2. Obtain the desired command strings
Put the MicroBar NX into Display Data String Mode (Ð Configuration modes - Display data string mode) and read the codes you want the host to transmit. The full data string (command and checksum) of each code you read is displayed on the terminal screen. Example
Reading the Code 39 activation code in Display Data String Mode will display the data string: \41\4C\60\5E In this example, "\41\4C\60" is the command and "\5E" is the checksum.
140
MB/NX/RM/00/E/970131