The text of a manual · part 5 of 25
MS-3 Laser Scanner User's Manual, pages 41 to 50
Pages 41 to 50 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 41
MS-3 Laser E.book Page 3 Monday, August 30, 2004 11:09 AM
Chapter 3 Communications
Password Protection Note: Password protection options are entered serially and are not available in ESP menus. Usage:
Password Protection when enabled prevents the scanner’s parameters from being modified but does not affect the flow of data from the scanner or its response to read only commands.
Definition:
Can require a password for any serial or menu command change.
Password Entry:
From a terminal screen enter <K733 password>. (Do not put a comma between K733 and the password.)
If you enter the password correctly, you will see the password echoed to the screen and you will then be able to make changes to the scanner’s parameters. Enter the password once and the scanner’s command protection is temporarily unlocked until the scanner is turned off or reset. If a reset occurs then the password will need to be entered again.
Password Status Definition:
If Password Status is set to Disabled, then no parameters are off limits. If Password Status is set to Enabled, then this option cannot be subsequently disabled until the password defined in <K733> is entered. This parameter is non-volatile and will be included in any <Z> or <Zc> parameter save.
Serial Cmd:
<K732,status>
Default:
Disabled
Options:
0 = Disabled
1 = Enabled
New Password Definition:
To change the password from the current password, enter the current password, a comma, and the new password. If successfully entered, the new password will be displayed and the command change protection temporarily removed.
Serial Cmd:
<K733 password,new password> Note: Follow this with a <Z> or <Zc> to save for power-on.
Default:
MICRO
Options:
Any ASCII string up to 8 characters.
MS-3 Laser Scanner User’s Manual
3-3
Page 42
MS-3 Laser E.book Page 4 Monday, August 30, 2004 11:09 AM
RS-232/422 Host Port
RS-232/422 Host Port Host Port Connections Baud Rate (host port) Usage:
Can be used to transfer data faster or to match host port settings.
Definition:
The rate at which the reader and host transfer data back and forth.
Serial Cmd:
<K100,baud rate,parity,stop bits,data bits>
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 = 115.2 K
Parity (host port) Usage:
Only changed if necessary to match host setting.
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.
Serial Cmd:
<K100,baud rate,parity,stop bits,data bits>
Default:
Even
Options:
0 = None
1 = Even
2 = Odd
Stop Bits (host port) Usage:
Only changed if necessary to match host setting.
Definition:
One or two bits added to the end of each character to indicate the end of the character.
Serial Cmd:
<K100,baud rate,parity,stop bits,data bits>
Default:
One
Options:
0 = One
3-4
1 = Two
MS-3 Laser Scanner User’s Manual
Page 43
MS-3 Laser E.book Page 5 Monday, August 30, 2004 11:09 AM
Chapter 3 Communications
Data Bits (host port) Usage:
Only changed if necessary to match host setting.
Definition:
Number of bits in each character.
Serial Cmd:
<K100,baud rate,parity,stop bits,data bits>
Default:
Seven
Options:
0 = Seven
1 = Eight
Host Port Protocol Usage:
In general, the point-to-point protocols will work well in most applications. They require no address and must use RS-232 or RS-422 communications standards.
Definition:
Protocols define the sequence and format in which information is transferred between the scanner and the host, or in the case of Multidrop, between scanners and a concentrator.
Serial Cmd:
<K140,protocol>
Default:
Point-to-Point
Options:
0 = Point-to-Point 1 = Point-to-Point with RTS/CTS 2 = Point-to-Point with XON/XOFF 3 = Point-to-Point with RTS/CTS & XON/XOFF
4 = Polling Mode D 5 = Multidrop 6 = User Defined 7 = User Defined Multidrop
If selecting one of the options from 0 to 4 (Point-to-Point, Point-toPoint with RTS/CTS, Point-to-Point with XON/XOFF, Point-toPoint with RTS/CTS and XON/XOFF, or Polling Mode D), use the <K140,protocol> format. Option 5 through 7 are special cases and discussed later in this section.
Point-to-Point (standard) Usage:
Used only with RS232 or RS422.
Definition:
Standard Point-to-Point requires no address and sends data to the host whenever it is available, without any request or handshake from the host.
Serial Cmd:
<K140,0>
MS-3 Laser Scanner User’s Manual
3-5
Page 44
MS-3 Laser E.book Page 6 Monday, August 30, 2004 11:09 AM
RS-232/422 Host Port
Point-to-Point with RTS/CTS Usage:
A reader initiates a data transfer with an RTS (request-to-send) transmission. The host, when ready, responds with a CTS (clear-to-send) and the data is transmitted. CTS and RTS signals are transmitted over two dedicated wires as defined in the RS-232 standard. Used only with RS232.
Definition:
Point-to-Point with RTS/CTS (request-to-send/clear-to-send) is a simple hardware handshaking protocol that allows a reader to initiate data transfers to the host.
Serial Cmd:
<K140,1>
Point-to-Point with XON/XOFF (Transmitter On/Off) Usage:
If an XOFF has been received from the host, data will not be sent to the host until the host sends an XON. During the XOFF phase, the host is free to carry on other chores and accept data from other devices. Used only with RS232.
Definition:
This option enables the host to send the XON and XOFF command as a single byte transmission command of start (^Q) or stop (^S).
Serial Cmd:
<K140,2>
Point-to-Point with RTS/CTS & XON/XOFF Usage:
Used only with RS232.
Definition:
This option is a combination of Point-to-Point with RTS/CTS and Point-to-Point with XON/XOFF.
Serial Cmd:
<K140,3>
Polling Mode D Usage:
When in Polling Mode D, an address of 1 is automatically displayed on the configuration screen. However, during transmission, a 1C hex poll address (FS) and a 1D hex select address (GS) are substituted for the 1.
Definition:
Like Point-to-Point, Polling Mode D requires a dedicated connection to the host; but unlike Point-to-Point, it requires an address and must wait for a poll from the host before sending data.
Serial Cmd:
<K140,4>
3-6
MS-3 Laser Scanner User’s Manual
Page 45
MS-3 Laser E.book Page 7 Monday, August 30, 2004 11:09 AM
Chapter 3 Communications
Multidrop See also Quick Start Help for Multidrop setup. Usage:
The MS-5000 can be used as a concentrator to a single host port connection. When Multidrop is selected, the protocol characters for RES, REQ, etc. are assigned automatically.
Definition:
Multidrop allows up to 50 devices to be connected to a single RS485 host, with the scanner assigned an unique address (from 01 to 50).
Multidrop Addresses:
Each address has its own separate poll and select address (from 1C to 7F hex).
Options:
01 through 50
Serial Cmd:
If selecting Multidrop fan address must be defined and appended to the command string. Format: <K100,5,address[01 to 50]>
Note: Scanners linking up to a Microscan MS-5000 multidrop concentrator must be configured in standard multidrop protocol.
User Defined Point-to-Point Usage:
Useful for developing custom protocols in polled or unpolled mode.
Definition:
User Defined Point-to-Point allows the user to customize the point-topoint protocol.
Serial Cmd:
<K140,6,RES,address,REQ,EOT,STX,ETX,ACK,NAK,from host>
User Defined Address Definition:
User Defined is considered to be in a polled mode only if an address has been assigned.
Serial Cmd:
<K140,6,RES,address,REQ,EOT,STX,ETX,ACK,NAK,from host>
Default:
No address
Options:
Any ASCII character except a null.
User Defined Example Definition:
Example: ACK/NAK protocol can be configured using User Defined. The scanner will transmit data to the host when an ACK is received. If a NAK or response timeout occurs, the scanner will re-send the data to the host up to 3 more times before aborting. Tip: To use User Defined Point-to-Point, first select Point-to-Point <K100,0> and then User Defined <K100,6>. Example: To select an unpolled ACK/NAK User Defined protocol with LRC disabled, send <K100,0><K100,6,,,,,,,^F,^U><Kc0>. ACK and NAK will be displayed in the menu.
MS-3 Laser Scanner User’s Manual
3-7
Page 46
MS-3 Laser E.book Page 8 Monday, August 30, 2004 11:09 AM
RS-232/422 Host Port Serial Cmd:
<K140,6,RES,address,REQ,EOT,STX,ETX,ACK,NAK,from host>
Default:
No assignment
Options:
Any ASCII character except a null. Control characters can be used to define RES through NAK in serial commands.
From Host Definition:
This option allows the handshaking protocol to be initiated from the host, if not configured in an unpolled mode. Messages sent to the host will include the scanner’s defined protocol. The status of From Host determines if messages sent from the host to the scanner must include the defined protocol. If From Host is disabled, the defined protocol is not included. If From Host is enabled, the defined protocol must be included.
Serial Cmd:
<K140,6,RES,address,REQ,EOT,STX,ETX,ACK,NAK,from host>
Default:
Disabled
Options:
0 = Disabled
3-8
1 = Enabled
MS-3 Laser Scanner User’s Manual
Page 47
MS-3 Laser E.book Page 9 Monday, August 30, 2004 11:09 AM
Chapter 3 Communications
User Defined Multidrop Note: Any ASCII character except a null (00) and a ^A (01) can be assigned as an address. Control characters can be used to define RES through NAK in serial commands. “Communication Protocol Commands” on page A-11. Usage:
This option is used when connecting to a concentrator or other device that does not match standard multidrop protocol. If selecting User Defined Multidrop (7), complete the format by either choosing new parameters or place commas where unchanged data fields occur.
Definition:
User Defined Multidrop allows the user to customize the polling protocol.
Serial Cmd:
<K140,7,RES,address,REQ,EOT,STX,ETX,ACK,NAK> For User Defined Multidrop, first select Multidrop <K140,5>, then User Defined Multidrop <K140,7...>.
Address:
Any single character (02 hex to 7E hex) in the ASCII table can be assigned as the address character. The character chosen is used as the poll character and the subsequent ASCII character becomes the select character. For example, if a ^B (02 hex) is selected as the address, ^C (03 hex) becomes the select address that the host will use in sending host select commands.
Note: Definitions of commands in User Defined and User Defined Multidrop must be duplicated in host applications to enable poll and select sequences to execute correctly during transmission. Note: Typically, parameters in User Defined Multidrop are defined by first enabling Multidrop, then enabling User Defined Multidrop. This pre-loads multidrop characters into the parameters. Then changes are made to individual characters to match the host or other requirements.
MS-3 Laser Scanner User’s Manual
3-9
Page 48
MS-3 Laser E.book Page 10 Monday, August 30, 2004 11:09 AM
RS-232/422 Host Port
Host RS-232/422 Status Used only in Point-to-Point protocol, and not with RTS/CTS. Usage:
Only changed if necessary to match host setting.
Definition:
Enables RS422. When RS422 is enabled, RS232 is disabled.
Serial Cmd:
<K102,status>
Default:
Disabled
Options:
0 = Disabled
1 = Enabled
Whenever RS422 is disabled, RS232 is enabled in the background. However, when Multidrop is enabled, the functioning protocol is RS485 regardless of the displayed status of RS422. Before enabling RS422, first double-check that Multidrop is not enabled.
3-10
MS-3 Laser Scanner User’s Manual
Page 49
MS-3 Laser E.book Page 11 Monday, August 30, 2004 11:09 AM
Chapter 3 Communications
RS-232 Auxiliary Port Note: The aux port cannot be used when the host port is set to RS422 or Multidrop. 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. Usage:
These commands set the communication parameters with the auxiliary port which can be used to configure menus, send data to the host, display data transmissions originating from the host of the scanner, and relay data from other scanners set in tandem (daisy chained). If the scanner’s host port needs to be dedicated to the host, but configuration must be done on the fly, the auxiliary port can be set to accept configuration changes by Command Processing (page 3-17).
Definition:
An auxiliary port connects the scanner to a remote display or to other scanners that can display or transfer data.
Aux Port Connections 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 Rate, Aux Port Usage:
Can be used to transfer data faster or match an auxiliary device.
Definition:
The rate at which the scanner and host transfer data back and forth.
Serial Cmd:
<K101,aux 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 = 115.2 K
MS-3 Laser Scanner User’s Manual
3-11
Page 50
MS-3 Laser E.book Page 12 Monday, August 30, 2004 11:09 AM
RS-232 Auxiliary Port
Parity, Aux Port Usage:
Only changed if necessary to match host setting.
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.
Default:
Even
Options:
<K101,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
Stop Bits, Aux Port Usage:
Only changed if necessary to match host setting.
Definition:
Allows the user to select the last one or two bits in each character to indicate the end of the character.
Serial Cmd:
<K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status,daisy chain ID>
Default:
One
Options:
0 = One
1 = Two
Data Bits, Aux Port Usage:
Only changed if necessary to match host setting.
Definition:
Number of bits in each character.
Serial Cmd:
<K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status,daisy chain ID>
Default:
Seven
Options:
0 = Seven
3-12
1 = Eight
MS-3 Laser Scanner User’s Manual