The text of a manual · part 4 of 14
MS-7100/7180 Industrial Scanner User's Manual, pages 31 to 40
Pages 31 to 40 of 138
The original document is the PDF (1.9 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-7100 and Microscan MS-7180
Page 31
Chapter
2
Menu Configuration Entering the Menu Configuration Program .......................................... 2-2 Using the Menu Configuration Program .............................................. 2-2 Saving Menu Changes ........................................................................ 2-4 Loss of Communications ..................................................................... 2-4 Defining Special Characters ............................................................... 2-4 Communications Menu ........................................................................ 2-5 Operations Menu ............................................................................... 2-12 Code Types Menu.............................................................................. 2-22 User Outputs Menu............................................................................ 2-31 Raster Setup Menu ............................................................................ 2-37
This chapter describes how to configure the MS-7100/7180 scanner with on screen menu commands from a host or auxiliary terminal. All keystrokes are in bold typeface. Default parameters in the menu structures are also in bold typeface. All of these parameters, with the exception of Full Screens, can also be changed by serial commands (see Chapter 3, “Serial Configuration”).
Communicating with an ASCII Terminal The scanner communicates in full duplex, terminal mode with no handshake. It also recognizes carriage returns and line feeds. The host or ASCII terminal must match the following default settings before any communication can take place: 9600 Baud Rate, Seven Data Bits, Even Parity, and One Stop Bit.
MS-7100/7180 Industrial Scanner User’s Manual
2-1
2–Menu Config.
Chapter Contents
Page 32
Chapter 2
Menu Configuration
Entering the Menu Configuration Program To see the Main menu (figure 2-1) from an ASCII terminal that is connected to the scanner, enter the operational command <D> (enter the < > brackets as well as the upper case D).1
2–Menu Config.
XX
Figure 2-1 Configuration Program - Main Menu2
Using the Menu Configuration Program The bottom line on the screen is called the command line. The command line identifies your place in the menu program, shows current status and allows you to review and change options. Use the designated keys3 to scroll to and select the parameter you wish to change; press SP (space bar key) to scroll ahead, B to scroll back, CR (carriage return key) to select, and M to return to the previous higher level menu. To return to the Main menu at any time, press ESC (escape key) and M.
1. Command start character by default is a left angle bracket, <. It may be redefined by menu or serial command. However, the end character, a right angle bracket > cannot be changed. 2. Item 5, Raster Setup, applies only to the MS-7180. 3. The menu navigational keys are displayed in each menu.
2-2
MS-7100/7180 Industrial Scanner User’s Manual
Page 33
For example, to enable LRC (see figure 2-2 on page 2-5 and “Longitudinal Redundancy Check” on page 2-9) use the following command line path: From the Main menu, press CR at the Communications prompt (this is the first prompt displayed in the Menu Configuration Program) to access the Communications menu.
Communications, Host Protocol Communications, > Host Port Communications, > Aux Port
Since LRC is a subtopic of Host Protocol, press CR to access the Host Protocol parameters.
Host Protocol, > Protocol Host Protocol, > Preamble = ^M Host Protocol, > Preamble = Enabled Host Protocol, >Postamble = ^M^J Host Protocol, >Postamble = Disabled Host Protocol, >LRC Host Protocol, >Response Timeout Host Protocol, > Intercharacter Delay
Protocol is the first parameter under Host Protocol. Press SP until you reach LRC, then press CR.
Host Protocol, > LRC = Disabled Host Protocol, > LRC = Enabled
To enable LRC, press CR, SP, and CR.
To view LRCs new status in the menu, press M to refresh the screen. To return to the Main menu, press M again. You can make additional changes within another menu before exiting the program. Simply follow the same method of scrolling to and selecting each main topic, then its subtopics, until you reach the parameter you want to change. Remember, to return to the Main menu at any time, press ESC (Escape key) and M. Some parameters are user defined, in which case they prompt you with an arrow for data, such as:
At the prompt, redefine the parameter within the allowable range, and press CR to enable.
MS-7100/7180 Industrial Scanner User’s Manual
2-3
2–Menu Config.
Main, > Communications Main, > Operations Main, > Code Types Main, > User Outputs
Page 34
Chapter 2
Menu Configuration
Saving Menu Changes Press ESC (Escape key) to see the following on the command line: Press M to return to the Main menu, or press E to exit the Menu Configuration program. If E is pressed, the following question will appear:
2–Menu Config.
Press N to exit without saving changes, or press Y to retain the current settings for power up. If Y is selected, a second beep will indicate the save has been carried out. Note: Choosing Y will save only current changes that were made in the Configuration menus and will not affect Calibration settings.
Loss of Communications Defaulting might be necessary if communications between the scanner and another device are interrupted or if using incompatible equipment (for example, a terminal is set to communicate at 9600 baud, but the scanner is configured at 38.4K baud). Communication can also be lost if an address has been assigned to the scanner. To reset parameters to default values, see Appendix E, “Defaulting the Scanner,” on page A-10.
Defining Special Characters To define any control character from the ASCII table: Press SP once, then enter the control character by holding down the control key and simultaneously pressing the desired character. For example to define a line feed, press SP, then Control and J simultaneously. It is displayed as ^J on the command line and as <LF> in the menu when the screen is refreshed. To define CR as a character: Press SP, then CR. It is displayed as ^M on the command line and as <CR> in the menu when the screen is refreshed. To define a space as a character: Press SP twice. It is displayed as a blank space in the menu when the screen is refreshed. While it appears that nothing has been assigned, the hex value 20 will be sent during data transmission. To select NUL as the character: Press SP, then a 0 (zero). It is displayed as <NUL> in the menu when the screen is refreshed.
2-4
MS-7100/7180 Industrial Scanner User’s Manual
Page 35
Communications Menu
Communications Menu The Communications menu (see figure 2-2) allows you to set the communication protocols between the scanner and the host. Communications
– Bold text represents default settings.
Host Protocol Protocol
Preamble
Postamble
– ^M
Preamble – Disabled
– ^M ^J
– Disabled
– Point-to-Point
– User
– Enabled
– User
– Enabled w/RTS/CTS Definable (ASCII char.) – Point-to-Point w/XON/XOFF – Point-to-Point w/RTS/CTS & XON/XOFF – Polling Mode D – Multidrop – Address = 1 – User Definable – User Defined RES – Req Address = ^A – EOT – User Defined Multidrop – –
– –
RES Address = ^A
LRC
– Req – EOT
2–Menu Config.
Postamble
– Point-to-Point
Definable (ASCII char.)
– STX – ETX
– ACK – NAK
– STX – ETX
– ACK – NAK
Response Timeout
Interchar Delay
– Disabled
– 12 ms
– 0
– Enabled
– User Definable
– User Definable (0 to 255)
(0 to 65,000)
Host Port Baud Rate
Stop Bits
Data Bits
– Even
– One
– Seven
– Disabled
– 19.2K – 2400
– Odd
– Two
– Eight
– Enabled
– 38.4K – 4800
– None
– 9600
– 1200
Parity
RS-422
– 600
Aux Port Aux Mode
Baud Rate
Stop Bits
Data Bits
– Disabled
– 9600
– 1200
Parity – Even
– One
– Seven
– Transparent
– 19.2K – 2400
– Odd
– Two
– Eight
– Half Duplex
– 38.4K – 4800
– None
– Full Duplex
– 600
– Daisy Chain
Figure 2-2 Communications Menu Structure MS-7100/7180 Industrial Scanner User’s Manual
2-5
Page 36
Chapter 2
Menu Configuration
2–Menu Config.
This menu can be regarded as three menus in one: a Host Protocol menu, a Host Port communications menu, and an Aux Port communications menu. To help visualize the menu organizational structure, see figure 2-2 on page 2-5. Note that the parameters (baud rate, parity, etc.) relate to the Host Port and Aux Port. Note: Changes in Communications parameters or assigning an address to the scanner can cause loss of communications with the configuration terminal when you exit the menu program (whether or not changes are saved for power-on).
Host Protocol Parameters Protocol Default: Point-to-Point Options: Point-to-Point, Point-to-Point with RTS/CTS, Point-to-Point with XON/XOFF, Point-to-Point with RTS/CTS and XON/XOFF, Polling Mode D, Multidrop, User Defined, and User Defined Multidrop. Protocols define the sequence and format in which information is transferred between devices. Generally there are two basic protocol modes: unpolled and polled. In unpolled mode (all of the Point-to-Point protocols), a device sends information without any request from the host. In polled mode (Multidrop, Polling Mode D, and User Defined Multidrop), a device has an address and waits for a request from the host before sending data.
2-6
Selecting:
Has this effect:
Point-to-Point
Has no address and sends data to the host (RS-232) whenever it is available and without any request or handshake from the host.
Point-to-Point with RTS/CTS (Request-to-Send/ Clear-to-Send)
Used only with RS-232. This is a simple handshaking protocol that allows a device to initiate data transfers to the host with an RTS (request-to-send) transmission. The host, when ready, responds with a CTS (clear-to-send) and the data is transmitted. RTS/CTS signals are transmitted over two dedicated wires (pins 4 and 5) as defined in the RS-232 standard.
Point-to-Point with XON/XOFF (Transmitter On/Off)
Used with RS-232 or RS-422. The host can send a single byte transmission command of start (XON) or stop (XOFF). 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.
MS-7100/7180 Industrial Scanner User’s Manual
Page 37
Communications Menu Selecting:
Has this effect:
Point-to-Point with Used only with RS-232. It is a combination of Point-toRTS/CTS and Point with RTS/CTS and Point-to-Point with XON/XOFF. XON/XOFF Like Point-to-Point, Polling Mode D requires a separate 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. 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.
Multidropa
Similar to Polling Mode D except that a unique poll address and select address are required for each multidrop device, and only one host port connection is needed for up to 50 devices. (For Multidrop poll and select characters, see Table A-3, “Multidrop Address Characters,” on page A-24.) Requires a concentrator or controller using RS-485 communications. When Multidrop is selected, the protocol characters for RES, REQ, etc. are assigned automatically. (See Table A-3, “Multidrop Address Characters,” on page A-24 for poll and select sequences.)
Note: Scanners intended to link up to a Microscan MS-5000 multidrop concentrator can only be configured in standard Multidrop protocol.
User Defined Note: A specific ASCII character must not be assigned more than once.
Used only with RS-232 or RS-422. ASCII characters can be assigned as an address and as protocol commands (RES, REQ, EOT, STX, ETX, ACK, and NAK). User Defined is necessary when a new protocol must be defined to match a specific host protocol. When User Defined is selected, the displayed protocol commands match those of the previously selected protocol. User Defined is considered to be in a polled mode only if an address has been assigned. The address can be any ASCII character from the ASCII in appendix B, except NUL. b
MS-7100/7180 Industrial Scanner User’s Manual
2-7
2–Menu Config.
Polling Mode D
Page 38
Chapter 2
Menu Configuration Selecting:
Has this effect:
User Defined Multidrop
Used when connecting to a concentrator or other device that does not match standard Multidrop protocol. Any single character (01 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 ^A (01 hex) is selected as the address, ^B (02 hex) becomes the select address that the host will use in sending host select commands. (See Table A-3, “Multidrop Address Characters,” on page A-24.)
2–Menu Config.
Note: A specific ASCII character must not be assigned more than once.
a. Once the scanner is configured for Multidrop, a terminal connected to the auxiliary RS-232 pins or a default procedure must be used to access the configuration menus again (although serial commands will continue to function). b. For example a simple ACK/NAK protocol can be developed by first selecting Point-to-Point, then User Defined, and then assigning characters to ACK and NAK commands. First scroll to the following command: HOST PROTOCOL --> PROTOCOL --> USER DEFINED--> ACK = --> Enter a ^F by holding down the Control key while pressing the F key, and then press CR to see the following: HOST PROTOCOL --> PROTOCOL --> USER DEFINED --> ACK = ^F The mnemonics ACK and NAK replace the default NULs in the menu.
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.
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. You then change individual characters to match the host or other requirements.
Preamble Default:
^M (and a null). Corresponds to <CR><NUL> (carriage return/null) displayed in the menu. Options: Any ASCII character, including control characters. Control characters entered in the command line are displayed in the menu as mnemonic characters. (See “Defining Special Characters” on page 2-4 and Table A-3, “Multidrop Address Characters,” on page A-24.) Allows you to define a one or two character data string that can be added to the front of the decoded data. For example, defining a carriage return and line feed would cause each decoded message to be displayed on its own line. If User Defined, Polling Mode D, or Multidrop is enabled, the Preamble and Postamble characters are transmitted within the STX and ETX data block. 2-8
MS-7100/7180 Industrial Scanner User’s Manual
Page 39
Communications Menu
Preamble (enable/disable) Default: Disabled Options: Disabled, Enabled (within any protocol) Allows you to enable or disable the preamble character(s).
Postamble Default:
Postamble (enable/disable) Default: Disabled Options: Disabled, Enabled (within any protocol) Allows you to enable or disable the Postamble character(s).
Longitudinal Redundancy Check Default: Disabled in unpolled mode; Enabled in polled mode Options: Disabled, Enabled An error-checking routine that verifies the accuracy of transmissions. It is the exclusive OR of all characters following the SOM (start of message) up to and including the EOM (end of message).
Response Timeout Default: 12 ms. Options: 0 to 65,000 ms. A zero (0) setting causes an indefinite wait. Allows you to set the time the scanner will wait before timing out if ACK, NAK, and ETX are enabled, and a host response is expected.
MS-7100/7180 Industrial Scanner User’s Manual
2-9
2–Menu Config.
^M^J. Corresponds to <CR><LF> (carriage return/line feed) displayed in the menu. Options:Any ASCII character, including control characters. Control characters entered in the command line are displayed in the menu as mnemonic characters. (See “Defining Special Characters” on page 2-4 and Table A-3, “Multidrop Address Characters,” on page A-24.) Allows you to define a one or two character data string that can be added after the decoded message. If User Defined, Polling Mode D, or Multidrop is enabled, the Preamble and Postamble characters are transmitted within the STX and ETX data block.
Page 40
Chapter 2
Menu Configuration
Intercharacter Delay Default: 0 ms Options: 0 to 255 ms. A zero (0) setting causes no delay between characters. Allows you to set the time interval between individual characters transmitted from the scanner to the host. A high setting will significantly slow down communications. For example, a 200 setting will result in a 1/5 second delay between each character that is transmitted.
2–Menu Config.
Host Port Parameters Allows you to set parameters for host port communications.
Baud Rate Default: 9600 Options: 600, 1200, 2400, 4800, 9600, 19.2K, 38.4K Allows you to set the number of bits transmitted per second. Note: Due to timing considerations, polled modes require 2400 baud or faster.
Parity Default: Even Options: Even, Odd, None Allows you to select 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.
Stop Bits Default: One Options: One, Two Allows you to select the last one or two bits in each character to indicate the end of the character.
Data Bits Default: Seven Options: Seven, Eight Allows you to establish the total number of bits in each character.
2-10
MS-7100/7180 Industrial Scanner User’s Manual