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 8

Model 22 Series II Bar Code Scanner Operations and Maintenance Manual, pages 61 to 70

Pages 61 to 70 of 76

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 Accu-Sort Model 22

Page 61

A-7

Both the master and the slave must disable their transmitter as soon as possible after transmitting the carriage return at the end of the message. The transmitter must remain enabled while the carriage return is being sent out, however. This means that the transmitting device must wait for a "transmitter empty" (as opposed to a "transmitter ready") indication from the serial port before disabling the transmitter. This protocol has been designed for a "slow" master to communicate with a "fast" slave. The only time-critical item for the master is for the master to release control of the line immediately after spending a message to a slave. While the slave must respond within a very short time window, there are not such constraints on the master. The master may have any amount of time between messages or between characters within its message. Error Recovery

Error: The slave does not understand a poll message. Recovery: None. The master will time out, waiting for the slave’s response, then will go on to the next unit. Error: The slave does not understand a data message from the master. Recovery: The master will retransmit the data message again after timing out while waiting for the acknowledgement. Error: The master does not understand the slave’s acknowledgement of a data message. Recovery: The master will retransmit the data message after timing out while waiting for the acknowledgement. The slave will acknowledge the retransmitted message and discard it, since the message will have the same sequence number as the last message received. Error: The master does not understand the slave’s data message (response to a poll). Recovery: The master will time out waiting for the slave’s response, then continue on to the next poll. Since the slave did not receive an acknowledgement for the data message, it will retransmit the same message in response to the next poll. Error: The slave does not understand the master’s acknowledgement of the slave’s data message. Recovery: The slave will retransmit the same message in response to the next poll. The master will see that it is a duplicate message, acknowledge it, and discard it. Error: The slave does not understand a broadcast message. Recovery: None. The message will be lost.

Solutions with Vision

Page 62

A-8

MODEL 22 APPENDICES The general rules are as follows:

1. Each data message will be acknowledged by the recipient. If a data message is not acknowledged, the transmitter should retransmit it again up to three retries. After the third retry, a communications error message should be displayed and the message discarded (in some systems the message may be recorded in a disk file or on a printer to prevent data loss). 2. Each new message will have a new sequence number. If a message is received that has the same message number as the last message received, the recipient should acknowledge the message and then discard it. The sequence number should only be checked for equality to the last sequence number received: there is no requirement that the sequence number must be the next number expected (although in some systems the master will keep track of "out of sequence" errors since they would indicate that messages had been lost). The sequence number zero is a special case, since it indicates that the data message is the first data message sent since the device sending it has powered up. Messages with a sequence number of zero should always be processed as required, regardless of whether or not they are repeated "back to back". 3. Any message that contains parity errors, LRC errors or an unrecognized message type should be discarded. No acknowledgement should be sent. In some systems, the master will keep track of these transmission errors. 4. Any message that contains a correct LRC, has no errors, is of a correct type, and requires an acknowledgement should be acknowledged even if its sequence number indicates that it is a duplicate message (the sequence number is the same as the last message). If it is a duplicate message, it should be acknowledged then discarded. In some systems, the master will keep track of these duplicate message errors since they would indicate that an acknowledgement had been lost. A broadcast message (one sent to unit "00") must not be acknowledged.

Accu-Sort Systems

Page 63

A-9 Multidrop Protocol Examples

Message framing: FFh, 02h, idhigh, idlow, (DEL, STX, ?, ?, type, seq no, ?, ?, data..., ?, lrc0, lrc1, 0Dh ?, ?, CR)

The Del character is used as a guard character to make sure that the transmission line is quiet for one character time before the STX is sent. The sequence number only appears on data messages. The LRC stands for “linear redundancy check” and appears on all messages.

Polling Sequence 1. MUX polls slave at address 01 with the following format: STX, unit id (2 char), 0, 1, lrc (2 char), CR Example HEX

STX 02h

0 30h

1 31h

0 30h

1 31h

0 30h

0 30h

CR 0Dh

2. SLAVE answers the poll with the data in the following format: STX, unit id, 0, 2, seq (1 char), ...data..., lrc, CR Example

HEX

STX 0 1 0 2 1 A B C D E 7 3 CR

02h 30h 31h 30h 32h 31h 41h 42h 43h 44h 45h 37h 33h 0Dh

If no data is available: STX, unit id, 0, 5, lrc, CR Example HEX

STX 02h

0 30h

1 31h

0 35h

5 30h

0 34h

4 0

CR 0Dh

It is normally faster to allow the master to time out (which takes three characters times) than to use the “no data” response.

3. MUX acknowledges data in the following format: STX, unit id, 0, 3, lrc, CR Example HEX

STX 02h

0 30h

1 31h

0 30h

3 33h

0 30h

2 32h

CR 0Dh

4. MUX polls the next unit . . .

Solutions with Vision

Page 64

A-10

MODEL 22 APPENDICES Accu-Sort Master/Slave Protocol

Accu-Sort’s master/slave protocol is a method of allowing two Accu-Sort scanners to scan during the same trigger cycle, and send their data through one unit to a host. One unit is configured as a master unit. This unit communicates to the host through its primary serial port. It also receives data from the other unit through its secondary serial port. The other unit is configured as a slave unit. It will send any data received for the current trigger cycle to the master unit. A message is transmitted for each trigger cycle. DATA FORMAT

The secondary port of the master and the primary port of the slave are configured the same. They should both be set for RS-232 point-to-point. They communicate at 19200 baud, 7 data bits, even parity, and 2 stop bits. The slave transmits a message for each code enabled using a fixed format. The master is configured to receive this format. (See MESSAGE FORMAT) TIMING

Non-Tracking: In non-tracking mode, the slave unit's watch dog timer defaults to 400 ms. The slave unit has 400 ms from the end of the trigger cycle to begin transmission of its bar code data. It can begin transmission of its data anytime from the end of the trigger until the watch dog timer has expired. It is required to have completed all of its transmissions by the expiration of the master’s watch dog timer. The master’s watch dog timer will default to 500 ms. The master will be required to wait until the expiration of its watch dog timer before it begins transmitting its data. This will allow the master to receive and process all of the slave unit’s data before transmission. Tracking: In tracking mode, the master unit is configured to have 10 more tach pulses than the slave unit. This allows the master to receive and process all of the slave unit’s data before transmission.

Accu-Sort Systems

Page 65

A-11 MESSAGE FORMAT

The transmission of bar code data from the slave unit to the master unit will use the following format: STX TRIG_ID(1) TYPE (2) CODE(n) QQ(2) CR STX = Start of text character (02h). TRIG_ID(1) = Single ASCII character representing the ID number for the current trigger cycle. The first trigger cycle will start with an ID of zero (30h). Each consecutive trigger will increment the ID. The ID will increment up to nine (39h), wrap to one (31h), and begin incrementing again. All messages for a trigger cycle will have the same ID. TYPE (2) = Two ASCII characters representing the code type of the data being transmitted. VALUE 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17

TYPE No-read Straight 2 of 5 Interleaved 2 of 5 Code 39 (STI option) Code 39 Code 128 UPC-A (10 characters) UPC-E (6 characters) UPC-A (12 characters) UPC-E (12 characters) EAN-13 EAN-8 Codabar (start/stop not included) Codabar (start/stop included) AS-10 10 Bit Periodic Binary Code 93 PharmaCode

CODE(n) = String of ASCII characters containing the bar code. This field is not required for a no-read message. QQ(2) = Two ASCII characters representing the quality of code read (01-99). This field is not required for a no-read message. CR = Carriage return (0Dh)

Solutions with Vision

Page 66

A-12

MODEL 22 APPENDICES MESSAGE PROTOCOL

When each unit powers up, it will send a synchronization character (SYN or 16h) to the other unit. This character will indicate that both units will set their next trigger ID to 0. The data messages will be sent down from the slave to the master for each trigger cycle. For each trigger cycle, the master will wait for messages from the slave before transmitting to the host. Each message received from the slave should have the same trigger ID that the master is using for that trigger cycle. If an incorrect ID is received, an error should be logged on the master unit and the data should be discarded. The master will place any valid messages into its compare buffer and process them as if they were read by that unit. Protocols Used With RS232, Current Loop, and 422

RTS/CTS (Used with only RS232)

This protocol stands for "Request To Send" and "Clear To Send". This is a common type of "handshaking" that goes on between two units. When one device wants to transmit to another device, it will drive the RTS line indicating it has data to transmit. When the receiving device is ready to receive, it will drive the CTS line indicating it is ready. When you use RTS/CTS it requires the addition of two more wires on the communication cable. If they are not needed, it is advised not to use any other additional lines in the cable. ACK/NAK

This is a software protocol. When a unit receives a message, it indicates whether it has received that message correctly. If all information is received, the unit will transmit an "ACK" (acknowledge). The ACK is a signal that more information may be transmitted. If the information is not received correctly, then it will transmit a "NAK" (non-acknowledge). The NAK is a signal requesting a message be retransmitted. Most software has a limit to the number of retransmits. Three NAKS is common. XON/XOFF

This is a software protocol. XON stands for "transmit on" and XOFF stands for "transmit off." A unit receiving data may signal the unit transmitting that it should stop sending data by transmitting an XOFF (ctrl-S). An XON (ctrl-Q) signals the original unit to begin transmitting again.

Accu-Sort Systems

Page 67

A-13

APPENDIX B: ASCII CHART

DEC

HEX

000 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031

00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F

HEXADECIMAL & DECIMAL CHARACTER ASCII TABLE ASCII DEC HEX ASCII DEC HEX ASCII DEC ^@ NUL ^A SOH ^B STX ^C ETX ^D EOT ^E ENQ ^F ACK ^G BEL ^H BS ^I HT ^J LF ^K VT ^L FF ^M CR ^N SO ^O SI ^P DLE ^Q DC1 XON ^R DC2 ^S DC3 XOFF ^T DC4 ^U NAK ^V SYN ^W ETB ^X CAN ^Y EM ^Z SUB ^[ ESC ^\ FS ^] GS ^^ RS ^- US

032 033 034 035 036 037 038 039 040 041 042 043 044 045 046 047 048 049 050 051 052 053 054 055 056 057 058 059 060 061 062 063

20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F

SPC ! " # $ % & ’ ( ) * + , . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ?

064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095

40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F

@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _

096 097 098 099 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127

HEX

ASCII

60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F

’ a b c d e f g h I j k l m n o p q r s t u v w x y z { | } ~ DEL

ASCII Chart

Solutions with Vision

Page 68

A-14

MODEL 22 APPENDICES

APPENDIX C: READ CHARTS MODEL 22 SERIES II A – STANDARD OPTICS ¨

Accu-Sort Systems

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

A-15

MODEL 22 SERIES II B, HIGH DENSITY OPTICS

NARROW DEPTH OF MAXIMUM rates READING RANGE FIELD SCAN WINDOW 5.0 mil (.013mm) | 5° - 7” (127-178mm) > (1mm) | 5° (127mm)@7” (178mm) 7.50 mil (019mm) | 4.5" - 8" (114-203mm) | 3.5" (89mm) | 7° (178mm)@7" (178mm) 10.0 mil (25mm) | 45” - 9° (114-227mm) |} 4.5" (144mm) | 8” (203mm)@s" (203mm) 15.0 mil (38mm) | 45” - 11.5” (114-292mm)| 7” (178mm) _ | 10” (254mm)@9” (229mm) MDL22B 1 5” 1 0” S C nH A 5 "A W a, 0 5 | / D . a O 5” W < - 3.5 1 0” 1 5” 30” 25” 20” 1 5” 1 Q” 5” 0”

DISTANCE FROM SCANNER

Scan Rate

= 300 Scans/Sec

+/- 10 degrees pitch, +/- 10 degrees skew D.O.F. + Window based on > 96% Scanning Efficiency

Solutions with Vision

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

A-16 MODEL 22 APPENDICES

MODEL 22 SERIES II C, HIGH SPEED OPTICS

NARROW DEPTH OF MAXIMUM ELEMENT READING RANGE FIELD SCAN WINDOW

15.0 mil (.38mm) | 6” - 15” (152-381mm) | 9” (229mm) _ | 10” (254mm)@15” (381mm) 20.0 mil (5mm) | 6” - 17” (152-432mm) | 11” (279mm) | 12” (305mm)@15” (381mm) 30.0 mil (.76mm) | 6” - 21” (152-533mm) | 15” (381mm) | 14” (356mm)@15” (381mm)

MDL22C

15”

10”

Oo} oO

SoOouzZz-S 2>0ON Q

10”

15” 30” 25” 20” 15” 10” 5” 0” DISTANCE FROM SCANNER

Scan Rate = 800 Scans/Sec +/- 10 degrees pitch, +/- 10 degrees skew D.O.F. + Window based on = 96% Scanning Efficiency

Accu-Sort Systems