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 7 of 37

MS-4 Imager User Manual, pages 61 to 70

Pages 61 to 70 of 366

The original document is the PDF (4.2 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 MS-4

Page 61

Communications

Daisy Chain ID Status Usage: Definition: Serial Cmd: Default: Options:

Used in a daisy chain setup in cases where the host needs to know which reader in the chain sent the data. Each reader in a daisy chain can be assigned a one or two character ID that will appear in front of decoded data and identify its source. <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain i.d. status, daisy chain i.d.> Disabled 0 = Disabled 1 = Enabled

Note: Enable/disable and length must be the same in all readers.

Daisy Chain ID Usage: Definition: Serial Cmd:

Used in a daisy chain setup in cases where the host needs to know which reader in the chain sent the data. A one or two character prefix which identifies the particular daisy chain reader from which the data is being sent to the host. <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain i.d. status,daisy chain i.d.>

Default:

1/

Options:

Any one or two ASCII characters.

Important: The ASCII characters <, >, and , can only be entered as hex pairs: For <: <K101h,,,,,,,3C> For >: <K101h,,,,,,,3E> For , : <K101h,,,,,,,2C> See ASCII Character Entry Modifier on page 3-32 for a detailed explanation of how to enter ASCII characters as hex values.

MS-4 Imager User Manual

3-17

Page 62

Auxiliary Port System Data Status

Auxiliary Port System Data Status Definition: Serial Cmd: Default: Options:

When enabled, system data will be routed to the Auxiliary Port. This includes decoded data and diagnostic warning messages. When disabled, system data will not be routed to the Auxiliary Port. <K146,aux port system data status> Disabled 0 = Disabled 1 = Enabled

Note: The USB version of the MS-4 does not have an Auxiliary Port.

3-18

MS-4 Imager User Manual

Page 63

Communications

Daisy Chain Autoconfigure Usage: Definition:

Serial Cmd:

For quick setup and configuration of your daisy chain network. The command to autoconfigure the daisy chain is sent to the primary Imager and the software responds in the following ways: • Counts the number of secondary readers in the daisy chain. • Assigns an internal ID number (1...n) to each secondary reader, where the first secondary reader is number 1 (the primary reader’s ID being a 0). • Propagates the communications settings and the relevant operating modes of the primary Imager to the host and auxiliary ports of each secondary reader. • Resets each secondary reader. • Verifies that each secondary reader has acquired the new settings. <K150DAISY>

Note: All secondary readers must be set to Serial for Daisy Chain to function. When setting up a daisy chain operation, perform the following steps: 1. Set the primary Imager (the one connected to the host) to Serial. This sets all the Imagers in the chain to Serial when the command is executed. Before Autoconfigure you must set the primary Imager to Serial (S):

Host

S

Primary Imager

S

Secondary Imager

S

Secondary Imager

2. Send <K150DAISY>. 3. If necessary, set the primary Imager to Edge. After Autoconfigure you may set the primary Imager to Edge (E), but the other Imagers must remain in Serial (S):

Host

E

Primary Imager

S

Secondary Imager

S

Secondary Imager

Note: The USB version of the MS-4 does not support this command.

MS-4 Imager User Manual

3-19

Page 64

Response Timeout

Response Timeout Usage:

Definition: Serial Cmd: Default: Options:

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 reader 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. <K143,response timeout> 12 (in 1mS increments) 0 to 255 (A zero (0) setting causes an indefinite wait.)

Note: See USB HID Interface on page 3-23 for protocol information relating to USB.

3-20

MS-4 Imager User Manual

Page 65

Communications

LRC Status (Longitudinal Redundancy Check) Usage: Definition:

Serial Cmd: Default: Options:

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. <K145,status> Disabled 0 = Disabled 1 = Enabled

Note: The USB version of the MS-4 does not support this command.

MS-4 Imager User Manual

3-21

Page 66

Protocol Configuration Examples

Protocol Configuration Examples Point-to-Point (Main Port) <K100,8,0,1,1> <K140,0> <K102,0>

Baud Rate: 115.2K; Parity: None; Stop Bits: 2; Data Bits: 8 Point-to-Point RS-232 enabled; <K102,1> = RS-422 enabled

Polling Mode (Main Port) <K100,4,0,1,1> <K140,5,23> <K102,0> <K143,30>

Baud Rate: 9600; Parity: None; Stop Bits: 2; Data Bits: 8 Polling Mode; Address: 23 RS-232 Point-to-Point polling 30 mS Response Timeout

“User-Defined” Polling Mode (Main Port) <K100,4,0,1,1> Baud Rate: 9600; Parity: None; Stop Bits: 2; Data Bits: 8 <K140,5,12> Polling Mode; Address: 12 <K148,,08,09,18,0B,0C,0D> Default RES (0x04), REQ=0x08; EOT=0x09; STX=0x18; ETX=0x0B; ACK=0x0C; NAK=0x0D <K102,0> RS-232 Point-to-Point polling <K143,40> 40 mS Response Timeout

ACK / NAK (Main Port) <K100,9,0,1,1> <K140,4> <K147,,,01,1B,2E,1F> <K102,1> <K143,50>

Baud Rate: 230K; Parity: None; Stop Bits: 2; Data Bits: 8 ACK/NAK Default RES and REQ (00, disabled); STX=0x01; ETX=0x1B; ACK=0x2E; NAK=0x1F RS-422 enabled; <K102,0> = RS-232 enabled 50 mS Response Timeout

Auxiliary Port

Listed below are several examples of Auxiliary Port commands. <K101,2,4,0,1,1> <K101,1,5,0,1,1> <K101,3,7,0,1,1> <K101,5,6,0,1,1>

3-22

Half Duplex; Baud Rate: 9600; Parity: None; Stop Bits: 2; Data Bits: 8 Transparent; Baud Rate: 19.2K; Parity: None; Stop Bits: 2; Data Bits: 8 Full Duplex; Baud Rate: 57.6K; Parity: None; Stop Bits: 2; Data Bits: 8 Command Processing; Baud Rate: 230K; Parity: None; Stop Bits: 2; Data Bits: 8 MS-4 Imager User Manual

Page 67

Communications

USB HID Interface The USB version of the MS-4 Imager operates as an HID (Human Interface Device) on the USB bus. HID-class devices communicate via “report” packets. An HID may support multiple report types, each of which is identified with a unique report ID. The MS-4 supports two different report types: • Microscan HID Report (ID = 1) • Keyboard Report (ID = 2) The Imager always outputs the same data for both report types. The user may enable or disable either report type. Regardless of the report type used by the host application, the application protocol via USB is identical to RS-232 / RS-422 ports. HID Reports are used as a channel for standard Microscan Imager communication, command input, and symbol data output. Important: No matter how the Imager is configured, it is always able to receive and respond to commands from the host application using Microscan HID Reports.

MS-4 Imager User Manual

3-23

Page 68

USB HID Interface

Report Options The following functionality conditions hold true regardless of how HID Reports are configured: 1. The host application must establish a connection with the Imager to receive Microscan HID IN Reports (symbol data) and to send Microscan HID OUT Reports (commands, serial triggers). 2. The Imager can always receive Microscan HID OUT Reports (commands, serial triggers). 3. The host application can always send commands through Microscan HID OUT Reports. If the command requires a response (a part number, for example), the Imager will always send the response through Microscan HID IN Reports. 4. The Imager always ignores Keyboard OUT Reports sent by the host operating system. 5. The content of both the Keyboard Reports and Microscan HID IN Reports is identical, except for Keyboard Reports non-printable data limitations.

Microscan HID IN Reports

HID Reports are used as a channel for standard Microscan Imager communication, command input, and symbol data output. There are two types of Microscan HID Reports: Report Type Microscan HID IN (Imager to host) Microscan HID OUT (host to Imager)

Data Content Symbol data; No Reads; Service messages Commands; serial triggers

Note: The Imager is always able to receive commands and serial triggers from the host through Microscan HID OUT Reports, regardless of the Microscan HID IN Report status. If the Imager receives a command that requests a response, such as a part number query, the Imager will send a Microscan HID IN Report regardless of the IN Report status. Serial Cmd: Default: Options:

<K149,Microscan HID IN Report status,Keyboard IN Report status> 1 0 = Disabled

1 = Enabled

Microscan HID IN Reports Enabled When this feature is enabled, the Imager will send Microscan HID IN Reports to the host, containing data originated by the Imager.

Microscan HID IN Reports Disabled

When this feature is disabled, the Imager will not send Microscan HID IN Reports to the host, containing data originated by the Imager.

3-24

MS-4 Imager User Manual

Page 69

Communications

Keyboard IN Reports

The host operating system will interpret Keyboard IN Reports from the Imager as if the user were typing keyboard text. The host operating system sends keystrokes to the current application. This is commonly called a Keyboard Wedge configuration. There is one type of Keyboard Report used: Report Type Keyboard IN (Imager to host)

Data Content Symbol data; No Reads; Service messages

Note: If Keyboard IN Reports is enabled, and Microscan HID IN Reports is disabled, the read cycle must be Continuous Read 1 Output, because there will be no External Trigger or Serial Trigger. It is not possible to send commands to the Imager as Keyboard OUT Reports. To send commands to the Imager via USB, the host application must establish a connection with the Imager and send Microscan HID OUT Reports. Serial Cmd: Default:

<K149,Microscan HID IN Report status,Keyboard IN Report status> 0

Options:

0 = Disabled

1 = Enabled

Keyboard IN Reports Enabled

When this feature is enabled, the Imager will send Keyboard IN Reports to the host, containing data originated by the Imager.

Keyboard IN Reports Disabled

When this feature is disabled, the Imager will not send Keyboard IN Reports to the host, containing data originated by the Imager.

MS-4 Imager User Manual

3-25

Page 70

USB HID Interface

Microscan HID Report Format Size: 64 bytes, fixed-length. The USB HID standard defines all reports as being fixed-length. Structure: REPORT ID (1) LENGTH (1) DATA (62) Values in parentheses indicate the size, in bytes, of the field.

Field Descriptions REPORT ID Size: 1 byte Value: 0x01 Note: Report ID is the method employed by USB HID to allow multiple report formats to be sent and received from the same interface. LENGTH Size: 1 byte Value: 0-62 Note: Length indicates the number of valid data bytes in the fixed-length data field. This is necessary because the USB HID standards define HID Reports as fixed-length, yet the Imager or host may require a smaller data size in any given report. DATA Size: 62 bytes, fixed-length Value: 0x00 to 0xFF Note: The Data field is left-justified, meaning it begins immediately after the Length field. All unused data space is NUL (0x00) padded. Data values can be “binary”, meaning that they span the entire 8 bit range of 0x00 to 0xFF.

3-26

MS-4 Imager User Manual