The text of a manual · part 6 of 10
MS-5000 Multidrop Concentrator User's Manual, pages 51 to 60
Pages 51 to 60 of 94
The original document is the PDF (1.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-5000
Page 51
Exiting and Saving Menu Changes
Years Options: 0 to 99 Allows you to set the current year.
Time Stamp Separator Default: (space) Options: any ASCII character Allows you to set the character that separates date and time date output from the address of the device and the label data.
Exiting and Saving Menu Changes To exit the menu and save menu changes for power up, press ESC (escape key). The following command line is displayed: EXIT OR MAIN MENU (E,M)
Choose E to Exit. You are asked,
MS-5000 Multidrop Concentrator User’s Manual
3-17
3–Serial Config.
Do you want to save changes for power up? (Y=yes N=no)
Press Y if you wish to retain the new settings for power up. You will hear a one second beep indicating the save has been carried out.
Page 52
Chapter 3 Menu Configuration
2 = c fe} Oo '® ‘ ® 2 (ye)
3-18 MS-5000 Multidrop Concentrator User’s Manual
Page 53
Chapter
4
Serial Commands Serial Commands
Chapter Contents Summary of Serial Commands ................................................. 4-2 Configuration Commands ......................................................... 4-3 Host Port ................................................................................... 4-4 LAN Port ................................................................................... 4-5 Auxiliary Port............................................................................. 4-6 Host Protocol Commands ......................................................... 4-6 Time Keeping Commands ...................................................... 4-11 Operational Commands .......................................................... 4-12
All of the MS-5000’s menu configuration changes can also be made by command strings from the host. Serial commands listed in this chapter apply ONLY to the MS-5000 concentrator. You can also send serial configuration commands through the concentrator to any functioning polled devices by prefacing the command with the device’s address (see “Multidrop Addresses” on page 2-2 and “Multidrop” on page 3-10); however, you must use commands described in the user’s manual for that device.
MS-5000 Multidrop Concentrator User’s Manual
4-1
4–Operations.
This chapter includes both serial configuration and operational (utility) commands.
Page 54
Chapter 4
Serial Commands
Summary of Serial Commands Table 4-1 Summary of Serial Configuration Commands
Command
Effect
51<Kadata>CR 51<Kbdata>CR 51<Kcdata>CR 51<Kddata>CR 51<Kedata>CR 51<Kfdata>CR 51<Kgdata>CR 51<Khdata>CR 51<Kidata>CR 51<Kjdata>CR 51<Kkdata>CR 51<Kldata>CR 51<Kmdata>CR 51<Kndata>CR 51<Kodata>CR 51<Kpdata>CR 51<Kqdata>CR 51<Krdata>CR 51<Ksdata>CR 51<KIdata>CR 51<KJdata>CR
Host Port Baud, Parity, Stop Bits, and Data Bits Host Port RS-422 LRC Preamble Postamble Host Protocol Blocking Factor Host Port Turnaround Timeout Host Port Intercharacter Timeout RTS/CTS XON/XOFF LAN Port Baud, Parity, Stop Bits, and Data Bits LAN Port RS-422 LAN Port Turnaround Timeout, Number of Devices Auxiliary Mode Aux Port Baud, Parity, Stop Bits, and Data Bits Full Screens Battery-backed RAM (optional) Poll Response Timeout Time and Date Setting Time and Date Output
4–Operations.
Table 4-2 Summary of MS-5000 Operational Commands
Command 51<A>CR 51<B>CR 51<C>CR 51<D>CR 51<Z>CR 51<&>CR 51<#>CR
Effect Software reset, but preserve data in buffers Reset, including data in buffers Partial buffer to host Launch Configuration Program Save current configuration for power up Upload to Current Date and Time Upload to Software Part Number
The configuration commands in table 4-1 are shown with one data field; however, the actual number of data fields will vary by command. Note: The 51 directs the command to the concentrator. To send a serial command to any “active” decoder or scanner on the network, use its address and refer to the list of K commands for that device. 4-2
MS-5000 Multidrop Concentrator User’s Manual
Page 55
Serial Commands
Configuration Commands All serial commands addressed to the concentrator are prefaced with a 51. In the case of serial configuration commands, the letter K is inserted and an initializing command is appended in the following format: 51<KparameterdataA,dataB,etc...><initializing command>CR
Where: • The 51 is the concentrator’s address. • Less than < and greater than > brackets enclose the commands. • The capital K denotes a configuration command. • parameter identifies the command type and is a single alphabetical character that immediately follows the K, with no space or comma separator. • dataA, dataB, etc. are data fields within the command. • An initializing command,<A>, <B>, or <Z>, must follow each command or group of concatenated commands.1 • A CR (carriage return) character is the default ETX character.
1. See “Operational Commands” on page 4-12 for definitions and examples. IMPORTANT: because initializing commands are user selectable and their placement is flexible, initializing commands are not included in the examples throughout this chapter. MS-5000 Multidrop Concentrator User’s Manual
4-3
4–Operations.
When using serial configuration commands, note the following conventions: • Parameters and data fields are “case sensitive,” that is, characters must be entered as upper or lower case, as specified. • All data fields must be separated by a comma (with no spaces). • If there is no change in a given field, commas can be entered alone or with the existing data (for example, 51<Ka,,,0>CR or 51<Ka4,1,0,0>CR). • All fields preceding a modified field must be included. For example, to change Data Bits to eight (see “Host, LAN, and Aux Port Parameters” in “Communications Menu”) without changing any other field, enter either: 51<Ka,,,1>CR or 51<Ka4,1,0,1>CR. • All fields after the modified field can be omitted. For example, to change the concentrator Host Baud Rate to 4800, the host would enter 51<Ka3>CR. (See more examples on following pages.)
Page 56
Chapter 4
Serial Commands
Host Port Baud Rate, Parity, Stop Bits, Data Bits Set communications parameters for the host port. Format: 51<Kabaud rate,parity,stop bits,data bits>CR baud rate: 0 = 600 4 = 9600 1 = 1200 5 = 19.2K 2 = 2400 6 = 300 3 = 4800 parity: 0 = None 1 = Even 2 = Odd stop bits:
data bits:
0 = One 1 = Two
0 = Seven 1 = Eight
Example: To change Host Port Baud Rate to 2400, enter <Ka2>.
Host RS-422 Toggle between RS-232 and RS-422. Format: 51<Kbstatus>CR 0 = Disable 1 = Enable Example: To enable RS-422, enter 51<Kb1>CR.
Turnaround Timeout Time the concentrator will wait for a response from the host. Format: 51<Khtimeout>CR Any number from 1 to 250, Default is 15 ms. Example: To change the timeout to 30 ms, enter 51<Kh30>CR.
4–Operations.
Intercharacter Timeout Time the concentrator will wait between inidvidual characters from the host. Format: 51<Kitimeout>CR Any number from 1 to 250, Default is 15 ms. Example: To change the timeout to 30 ms, enter 51<Ki30>CR.
Poll Response Timeout Time the concentrator will wait when in polled mode to the host. Format: 51<Kspoll response timeout>CR Any number from 1 to 250, Default is 15 ms. Example: To change the poll response timeout to 20 ms, enter 51<Ks20>CR. 4-4
MS-5000 Multidrop Concentrator User’s Manual
Page 57
Serial Commands
LAN Port Baud Rate, Parity, Stop Bits, Data Bits Set communications parameters for the LAN port. Format: 51<Klbaud,parity,stop bits,data bits>CR baud rate: 0 = 600 4 = 9600 1 = 1200 5 = 19.2K 2 = 2400 6 = 300 3 = 4800 parity: 0 = None 1 = Even 2 = Odd stop bits:
data bits:
0 = One 1 = Two
0 = Seven 1 = Eight
Example: To change Stop Bits to Two and ensure that default parameters remain the same, enter 51<Kl,,1>CR or 51<Kl4,1,1>CR. To change Baud to 19.2 K, enter 51<Kl5>CR.
RS-422 Toggle between RS-232 and RS-422. Format: 51<Kmstatus>CR LAN RS-422 Status: 0 = Disabled 1 = Enable Example: To enable RS-422, enter 51<Km1>CR.
Turnaround Timeout, Number of Devices
Format: 51<Kntimeout, number of devices>CRt LAN Turnaround Timeout: Any number from 1 to 250. Default is 15 ms.
Number of Devices: Any number from 1 to 50. Default is 50.
Example: To change the timeout to 30 ms and the number of devices to 10, enter 51<Kn30,10>CR.
MS-5000 Multidrop Concentrator User’s Manual
4-5
4–Operations.
Time the concentrator will wait between inidvidual characters from a LAN device.
Page 58
Chapter 4
Serial Commands
Auxiliary Port Baud Rate, Parity, Stop Bits, Data Bits Set communications parameters for the aux port. Format: 51<Kpbaud,parity,stop bits,data bits>CR baud rate: 0 = 2400 3 = 9600 2 = 4800 4 = 19.2K parity: 0 = None 1 = Even 2 = Odd stop bits:
data bits:
0 = One 1 = Two
0 = Seven 1 = Eight
Example: To change Data Bits to Eight, ensure that default parameters remain the same, enter 51<Kp,,,1>CR or 51<Kp2,1,0,1>CR.
Aux Mode Toggle between aux port and host. Format: 51<Kostatus>CR 0 = Disable 1 = Enable Example: To enable Aux Port, enter 51<K01>CR.
Host Protocol Commands Note: Changes made in the concentrator to communications parameters such as baud rate, parity, stop bits, LRC, etc., must be matched in the host or communications will be lost. If this occurs, default the concentrator (see Appendix C, “Defaulting the MS-5000” on page A-6).
4–Operations.
If selecting one of the options from 0 to 4 (Point-to-Point, Point-to-Point with RTS/CTS, Point-to-Point with XON/XOFF, Point-to-Point with XON/XOFF and RTS/CTS, or Polling Mode D), use this format:
Host Protocol: Set host protocol and related parameters. Format: 51<Kfprotocol>CR 4 = Polling Mode D 0 = Point-to-Point 1 = Point-to-Point with RTS/CTS 5 = Multidrop (requires address) 2 = Point-to-Point with XON/XOFF 6 = User Defined 3 = Point-to-Point with RTS/CTS & XON/XOFF 7 = User Defined Multidrop Example: To change the Protocol to Polling Mode D, enter 51<Kf4>CR. If selecting Multidrop (5), you must define an address and add it to the format (data B). 4-6
MS-5000 Multidrop Concentrator User’s Manual
Page 59
Serial Commands Format: 51<Kfprotoco,address>CR Protocol: 5 = Multidrop
Address: Any number from 1 to 50.
Example: To change the Protocol to Multidrop with an address of 33, enter 51<Kf5,33>CR. If selecting User Defined (6) or User Defined Multidrop (7), you must complete the format by either choosing new parameters or entering commas for unchanged data fields. Format: 51<Kfprotocol,address,RES,REQ,STX,ETX,ACK,NAK,EOR,XON, XOFF,RES,REQ,STX,ETX,ACK,NAK,EOR,EOF,XON,XOFF>CR Format: <Kfprotocol,RES,address,REQ,EOT,STX,ETX,ACK,NAK> protocol: 7 = User Defined Multidrop Example: To select an unpolled ACK/NAK User Defined protocol with LRC disabled enter 51<Kf0><Kf6,,,,,,,^F,^U><Kc0>CR.1 ACK and NAK will be displayed in the menu.2 Note: Address, can be assigned any ASCII character except a null. Control characters are used to define RES through NAK (except Address). Table 4-3 lists the control characters used for these data fields. (Refer to Table A-1, “ASCII Table with Control Characters,” on page A-3 for more information.) Table 4-3 Protocol Commands
Control Characters (Entered in menu or serial command)
Effect of Command Reset Request Reset Start of Text End of Text Acknowledge Negative Acknowledge
RES
^D
REQ
^E
EOT
^D
STX
^B
ETX
^C
ACK
^F
NAK
^U
1. The <Kf0> nulls the address and the <Kc0> disables LRC. 2. A control character, although conventionally represented here and in the ASCII table in appendix B as two characters (^F or ^U, etc.), is actually a single ASCII character which is entered on the keyboard by holding down the control key while pressing the desired letter.
MS-5000 Multidrop Concentrator User’s Manual
4-7
4–Operations.
Protocol Command (Mnemonic displayed on Microscan menu)
Page 60
Chapter 4
Serial Commands Note: See table A-1, “ASCII Table with Control Characters,” in appendix B for a complete list of control characters.
In Protocols 6 and 7, the concentrator's address and protocol commands can be defined or changed by concatenating them in twenty data fields separated by commas. The order is:
Note: EOF appears only in the To Host commands.
Example 1: To define a User Defined protocol with ACK-NAK protocol, enter: <Kf0>51<Kf6,,,,,,^F,^U,,,,,,,,^F,^U>CR.
4–Operations.
Kf0 puts the concentrator in Point-to-Point mode. Kf6 puts the concentrator in User Defined. The five commas keep the current values for Address and From Host protocol commands (RES, REQ, STX, and ETX). ^F and ^U assign an ACK and a NAK respectively to the From Host ACK and NAK commands. The seven commas keep the current values for EOR, XON, XOFF, RES, REQ, STX, and ETX. ^F and ^U assign an ACK and a NAK respectively to the To Host ACK and NAK commands. The remaining four To Host protocol commands, EOR, EOF, XON, and XOFF are omitted since they remain unchanged and are last in the command string. Note: A comma is necessary after each field except the last. Therefore, when inserting commas in place of unchanged protocol commands (or fields), remember to insert one comma for each field designated for that command string. Example 2: To define a User Defined Multidrop protocol with an address of ^Y with standard Multidrop commands, enter: Address From Host Commands 51<Kf7,^Y,^D,^E,^B,^C,^F,^U,,^Q,^S,^D,^E,^B,^C,^F,^U,,^A,^Q,^S>CR
To Host Commands or: 51<Kf5,01><KF7,^Y>CR. The command <Kf5,01> changes the protocol to Multidrop with an address of 01. This preloads all the Multidrop protocol commands so that only the
4-8
MS-5000 Multidrop Concentrator User’s Manual