The text of a manual · part 23 of 25
MS-3 Laser Scanner User's Manual, pages 221 to 230
Pages 221 to 230 of 242
The original document is the PDF (7.8 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-3
Page 221
MS-3 Laser E.book Page 29 Monday, August 30, 2004 11:09 AM
Chapter Appendices
Appendix K, Formulas for Number of Decodes To ensure reliable scanning, apply a minimum of five decodes to each symbol. Use the formulas below to calculate the number of decodes that your symbol will receive. If the number of decodes you derive from one of these calculations is less than the minimum for your application, plug in the minimum number of decodes (5) and solve for another parameter that might be changed, such as symbol speed or scans per second. Note: While the formulas given here solve for the predicted number of decodes, you may also use the formulas to solve for other parameters that might be changed, such as symbol speed, symbol length, etc.
Single Line Ladder Calculation For single scan line ladder scanning, use the following formula:
Direction of label travel
Scan Line
1 ⎛ SH ⎞ ------⎝ SS × DR⎠ – 3 = ND (number of decodes)
SH (Symbol Height) (ladder formula only) is a measurement of the height of individual bars. SS (Symbol Speed) is the distance per second that a symbol Figure A-2 Ladder moves through the scan. DR (Decode Rate) is the number of decodes per second that a given symbol receives (as derived from a stationary scan test in “Test Decode Rate” on page A-43).
Single Scan Line Picket Fence Calculation For single scan line picket fence scanning use the following for-
Direction of label travel mula: SW – SL )⎛ (-------------------------× DR⎞ – 3 = number of complete decodes ⎝ ⎠ SS
Label placement area
Scan line
Figure A-3 Picket Fence
1. The -3 component in the formula is included to allow for AGC acquisition, an incomplete first scan, and an incomplete last scan. This applies only if the number inside the parentheses equals 4 or more. If the number equals 3, then only subtract 2 to derive 1 good scan. MS-3 Laser Scanner User’s Manual
A-29
Page 222
MS-3 Laser E.book Page 30 Monday, August 30, 2004 11:09 AM
Formulas for Number of Decodes
Angled Picket Fence Calculation Direction of symbol travel
The number of complete scans for angled picket fence is calculated the same as that for picket fence, with the exception that the scan width is shortened in proportion to scan tilt.
Scan Line
Improving the Number of Decodes
Figure A-4 Angled Picket Fence
After changing any of the parameters described in this section, recalculate the number of decodes.
Scan Rate Scan rate is a function of motor speed and is adjustable. A slower scan rate may allow greater symbol range and/or higher decode rates, but at the cost of fewer scans per symbol.
Range Adjusting the symbol’s range, if possible, is one of the quickest and most effective ways to improve decode rates. However, in some applications you may need to select a less than optimum range, or one that is beyond the fringes of the ranges.
Scan Width Increasing scan width will increase the number of scans in a picket fence oriented application. Scan width is linked with scan range and changing one will usually require a change in the other.
Symbol Speed Applies to both picket fence and ladder oriented symbols. If your application allows it, slowing symbol speed (the time in seconds that a symbol is fully within the scan width of the scanner) is an effective way to increase the number of decodes.
Symbol Dimensions, Symbol Density, and Symbol Ratio Not usually an option in most applications, but changes to symbol parameters can affect number of decodes calculations and possibly decode rates. If your application allows it, shortening the length of a picket fence symbol means the symbol will be in the scan range longer and hence receive a greater number of scans. Increasing the height of a ladder symbol means it will receive more scans. Changing symbol density and/or symbol ratio is another way ranges, decode rates, etc. can be altered.
A-30
MS-3 Laser Scanner User’s Manual
Page 223
MS-3 Laser E.book Page 31 Monday, August 30, 2004 11:09 AM
Chapter Appendices
Appendix L, Operational Tips Do: • Check inputs (symbol speed, length, height, etc.) to ensure the desired number of decodes per symbol. • Connect scanner to host before connecting power to the scanner; disconnect power before disconnecting the host from the scanner. • For optimum decodes, mount scanner so that your symbols pass through the center of the depth-of-field (minimum/maximum range). You find the center by moving your symbol in and out during a read rate test. • Avoid excessive tilt, pitch, and skew of the symbol. • Check the symbol for readability by doing a decode rate test. If there is any question about the symbol's readability, contact your Microscan representative at helpdesk@microscan.com. • After changing any parameter that might affect decode rate, repeat decode rate test. • Clean the scanner window with a clean, dry Q-tip or cotton cloth on a regular basis.
Do Not: • Aim the scanner into direct light or sunlight. • Aim the scanner into an external object detector or other light-emitting device. • Obstruct the scanner window with mounting hardware or other objects. • Connect chassis of scanner and host to different ground potentials. • Operate the scanner in excessive temperature environments.
MS-3 Laser Scanner User’s Manual
A-31
Page 224
MS-3 Laser E.book Page 32 Monday, August 30, 2004 11:09 AM
Interface Standards
Appendix M, Interface Standards Interface Standards, established by the Electronic Industries Association (EIA), specify such things as the signaling voltage levels, maximum cable lengths, and number of drivers. With Microscan devices, selection of interface is made by pin assignment and, in the case of the host communications, by software switching between RS232 and RS422. Microscan devices use RS232, RS422, and RS485 multidrop.
RS232 RS232 defines an interface between two devices, such as the scanner and host. It differs from the other interfaces by dedicating individual pins to specific functions and by requiring both devices to share a common ground line. Since both device chassis are connected to a common ground, a ground loop potential and the possibility of noise interference exists; therefore, cable lengths are limited to a maximum of 50 feet (19.7m). Despite being the most limited, this interface is used frequently because of the large installed base of RS232 equipment.
RS422 RS422, unlike RS232, measures signals deferentially; that is, the receiver looks at the potentials between the two receive (or transmit) wires rather than the potential between signal and ground. As a result, cables, if shielded, can be up to 4000 feet (1219m) in length. Like RS232, RS422 communication is designed for only two devices on a single line and must have a common ground. It can be used wherever RS232 is used.
RS485 RS485, like RS422, can transmit up to 4000 feet (1219 m) using differential voltages, but unlike RS422, its transmitters are turned off until a request for data is received from the host. RS485 is used exclusively in multidrop protocol.
USB The Universal Serial Bus can connect up to 127 devices to a host at a maximum of 6 megabits per second (Mbps) of bandwidth.
A-32
MS-3 Laser Scanner User’s Manual
Page 225
MS-3 Laser E.book Page 33 Monday, August 30, 2004 11:09 AM
Chapter Appendices
Appendix N, Multidrop Communications This appendix describes the rules for setting up a concentrator or controller to communicate with a scanner in standard Multidrop protocol. The diagram to the right shows a typical Multidrop network in which 1 to 50 scanners can communicate with a host via an intermediary device, a concentrator or a controller.
Host Concentrator
Polled Protocol Multidrop ONLY RS-485 Interface
Scanner 01 Scanner 02 Scanner 03
Configure Your Scanner for Multidrop 1. With the scanner connected to the host, do Retrieve Scanner Settings as in Step 7, “Retrieve Scanner Settings” on page 1-11. 2. Select Multidrop in the Protocol configuration menu. You will see the following message: Important. You must change your preamble and postamble characters so that they are not CR or NULL.
This allows data to move through the concentrator without interference. 3. Click OK. 4. Next, go to Preamble Characters (still in the Protocol menu) and double-click on Characters. 5. This will open up an ASCII character table. Select any character other than CR. For example, select LF. 6. Repeat the above for Postamble. 7. Check the multidrop address. Enter a number from 01 to 50. 8. Right-click in the window and select Save to Scanner and Send and Save. 9. Your scanner is now in multidrop. From here on, you will need to use the concentrator to relay commands and data between the scanner or scanners and the host. 10. Next, go to “Connect to Scanner via the Concentrator” on page A-52.
MS-3 Laser Scanner User’s Manual
A-33
Page 226
MS-3 Laser E.book Page 34 Monday, August 30, 2004 11:09 AM
Multidrop Communications
Connect to Scanner via the Concentrator You will need a multidrop concentrator and the required power supplies and cabling to communicate with your scanner(s). 1. From the Communications drop down menu, select Configure Multidrop to bring up the Multidrop Settings dialog. 2. If necessary, change the default address to match the address of your multidropped scanner and click OK. If the host serial port is not connected in ESP, you will see the following popup message: ESP is not currently connected to the multidrop concentrator. Do you wish to establish a connection now?
3. Click Yes. You will see a Serial Communication Parameters dialog as shown. Notice that the Force Connection option is checked. Do not change this. 4. Select the concentrator’s host port communications settings. When you click Connect, you will be connecting to your concentrator, which can then relay commands to the scanner whose address was set in the Multidrop Settings dialog. 5. Click Connect. 6. You should see the CONNECTED message in green at the bottom of the window along with the scanner’s Multidrop address.
7. Click Retrieve Scanner Settings to upload scanner’s configuration. If upload fails, return to the Serial Communication Parameters dialog and make the corrections. 8. Follow the same procedure for connecting other scanners to your multidrop network. Note: For more information, see your scanner user’s manual or Microscan’s MS-5000 Multidrop Concentrator User’s Manual, 83-005000.
A-34
MS-3 Laser Scanner User’s Manual
Page 227
MS-3 Laser E.book Page 35 Monday, August 30, 2004 11:09 AM
Chapter Appendices
Polling Sequence Data that is transmitted to the host (symbol data, noread messages, counters, etc.) via concentrators is solicited by poll requests from the host. The polling sequence example is by poll address 1E (ASCII hex value for Scanner 02) and a REQ (request). The scanner responds by first transmitting its own address, 1E, followed by a STX (start of text) character, and then the data. Next it transmits an ETX (end of text) character and an LRC (longitudinal redundancy check) character. If the concentrator (or controller) receives the data from the scanner and is able to validate it with an LRC calculation, it responds with an ACK (acknowledgment). If the scanner in turn receives the ACK, the scanner ends this exchange with a RES (reset). Start of Sequence
Concentrator Scanner 02
End of Sequence
RES 1E REQ
ACK 1E STX DATA ETX LRC
RES
Figure A-5 Polling Sequence
Polling Reset • If the scanner has no information, it responds to a poll request by transmitting a RES (reset). • If the scanner receives a NAK instead of the ACK after transmitting its data string, it will re-attempt to send the data string up to three times. If the scanner still does not receive an ACK, it will send a RES (reset) and discard the data in its buffers. • If the scanner transmits data to the concentrator and the concentrator responds with an ACK or NAK, but the scanner doesn’t receive the concentrator’s response, the scanner will timeout and send a REQ to the concentrator and request another response. If after three retries (the number of times it transmits a REQ to the concentrator) the scanner receives no response, it ends the transmission with a RES (reset).
MS-3 Laser Scanner User’s Manual
A-35
Page 228
MS-3 Laser E.book Page 36 Monday, August 30, 2004 11:09 AM
Multidrop Communications
Select Sequence Unlike poll requests, select commands always originate from the host and consist of serial configuration or operation commands to devices that are configured in Multidrop. The scanner complies with the command when it is polled during the cycle. Start of Sequence
End of Sequence
Concentrator RES 1F REQ Scanner 02
STX <T>ETX LRC 1F ACK
RES 1F ACK
Figure A-6 Polling Sequence A RES (reset) is the first command in the select sequence. The 1F hex is the select address associated with Scanner 02 address. It is followed by a REQ (request). The scanner responds with its own select address, 1F hex, and an ACK (acknowledge). The concentrator then transmits an STX (start of text), the data (in this case a <T>), an ETX (end of text), and an LRC character. The scanner replies by transmitting its own address, followed by an ACK, acknowledging receipt of the command. Upon receipt of an ACK, the concentrator concludes the successful exchange with a RES. In the example above, the scanner only acknowledges a trigger counter request from the concentrator. It does not respond to the trigger counter request until a subsequent poll. For example, if the scanner’s trigger count was 12 at the time the trigger counter request was received, on a subsequent poll it would send 02T/00012. (The 02 at the beginning of the string is the scanner’s address.)
Select Reset If the scanner receives bad data from the concentrator, it transmits a SEL (its select address) and a NAK to the concentrator. The concentrator re-transmits the data up to three times. The concentrator will end the sequence with a RES (reset) if no ACK is received.
A-36
MS-3 Laser Scanner User’s Manual
Page 229
MS-3 Laser E.book Page 37 Monday, August 30, 2004 11:09 AM
Chapter Appendices Table A-13 Multidrop Addresses Multidrop Address 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Poll Character ASCII HEX ^\ 1C ^^ 1E SP 20 " 22 $ 24 & 26 ( 28 * 2A , 2C . 2E 0 30 2 32 4 34 6 36 8 38 : 3A < 3C > 3E @ 40 B 42 D 44 F 46 H 48 J 4A L 4C
Select Character ASCII HEX ^] 1D ^1F ! 21 # 23 % 25 ' 27 ) 29 + 2B 2D / 2F 1 31 3 33 5 35 7 37 9 39 ; 3B = 3D ? 3F A 41 C 43 E 45 G 47 I 49 K 4B M 4D
Multidrop Address 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
Poll Character ASCII HEX N 4E P 50 R 52 T 54 V 56 X 58 Z 5A \ 5C ^ 5E ` 60 b 62 d 64 f 66 h 68 j 6A l 6C n 6E p 70 r 72 t 74 v 76 x 78 z 7A | 7C ~ 7E
Select Character ASCII HEX O 4F Q 51 S 53 U 55 W 57 Y 59 [ 5B ] 5D _ 5F a 61 c 63 e 65 g 67 i 69 k 6B m 6D o 6F q 71 s 73 u 75 w 77 y 79 { 7B } 7D D 7F
MS-3 Laser Scanner User’s Manual
A-37
Page 230
MS-3 Laser E.book Page 38 Monday, August 30, 2004 11:09 AM
Glossary of Terms
Appendix O, Glossary of Terms Analog Gain Adjustment (AGC). Adjustment to signal strength that seeks to maintain a constant level regardless of the range of the symbol. Application Record. A variation of UCC/EAN-128 which adds an application identifier to symbol data, including user-definable separators, brackets, and padding. Autodiscriminate. The ability to decode several different symbologies without changing configuration. Auxiliary Port. Provides RS-232 connections to an auxiliary terminal or device for remote viewing, for the transfer of data to and from the host, and under certain conditions as a configuration port. Bar Code. The medium or label on which a symbol is printed or etched. Bar Code Data. The information that is transmitted from a decoded bar code symbol. Baud Rate. The number of discrete signal events per second. Bits per second. Calibration. A routine that cycles through various optical settings and selects the combination that produce the best read rate. Capture. The act of grabbing or recording a frame by a sensor. A frame or succession of frames that are captured. Check Digit. A Modulus 43 or Modulus 10 digit that is added to the symbol message for additional data integrity. Configuration. A setup or process of changing a scanner’s settings to conform to a specific application. A physical arrangement of components. Concentrator. Intermediary device that relays data from scanners to a host and commands from the host to the scanner or other devices. Connector. Physical device (plug or socket) on a device or cable to provide in/out connectivity for various circuits and pins. Counter. Memory space provided to keep track of scanner events. Daisy Chain. Linkage of master and slave scanners to allow data to be relayed up to the host via auxiliary port connections. Decode. A good read. The successful scanning and decoding of the information encoded in symbol. Default. (verb) Restore Microscan or customer default settings, initialize serial commands and reset all counters. Defaults. (noun) The settings that are restored whenever a default takes place. Delimited. A command or field that is bracketed by pre-defined characters. Decode Rate (DR) The number of decodes per second that a given scanner is capable of receiving. Depth of Field. The distance between the minimum and maximum range in which symbols have been read. Discrete I/O. Inputs and outputs characterized by discrete signal transitions from one voltage level to another so that digital switching can occur.
A-38
MS-3 Laser Scanner User’s Manual