The text of a manual · part 4 of 23
MS-820 Industrial Bar Code Scanner User's Manual: MS-820 Industrial Bar Code Scanner User's Manual, pages 31 to 40
Pages 31 to 40 of 222, from MS-820 Industrial Bar Code Scanner User's Manual
The original document is the PDF (4.3 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-820
Page 31
Chapter 2 Communications
Transparent Mode Definition:
• Auxiliary port data to the host is always sent with a preamble and a postamble.
Scanner
• If the scanner is in a polled mode to the host, auxiliary port data will still pass through. • <D> is the only command accepted by the scanner from the auxiliary port. All other commands will pass through to the host. Data initiated from the Scanner
• Transmission to the auxiliary port occurs immediately upon a good read.
Host
• Scan data to the auxiliary port does not include a preamble or a postamble. • Communications with the auxiliary port is always in Point-to-Point protocol, even if the host is in a polled protocol mode.
Scanner
Data initiated from the Host
• All host data is echoed to the auxiliary port in unpolled mode.
Aux Port
Host
Aux Port
Scanner
Usage:
A common application, in conjunction with handheld scanners, is one that employs an auxiliary readout to detect mis-applied bar code labels.
Serial Cmd:
<Kyaux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status,daisy chain ID> 1 = Transparent
MS-820 Industrial Bar Code Scanner User’s Manual
2-7
2–Communications
In Transparent mode data is passed between the auxiliary port and the host. The scanner buffers data from the auxiliary port and echoes the keyed data on the auxiliary port. • Auxiliary port data is passed through to the Aux host whenever a return key is pressed at the Host Port auxiliary port or whenever bar code data is sent. If sent with bar code data, it is processed on a first-in/first-out basis.
Page 32
Auxiliary Port
Half Duplex Mode Definition:
In Half Duplex mode all auxiliary port data and bar code data is sent directly to the host. Bar code data is displayed on the auxiliary port screen at the same time the data is sent to the host. Data initiated from the Auxiliary Port
2–Communications
• Auxiliary port data to the host is ignored if the scanner is in a polled mode.
Host
• Auxiliary port data or scanned data is sent to the host whenever it is received. • Auxiliary port data is not echoed. • Auxiliary port data to the host is always sent without a preamble or a postamble.
Aux Port
Scanner
• <D> is the only command that is accepted by the scanner from the auxiliary port. All other commands are passed through to the host. Data initiated from the Scanner
• Scan data is transmitted to the auxiliary port at the same time it is transmitted to the host.
Host
• Data transmission conforms with all parameters specified in the configuration menu (e.g., Preamble, Postamble, End of Read Cycle). Data is initiated from the Host
• All host data is echoed to the auxiliary port in unpolled mode.
Aux Port
Scanner
Host
Aux Port
Scanner
Usage:
Useful when the user wants bar code data displayed on an auxiliary screen close to the scanner.
Serial Cmd:
<Kyaux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status,daisy chain ID> 2 = Half Duplex
2-8
MS-820 Industrial Bar Code Scanner User’s Manual
Page 33
Chapter 2 Communications
Full Duplex Mode Definition:
In Full Duplex mode all auxiliary port data and bar code data is sent directly to the host. Bar code data is not displayed on the auxiliary port screen. Data initiated from the Auxiliary Port Host
Aux Port
• Auxiliary port data or scanned data is sent to the host whenever it is received. • Auxiliary port data is not echoed.
Scanner
• Auxiliary port data to the host is always sent without a preamble or a postamble. • <D> is the only command that is accepted by the scanner from the auxiliary port. All other commands are passed through to the host. Data initiated from the Scanner
• Scan data is not sent to the auxiliary port.
Host
Aux Port
Scanner
Data initiated from the Host
• All host data is echoed to the auxiliary port in unpolled mode.
Host
Aux Port
Scanner
Usage:
When communication to and from the auxiliary port is required.
Serial Cmd:
<Kyaux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status,daisy chain ID> 3 = Full duplex
MS-820 Industrial Bar Code Scanner User’s Manual
2-9
2–Communications
• Auxiliary port data to the host is ignored if the scanner is in a polled mode.
Page 34
Auxiliary Port
Daisy Chain Mode
2–Communications
Note: See also “Daisy Chain Autoconfigure” on page 2-27. Definition:
In a daisy chain application, scanners are connected in tandem or “daisy chain” and decoded data is relayed from one scanner to another on up to the host. A master scanner has its host port linked to the host computer and its auxiliary port linked to the host port of the first “slave” scanner in the chain. Thereafter, each slave’s auxiliary port is linked to the host port of the slave that is further from the host in the daisy chain. Each scanner in the daisy chain can be assigned an ID that accompanies any data that it sends.
Usage:
Useful in applications where: • A bar code label might be scanned in both ladder and picket fence directions. • A bar code label may be present on multiple sides of a package. • Bar code labels are presented at different depths.
Serial Cmd:
<Ky aux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status,daisy chain ID>
Options:
4 = Daisy chain
Function:
Before the master scanner times out, it checks its auxiliary port for data. It should be set to wait at least 20 mS for each slave in the daisy chain. If no data is received within the read cycle timeout, the master sends a noread message to the host. Otherwise the complete data is sent. If for example the master scanner is set to timeout in 120 ms, the first slave scanner downstream might be set to 100 ms, the next to 80 ms, and so forth, thus assuring that at least 20 mS elapses between transmissions.a Daisy-chained scanners can send a series of labels by enabling Multilabel and a common multilabel separator. If the master scanner does not receive the expected number of labels, noread messages are appended to the data string to make up the difference between the number of labels enabled in Multilabel and the number of labels read. For example, a master and two slave scanners have Number of Labels set to 3 and Multilabel Separator defined as %. If the master and the first slave scanner do not find labels, but the next slave scanner registers a good read, the transmitted results would be: label data % noread % noread.
a. The above example is based on the best case. Other factors such as baud rate, number of characters in a given symbol, and the number of slaves in the daisy chain can affect timing and may need to be included in your calculations for complete accuracy.
2-10
MS-820 Industrial Bar Code Scanner User’s Manual
Page 35
Chapter 2 Communications Conditions:
The conditions for a daisy chain application are as follows: 1. The master scanner’s trigger must be Serial or External; the slave scanners’ triggers are configured for Serial. 2. All scanners are enabled to Daisy Chain mode.
Host
Slave
Master
4. Each slave scanner in the daisy chain must be set to send its data no less than 20 mS before its preceding scanner. 5. All but the master scanner must have Postamble enabled and set to CR (^M) only. 6. All but the master scanner must have their noread messages disabled. 7. If Multilabel is enabled, Multilabel Separator characters must match in all scanners and Number of Labels must be set to number large enough to include all the labels it may itself read plus the number of labels that it will be expected to relay to the host or the next scanner up the line. 8. Symbology ID enable/disable must be the same in all scanners. 9. All but the master scanner must have their diagnostic warning messages disabled. 10. Daisy Chain ID Status enable/disable and the number of characters in Daisy Chain ID must be the same in all scanners.
MS-820 Industrial Bar Code Scanner User’s Manual
2-11
2–Communications
3. Each scanner’s auxiliary port must be connected to the Host port of its slave scanner.
Page 36
Auxiliary Port
Aux Port Communications Parameters As with the host port parameters, the auxiliary terminal’s settings (baud rate, parity, stop bits, and data bits) must be identical with those of the auxiliary device.Baud
2–Communications
Rate, Aux Port Definition:
The rate at which the scanner and host transfer data back and forth.
Usage:
Can be used to transfer data faster or match an auxiliary device.
Serial Cmd:
<Kyaux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status,daisy chain ID>
Default:
9600
Options:
0 = 600 1 = 1200 2 = 2400
3 = 4800 4 = 9600 5 = 19.2 K
6 = 38.4 K 7 = 57.6 K 8 = 300
Parity, Aux Port Definition:
An error detection routine in which one data bit in each character is set to 1 or 0 so that the total number of 1 bits in the data field is even or odd.
Usage:
Only changed if necessary to match host setting.
Default:
Even
Options:
<Ky aux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status,daisy chain ID>
Serial Cmd:
0 = None
1 = Even
2 = Odd
Data Bits, Aux Port Definition:
Number of bits in each character.
Usage:
Only changed if necessary to match host setting.
Serial Cmd:
<Kyaux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status,daisy chain ID>
Default:
Seven
Options:
0 = Seven
2-12
1 = Eight
MS-820 Industrial Bar Code Scanner User’s Manual
Page 37
Chapter 2 Communications Stop Bits, Aux Port Allows the user to select the last one or two bits in each character to indicate the end of the character.
Usage:
Only changed if necessary to match host setting.
Serial Cmd:
<Kyaux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status,daisy chain ID>
Default:
One
Options:
0 = One
1 = Two
Daisy Chain ID Status Definition:
Each scanner 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.
Usage:
Used in a daisy chain setup in cases where the host needs to know which scanner in a daisy chain setup sent the data.
Serial Cmd:
<Kyaux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status,daisy chain ID>
Default:
Disabled
Options:
0 = Disabled
1 = Enabled
Note: Enable/disable and length must be the same in all scanners.
Daisy Chain ID Definition:
A one or two character prefix which identifies the particular daisy chain scanner from which the data is being sent.
Usage:
Used in a daisy chain setup in cases where the host needs to know which scanner sent the data.
Serial Cmd:
<Kyaux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status,daisy chain ID>
Default:
1/
Options:
Any one or two ASCII characters.
MS-820 Industrial Bar Code Scanner User’s Manual
2-13
2–Communications
Definition:
Page 38
Auxiliary Port
” c 2 -_ © £ ¢ S = = re) af N
2-14 MS-820 Industrial Bar Code Scanner User’s Manual
Page 39
Chapter
Protocol
3 Chapter Contents
Protocols are the rules by which devices pass data back and forth. This section includes the basic options available for data communication, including multidrop and user-defined options and output data formats. Note: The characters NULL <> and , can only be entered through embedded menus, not through ESP or serial commands.
MS-820 Industrial Bar Code Scanner User’s Manual
3-1
3–Protocol
Protocol....................................................................................................3-4 LRC..........................................................................................................3-9 Response Timeout.................................................................................3-10 Intercharacter Delay ..............................................................................3-11 Output Data Format ...............................................................................3-12
Page 40
Protocol by ESP
Click this button to bring up the Protocol menu
3–Protocol
To change a setting, double-click the setting and use your curser to scroll through the options.
Protocol by Serial Command Command Title Host Protocol LRC Response Timeout Intercharacter Delay Preamble Postamble Communications Status Request
3-2 cmds Kf Kc KA KB Kd Ke
Format <Kfprotocol> <Kcstatus> <KAresponse timeout> <KBintercharacter delay> <Kdstatus,preamble> <Kestatus,postamble>
KT?
<KT?>
MS-820 Industrial Bar Code Scanner User’s Manual