The text of a manual · part 6 of 31
MS-890 Industrial Automation Scanner User's Manual, pages 51 to 60
Pages 51 to 60 of 308
The original document is the PDF (3.0 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-890
Page 51
Communications
Poll Address Serial Cmd: Default: Options:
<K140,protocol,address> 1 1 to 50 1 = Poll address 0x1C, Select address 0x1D 2 = Poll address 0x1E, Select address 0x1F ... 50 = Poll address 0x7E, Select address 0x7F
MS-890 Industrial Automation Scanner User’s Manual
3-7
Page 52
ACK / NAK Options
ACK / NAK Options Definition:
Serial Cmd:
These parameters take effect for ACK/NAK <K140,4> on the main RS-232 or RS-422 ports (not on the Auxiliary Port), and are completely independent of the Polling Mode Options <K148>. The scanner always follows the protocol in both directions (to and from the host). There is no option to disable it from either direction. <K147,RES,REQ,STX,ETX,ACK,NAK>
RES-NAK Defaults RES: (Reset) REQ: (Request) STX: (Start of Text) ETX: (End of Text) ACK: (Acknowledge) NAK: (Negative Acknowledge)
0x00 (disabled) 0x00 (disabled) 0x00 (disabled) 0x00 (disabled) 0x06 0x15
The following are general outlines of the ACK/NAK protocol. Items that are framed by brackets ( [ ] ) can either be disabled or enabled. LRC does not include STX, but it does include preamble, postamble, and ETX.
Symbol Data Output TX to host: [STX] [preamble] SYMBOL DATA [postamble] [ETX] [LRC] Response from host: ACK/NAK. Sent when LRC, ETX, postamble, or timeout (waiting for more data) are detected (if REQ is disabled) depending on what is enabled.
Commands from Host to Scanner TX to Scanner: [STX] <command> [ETX] [LRC] Response from Scanner: ACK/NAK. Sent when LRC, ETX, or command-ending angle bracket ‘>’ are received, depending on what is enabled.
Command Response from Scanner to Host TX to host: [STX] [preamble] COMMAND RESPONSE DATA [postamble] [ETX] [LRC] Response from host: ACK/NAK. Sent when LRC, ETX, postamble, command-ending angle bracket ‘>’, or timeout (waiting for more data) are detected, depending on what is enabled. As with Polling Mode <K140,5>, the scanner can optionally perform the REQ and RES event sequences in ACK/NAK mode. If the sender does not receive an ACK or NAK, it will send REQ to request such a response (if enabled). When the sender receives an ACK, too many NAKs, or times out (if already enabled), it will send a RES (if enabled) to terminate the transaction.
3-8
MS-890 Industrial Automation Scanner User’s Manual
Page 53
Communications
Polling Mode Options Definition:
Serial Cmd:
These parameters only take effect for Polling Mode <K140,5> on the main RS-232 or RS-422 ports (not on the Auxiliary Port), and are completely independent of the ACK/NAK Options <K147>. The values of protocol characters can be changed, but the protocol events cannot be disabled. The polling mode address is configured in the <K140> command (see Poll Address on page 3-7). <K148,RES,REQ,STX,ETX,ACK,NAK>
RES-NAK Defaults RES: (Reset) REQ: (Request) STX: (Start of Text) ETX: (End of Text) ACK: (Acknowledge) NAK: (Negative Acknowledge)
0x04 (disabled) 0x05 (disabled) 0x02 (disabled) 0x03 (disabled) 0x06 0x15
MS-890 Industrial Automation Scanner User’s Manual
3-9
Page 54
Auxiliary Port Protocol
Auxiliary Port Protocol Note: The Aux Port cannot be used when the host port is set to RS-422 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.
Definition:
An auxiliary port connects the scanner to a remote display or to other scanners that can display or transfer data. As with the host port parameters, the auxiliary terminal’s settings (baud rate, parity, stop bits, and data bits) must be identical to those of the auxiliary device.
Aux Port Mode Note: The Aux Port interacts only with the host port via the 25-pin port except when in Daisy Chain mode. When in Daisy Chain mode, the Aux Port will also interact with the configuration port (9-pin port) or the wiring box network ports. Definition:
Determines the flow of data between the auxiliary port device(s), the scanner, and the host.
Serial Cmd: <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status, daisy chain ID> Default:
Disabled
Options:
0 = Disabled 1 = Transparent 2 = Half Duplex 3 = Full Duplex 4 = Daisy Chain 5 = Command Processing
3-10
MS-890 Industrial Automation Scanner User’s Manual
Page 55
Communications
Transparent (Aux Port Mode) Usage:
Often used in conjunction with handheld scanners. Employs an auxiliary readout to detect mis-applied symbols.
Definition:
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. Data Initiated from the Auxiliary Port Auxiliary port data is passed through to the host whenever a return key is pressed at the auxiliary Aux. Host port or symbol data is sent. Port Whenever Aux Port data is sent with symbol data, the Aux Port data will appear between the preamble and the symbol data. Scanner Auxiliary port data to the host is always sent with a preamble and a postamble. 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. 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. Data Initiated from the Host All host data is echoed to the auxiliary port in unpolled and polled mode.
Host
Aux. Port
Scanner
Host
Aux. Port
Scanner
Serial Cmd: <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status, daisy chain ID> 1 = Transparent
MS-890 Industrial Automation Scanner User’s Manual
3-11
Page 56
Auxiliary Port Protocol
Half Duplex (Aux Port Mode) Usage:
Used to display symbol data on an auxiliary screen close to the scanner.
Definition:
In Half Duplex mode all auxiliary port data and symbol data is sent directly to the host. Symbol 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 Auxiliary port data to the host is ignored if the scanner is in a polled mode. 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. <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. Data transmission conforms with all parameters specified in the configuration menu (e.g., Preamble, Postamble, End of Read Cycle).
Host
Aux. Port
Scanner
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
Serial Cmd: <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status, daisy chain ID> 2 = Half Duplex
3-12
MS-890 Industrial Automation Scanner User’s Manual
Page 57
Communications
Full Duplex (Aux Port Mode) Usage:
Used when communication to and from the auxiliary port is required.
Definition:
In Full Duplex mode all auxiliary port data and symbol data is sent directly to the host. Symbol data is not displayed on the auxiliary port screen. Data Initiated from the Auxiliary Port Auxiliary port data to the host is ignored if the scanner is in a polled mode. 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. <D> is the only command that is accepted by the scanner from the auxiliary port. All other commands are passed through to the host.
Host
Aux. Port
Scanner
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
Serial Cmd: <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status, daisy chain ID> 3 = Full duplex
MS-890 Industrial Automation Scanner User’s Manual
3-13
Page 58
Auxiliary Port Protocol
Daisy Chain (Aux Port Mode) Note: See also Daisy Chain Autoconfigure on page 3-19. Usage:
Used in applications where: A symbol might be scanned in both ladder and picket fence directions. A symbol may be present on multiple sides of a package. Symbols are presented at different depths.
Definition:
In a daisy chain application, scanners are connected in series 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 secondary scanner in the chain. Thereafter, each secondary’s auxiliary port is linked to the host port of the secondary 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.
Serial Cmd: <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status, daisy chain ID> 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 secondary in the daisy chain. (See Read Cycle Timeout on page 4-16.) If no data is received within the read cycle timeout, the master sends a No Read 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 secondary 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 symbols by enabling Multisymbol and a common multisymbol separator. If the master scanner does not receive the expected number of symbols, No Read messages are appended to the data string to make up the difference between the number of symbols enabled in Multisymbol and the number of symbols read. For example, a master and two secondary scanners have Number of Symbols set to 3 and Multisymbol Separator defined as %. If the master and the first secondary scanner do not find symbols, but the next secondary scanner registers a good read, the transmitted results would be: symbol data % No Read % No Read a. The above example is based on the best case. Other factors such as baud rate, dynamic focus timing, number of characters in a given symbol, and the number of secondaries in the daisy chain can affect timing and may need to be included in your calculations for complete accuracy.
3-14
MS-890 Industrial Automation Scanner User’s Manual
Page 59
Communications
Daisy Chain (Aux Port Mode) (cont.) Conditions:
The conditions for a daisy chain application are as follows: 1. The master scanner’s trigger must be Serial or External; the secondary scanners’ triggers are configured for Serial. 2. All scanners are enabled to Daisy Chain mode. 3. Each scanner’s auxiliary port must be connected to the Host port of its secondary scanner. 4. Each secondary 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 No Read messages disabled. 7. If Multisymbol is enabled, Multisymbol Separator characters must match in all scanners and Number of Symbols must be set to number large enough to include all the symbols it may itself read plus the number of symbols 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-890 Industrial Automation Scanner User’s Manual
3-15
Page 60
Auxiliary Port Protocol
Command Processing (Aux Port Mode) Usage:
Allows user to send configuration from the Host port or the Aux Port.
Definition:
When enabled, Command Processing allows commands to be entered via the Aux Port. The following rules apply: • Symbol data, including the serial trigger if used, will be transmitted to the last port from which a command was sent. • If a reset occurs, all data will be transmitted to the host port.
Serial Cmd: <K101,aux port mode,baud rate,parity,stop bits,data bits,daisy chain ID status, daisy chain ID> Options:
3-16
5 = Command Processing
MS-890 Industrial Automation Scanner User’s Manual