The text of a manual · part 5 of 19
Series 4000 Raster Scanner User's Manual: Chapter 3, pages 34 to 43
Pages 34 to 43 of 137, from Series 4000 Raster Scanner User's Manual
The original document is the PDF (5.4 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-4280
Page 34
Configuration
Chapter Contents Menu Configuration 0.0.0... cccccccsecssscscsscececessssssseeeeeeeseeseeeeesensesaees 3-2 Communications M@nu.............ceccccceeccceeeceeeeeeeeeesnaneeeeeeeeeteeees 3-3 Ope|rationS MENU .......ecccecccccccecesssesceececensesseeceeseseneceeeseeeees 3-17 Code TypeS M@nu..........ccccccseeeeccceeeccesseessneacaeceeseceseneeerseeeess 3-28 User Outputs Me@nu ou... cccccceccecccceecsesseeceeeesenseeeeteesenaaaees 3-37 Raster SQtup Menu... cceccccsscccccceceeeceessseneeeeseeeneneeanees 3-44 Saving Menu Changes ............cceeccecececeeeseeneeeeeseenneeeeeeseseeenes 3-47 Serial CONFIQUPATION 00.2... ccc ccc cece ceescaeeeeeeaeeeceseesenneeereenaeeetees 3-48 COMMUNICATIONS .... oe. cec ccc cccccceesesseeeeceecesseseesescesaeeesenseeseeaeees 3-50 OPELAtiONS 2... cc cccccccecececeseecessseseeeeesenasueaseneenteeeeseeteres 3-54 COde TYD@S ......ccecccccceccccsscseeececcceccssnueeeseeccscueeeeensnansaeeeeeenss 3-57 USer QUDUtS oo... cee ccecceecessseeceeenscecesseeeeseeeeaeeterseeeeseaeees 3-59 Raster SQtup oc ccccecccccccccesseesescceesesesnenaceeseeseneeeeeeereeeeea 3-61 Profile Card Configuration ..............ccccecccccecccessessseeceesessneeeeeeeeeteees 3-63 Mode DeSCTIDTIONS...............ccesccesesessssssstceceeeaeeeesensesereeteetenes 3-64 Mode and Data Switch SettingS ..............ceceeeeeseetteeeeeees 3-67
The three sections in this chapter describe different methods to configure the MS-4280 raster scanner: screen menus, serial commands, and profile card.
All five configuration areas (Communications, Operations, Code Types, User Outputs, and Raster Setup) can be defined with either screen menus or serial commands. Configuration with the profile card, while applicable to most commands, does not allow for Raster Setup configuration.
NOTE: “Operations,” as used in this chapter, applies to configuration parameters and not to the serial operational commands described in chapter 4, “Operational Commands.”
Page 35
3
Chapter 3 Configuration
Menu Configuration
Entering the Menu Configuration Program!
To see the Main menu (figure 3-1), from an ASCII terminal that is connected to the scanner, send the operational command <D> (enter the brackets < > as well as the upper case D).?
a MICROSCAN SYSTEMS, INC. >
CONFIGURATION PROGRAM MAIN MEN 35-214001-XxX TOPICS DESCRIPTIONS
1> COMMUNICATIONS HOST PROTOCOL, HOST PORT, AND AUX PORT. 2) OPERATIONS TRIGGERING, TIMEOUTS, ETC. 3) CODE TYPES CODE SELECTIONS, CODE LENGTHS, ETC. 4) USER OUTPUTS BEEPER, DATA LINE POLARITY, ETC. 5> RASTER SETUP RASTER TOP ANGLE, BOTTOM ANGLE AND SPEED.
ESC = MAIN MENU OR EXIT N = NEXT ITEM
M = PREVIOUS MENU SP = NEXT ITEM
B = PREVIOUS ITEM CR = THIS ITEM
TRIN COMMUNICATIONS /
Figure 3-1 Configuration Program - Main Menu if the menu does not appear, see appendix C, “Troubleshooting.”
NOTE: The user may return to the Main menu at any time by pressing ESC (Escape key) and M.
The bottom line on the screen is called the command line. The command line allows the user to scroll through various menu options, which are displayed on the command line as prompts.
1. See “Using a Dumb Terminal” in chapter 2, “Setup and Installation.”
2. Command start character, by default a left angle bracket, <, may be redefined by menu or serial command. However, the end character, a right angle bracket, >, cannot be changed.
3-2 Series 4000 Raster Scanner User's Manual
Page 36
Menu Configuration
Communications Menu
At the following prompt on the command line:
MAIN-> COMMUNICATIONS
Press CR to see the Communications menu (shown in figure 3-2).
(_ CURRENT SETTINGS FOR COMMUNICATIONS _\
HOST PROTOCOL I! PARAMETER HOST PORT | AUX PORT |
PROTOCOL = POINT TO POINT Il BAUD RATE | 9600 | 9600 PREAMBLE = DISABLED = <CR ><NUL> || PARITY | EVEN | EVEN POSTAMBLE = DISABLED = <CR ><LF > |{ STOP BITS | ONE | ONE ADDRESS = 1 || DATA BITS | SEVEN | SEVEN RES = <NUL> If RS-422 | DISABLED | DISABLED REQ = <NUL> {| AUX MODE | N/A | DISABLED EOT = <NUL> Il | | STX = <NUL> II | 1 ETX = <NUL> Hl | | ACK = <NUL> i | | NAK = <NUL> a | | LRC = DISABLED VI | | RESPONSE TIMEOUT = 12 ms a I { INTERCHAR DELAY = 0 ms Il H I
ESC = MAIN MENU OR EXIT N = NEXT ITEM
M = PREVIOUS MENU SP = NEXT ITEM
B = PREVIOUS ITEM CR = THIS ITEM
\ coretn ICATIONS--> HOST PROTOCOLAJ /
Figure 3-2 Communications Menu
The communications menu allows the user to set the communication protocols between the scanner and the host.
This particular menu can be regarded as two menus in one: a Host Protocol menu and a Host Port communications menu (Aux Port is not used). To help visualize the menu organizational structure, see figure 3-3. Note that the parameters (baud rate, parity, etc.) relate to Host Port.
NOTE: Host Port settings must match your system; otherwise you risk losing communications with the configuration terminal when you exit the menu program (whether or not changes are saved for power on).
| NOTE: Aux Port parameters do not apply to series 4000 scanners. |
Series 4000 Raster Scanner User’s Manual 3-3
Page 37
Chapter 3 Configuration
Communications || Host . , ) Protocol! | protocol Preamble Preamble Postamble Postamble | Point-to-Point L am, _ - «_ | Disabled AMAJ Disabled . Doint-to-Point User Enabled User Enabled WIRTS CTS Definable Definable - Point-to-Point W/XON XOFF Point-to-Point W/RTS & XON | Polling Mode D NOTE Bold text represents + Multidrop default settings. | Address = 1 “ User Definable r- User Defined - RES | REQ I STX i ACK ~ Address = 4A EOT ETX NAK, User Defined Multidrop - RES | REQ r STX t ACK, Address = 4A EOT ETX NAK [ | | LRC Response Timeout intercharacter Delay + Disabled t 12 t 0 Enabled User Definable User Definable |__| Host Port | | | | Baud Rate Parity Stop Bits Data Bits RS-422 9600 1200 Even One Seven | Disabled 19.2K + 2400 Odd Two Eight Enabled 38.4 K + 4800 None 600
Figure 3-3 Communications Menu Structure
3-4 Series 4000 Raster Scanner User's Manual
Page 38
Menu Configuration
Host Protocol Parameters
The following command line is the first to appear (at the bottom of the screen) in the Communications menu:
COMMUNICATIONS, > HOST PROTOCOL
Press CR to see the first Host Protocol item,
HOST PROTOCOL ~ - > PROTOCOL
Press CR to display the following on the command line:
HOST PROTOCOL -> PROTOCOL -> POINT-TO-POINT = ENABLED
Protocol
Defauit setting for Protocol is Point-to-Point. Protocol options are:
e Point-to-Point
¢ Point-to-Point with RTS and CTS e Point-to-Point with XON/XOFF e Point-to-Point with RTS/CTS and XON/KOFF ¢ Polling Mode D e Multidrop e User Defined e User Defined Multidrop
Protocols are sets of rules which 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 being asked for by 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.
Press SP to scroll through the Protocol options.
Series 4000 Raster Scanner User’s Manual 3-5
Page 39
Chapter 3 Configuration
To select a protocol (with the exception of User Defined and User Defined Multidrop), press SP to scroll to the desired protocol and press CR. Press M twice to refresh the screen.
NOTE: User Defined and User Defined Multidrop have more options available to them. Selection instructions for these protocols are provided under each topic.
With the screen refreshed, you may continue exploring protocol by moving on to User Defined or User Defined Multidrop (see topics in this section), or you may advance to the next Host Protocol item, Preamble, by pressing CR and SP. (Go to “Preamble” instructions following “Protocol” section.)
Point-to-Point
Has no address and sends data to the host whenever it is available, 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 and 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. This selection enables the host to 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.
Point-to-Point with RTS/CTS & XON/XOFF
Used only with RS-232. It is a combination of Point-to-Point with RTS/CTS and Point-to-Point with XON/XOFF.
Polling Mode D
Like Point-to-Point, Polling Mode D requires a separate channel to the host but unlike Point-to-Point, it requires the device to have an address and to wait for a poll from the host before sending data.
3-6 Series 4000 Raster Scanner User’s Manual
Page 40
Menu Configuration
When in Polling Mode D, an address 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.
Multidrop
The Multidrop protocol always uses RS-485. It allows a host to communicate via a multidrop concentrator with several peripheral devices. Multidrop is similar to Polling Mode D except that a unique poll address and select address are required for each device, and only one host port connection is needed for up to 50 devices.
The series 5000 concentrator is programmed to communicate with up to 50 polled devices configured exclusively in the standard Multidrop protocol.
NOTE: Scanners intended to link up to a series 5000 multidrop concentrator can only be configured in standard Multidrop protocol.
NOTE: Once the scanner is configured for Multidrop, a profile card (using mode 0) or a default procedure must be used to access the configuration menus again (although “K” commands will continue to function).
Multidrop requires the user to assign a unique address to the scanner. This number (1 to 50) is then displayed on the scanner configuration screen. However during transmission, poll and select addresses from 1C to 7F hex are substituted for the displayed decimal values. For example, if a 1 has been assigned as the Multidrop address, then 1C hex is substituted as the poll address and 1D hex as the select address.
| HINT: Attach a tag to each scanner to identify its multidrop address. |
When Multidrop is selected, the protocol characters for RES, REQ, etc. are assigned automatically. LRC, which is recommended for data transfer security, is also enabled.
For additional information on Multidrop, see the Series 5000 Multidrop Concentrator User’s Manual.
User Defined
Used only with RS-232 or RS-422. For special applications, User Defined protocol allows the user to assign ASCII characters to the address and/or to protocol commands (RES, REQ, EOT, STX, ETX, ACK, and NAK). (See “ASCII Table with Control Characters” in appendix B.) User Defined is necessary when a new protocol must be defined to match a specific host
Series 4000 Raster Scanner User’s Manual 3-7
Page 41
Chapter 3 Configuration
3-8 protocol. When User Defined is selected, the displayed protocol commands match those of the previously selected protocol. The protocol can then be modified as required.
User Defined is determined to be in a polled mode only if an address has been assigned by the user. Even with an address, the scanner cannot operate in Multidrop protocol. (Only Multidrop and User Defined Multidrop operate with RS-485.) If no address has been assigned, the scanner will be in an unpolled mode.
The address can be any ASCII character from the ASCII table in appendix
B, except a NUL. Note that the same ASCII character should never be assigned more than once to an address or protocol command.
NOTE: Definitions of protocol commands in User Defined and User Defined Multidrop must be matched in host applications to allow communications sequences to execute correctly.
| HINT: To delete any unwanted command, assign a NUL (null) character. |
A simple ACK/NAK protocol can be developed by first selecting Point-to- Point, next selecting User Defined, and then assigning characters to ACK and NAK commands.
Series 4000 Raster Scanner User's Manual
Page 42
Menu Configuration
For example, to define an ACK/NAK protocol, at the prompt, COMMUNICATIONS - - > HOST PROTOCOL
Press CR twice to see: HOST PROTOCOL ->PROTOCOL, > POINT-TO-POINT = ENABLED
Press CR to re-enable. Press B twice to scroll to User Defined and CR once to see:
HOST PROTOCOL ->PROTOCOL, > USER DEFINED-> RES = Press SP six times to scroll to ACK and CR once to see the following: HOST PROTOCOL ->PROTOCOL ~> USER DEFINED-> ACK =, >
Enter a 4F by holding down the Control key while pressing the F key and press CR to see the following:
HOST PROTOCOL ->PROTOCOL - - > USER DEFINED -> ACK = AF" Press SP once to advance to NAK and CR once to see:
HOST PROTOCOL ->PROTOCOL ~> USER DEFINED -> NAK =, >
Enter a “U by holding down the Control key while pressing the U key. Press CR to see:
HOST PROTOCOL ->PROTOCOL -> USER DEFINED -> NAK = AU
1. A control character, although conventionally represented here and in the ASCII table in appendix B as two characters (F or 4U, etc.), is actually a single ASCII character which is entered on the keyboard by holding down the control key while pressing the desired letter.
Series 4000 Raster Scanner User’s Manual 3-9
Page 43
Chapter 3 Configuration
Press M three times to see the following updated screen (figure 3-4).
(_ CURRENT SETTINGS FOR COMMUNICATIONS >
HOST PROTOCOL 1! PARAMETER | HOST PORT | AUX PORT |
PROTOCOL = USER DEFINED || BAUD RATE | 9600 | 3600 PREAMBLE = DISABLED = <CR ><NUL> {|| PARITY | EVEN | EVEN POSTAMBLE = DISABLED = <CR ><LF > {|| STOP BITS | ONE | ONE ADDRESS = || DATA BITS | SEVEN | SEVEN RES = <NUL> I] RS-422 | DISABLED | ENABLED REQ = <NUL> || AUX MODE | N/A | DISABLED EOT = <NUL> tH! I | STX = <NUL> II | { ETX = <NUL> II | | ACK = <ACK> II | I NAK = <NAK> iI | l LRC = ENABLED 11 | | RESPONSE TIMEOUT = 12 ms I | | INTERCHAR DELAY = 0 ms I | |
ESC = MAIN MENU OR EXIT N = NEXT ITEM
M = PREVIOUS MENU SP = NEXT ITEM
B = PREVIOUS ITEM CR = THIS ITEM
\ conmun ICATIONS--> HOST PROTOCOL /
Figure 3-4 Defining an ACK-NAK Protocol
Notice that the mnemonics ACK and NAK replace the default NULs. This is the typical configuration for a simple ACK/NAK protocol. Although Longitudinal Redundancy Check (LRC) is automatically enabled, it can be disabled if it is not required for your application. (See instructions under “Longitudinal Redundancy Check” later in this section.)
To return to Protocol, press CR twice and SP to scroll through the options.
Or to advance to Preamble, press CR and SP.
User Defined Multidrop
Functions exactly the same as User Defined (including the selection of ASCII characters) except that RS-485 is enabled instead of RS-232 or RS- 422. It is used when connecting a concentrator or other device that does not match standard Multidrop protocol.
NOTE: The series 5000 concentrator is programmed to communicate with scanners in multidrop protocol only. When linked.to a series 5000 concentrator, a scanner must use standard multidrop protocol.
3-10 Series 4000 Raster Scanner User's Manual