Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 6 of 11

VS-310 Scanner User's Manual, pages 51 to 60

Pages 51 to 60 of 108

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 VS-310

Page 51

Chapter

3

Serial Configuration Chapter Contents

All of the configuration changes to the scanner that can be made in the menu program can also be accomplished by command strings from the host. Serial command strings are entered from an ASCII terminal or from within the Terminal window of the Easy Setup Program for Windows. As with menu configuration commands, serial configuration commands relate to the initial scanner setup. To quickly reference the serial configuration commands, see table 3-1 on page 3-2. See Menu commands in Chapter 2 for detailed explanations of configuration commands.

VS-310 Scanner User’s Manual

3-1

3–Serial Config.

Summary of Serial Configuration Commands...................................... 3-2 Serial Configuration Command Format ............................................... 3-3 Concatenating Serial Commands ........................................................ 3-4 Establishing Communications.............................................................. 3-4 Communications .................................................................................. 3-5 Protocol................................................................................................ 3-5 Operations Commands ........................................................................ 3-8 Code Types Commands .................................................................... 3-10 Scanner Output Commands .............................................................. 3-12 Scanner Setup Commands................................................................ 3-13

Page 52

Chapter 3

Serial Configuration Table 3-1 Summary of Serial Configuration Commands

Type Communic ations

Protocol

3–Serial Config.

Operations

Code Types

Scanner Outputs

Scanner Setup

3-2

ESP Cmd Cmd ?

Name

Format

Yes

Ka

Communications

<Kabaud,parity,stop bits,data bits>

Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes

Kf Kd Ke Kc KA KB Km KL Ki Kg Kh Kj Kn Ko Kp

Protocol Preamble Postamble LRC Response Timeout Intercharacter Delay Good Decode Reads Number of Labels Serial Trigger Character Triggering Mode End of Read Cycle External Trigger Level Match Code Narrow Margins Code 39

<Kfprotocol> <Kdstatus,ASCII characters> <Kestatus,ASCII characters> <Kcstatus> <KAtimeout setting> <KBnumber> <Kmnumber> <KLnumber of labels,field separator> <Kicharacter> <Kgmode,filter time> <Khmode,time> <Kjmode> <Knstatus> <Kostatus> <Kpstatus,check digit status, check digit output status,large intercharacter gap,fixed code length status,code

Yes

Kq

Codabar

Yes

Kr

Interleaved 2 of 5

Yes

Kz

Code 93

Yes Yes Yes Yes Yes Yes Yes No

Kt Kv Kw Kl Kk Ku KC KP

Code 128 Relay-1 Relay-2 (with RS-232 only) When to Output Noread Message Beeper Laser On/Off Status Scanner Type length,full ASCII status> <Kqstatus,start & stop match status,start & stop output status,large intercharacter gap,fixed code length status,code length,check digit type,check digit output> <Krstatus,check digit,check digit output,lengthþ1,length 2> <Kzstatus,fixed code length status,code length> <Ktstatus,fixed length,length> <Kvoutput on,polarity, pulse width> <Kwoutput on,polarity, pulse width> <Klstatus,when to output> <Kkstatus,output> <Kustatus,speed> <KCstatus> <KPdensity>

VS-310 Scanner User’s Manual

Page 53

Serial Configuration Command Format The format for a serial configuration command is, <Kparameterdata,data,...etc.><initializing command>

Where: • Less than < and greater than > symbols are included as part of the commands. • “parameter,” as used here, are those character(s) that precede the data. • The “initializing command” <A> or <Z> is sent after configuration is complete. <Z> resets and saves the configuration changes for power up. <A> resets and uses the changes in RAM.1 (For more information, see page 4-12.) For example, the following command enables Code 93 and saves the change for power-on: <Kz1><Z>.

When using serial configuration commands, note also the following conventions:

• All data fields (except the last) must be followed by a comma (without a space). • If there is no change in a given field, then commas can be entered alone, or with the existing data (for example, <Ka,,,0> or <Ka4,1,0,0>). • All fields preceding the modified field must be included. For example, in Host Port, to change Data Bits to Eight without changing any other field, enter either: <Ka,,,1> or <Ka4,1,0,1>. • All fields following the modified field can be left out. For example, in the RS-232 port, to change Baud Rate to 4800, enter <Ka3>. (See examples on following pages.)

1. See “Initializing serial configuration commands” on page 3-4 for definitions and examples. VS-310 Scanner User’s Manual

3-3

3–Serial Config.

• Parameters and data are “case sensitive.” That is, characters must be entered as upper or lower case, as specified.

Page 54

Chapter 3

Serial Configuration Initializing serial configuration commands To ensure that a serial configuration command will take effect, you need to follow it with one of the operational commands below: <A> To reset but not save changes for power-on. <Z> To reset and save changes for power-on. For example, to change Baud Rate and reset without saving changes for power-up, enter <Ka3><A>. To change Baud Rate and reset, saving the changes to NOVRAM for power-on, enter <Ka3><Z>.

Concatenating Serial Commands Commands can be concatenated (added together) to a maximum of 64 characters in a single string or data block. Additional data blocks of 64 or less characters can be sent provided there is at least a 20 ms pause between blocks. If a block is ended with a <Z> or an <A> command, 1 second should be allowed.

3–Serial Config.

For example, <Kc1><Kh1><Ko1><A> enables LRC, sets End of Read Cycle mode to New Trigger, enables Narrow Margins and resets the data buffers (without saving the changes for power-on).

Establishing Communications Communications settings of the scanner must match those of the host (or other terminal that is being used to setup the scanner. You can change the scanner’s settings by serial commands or in Menu on the Communications page. Note: Once an address is assigned to the scanner, you must use a multidrop device and protocol to continue to communicate with the scanner. If communications should be broken, you can re-establish by changing or defaulting the scanner’s settings to match the linked device’s and saving these settings to RAM. When you save communications settings to the scanner, those changes are automatically updated and matched in the host (see Step 6, “Establish Communications,” on page 1-8). Caution: Defaulting the scanner will reset all scanner configuration parameters to their original default values.

3-4

VS-310 Scanner User’s Manual

Page 55

Communications Format: <Kabaud rate,parity,stop bits,data bits> data bits: parity: baud rate: stop bits: 0 = One 0 = Seven 0 = None 0 = 600 4 = 9600 1 = Two 1 = Eight 1 = Even 1 = 1200 5 = 19.2K 2 = Odd 2 = 2400 6 = 300 3 = 4800 Example: To change Host Port Baud Rate to 19.2K, enter <Ka5>.

Protocol If selecting one of the options from 0 to 4 (Point-to-Point, Point-to-Point with XON/XOFF, or Polling Mode D), use this format: Format: <Kfprotocol>1 protocol: 0 = Point-to-Point

5 = Multidrop (requires address) 6 = User Defined 7 = User Defined Multidrop a. RTS/CTS is not available with the VS-310 at this time. Options1 and 3 are reserved for possible future inclusion.

Example: To change the Protocol to Polling Mode D, enter <Kf4> If selecting Multidrop (5), you must define an address and append it to the command string. Format: <Kf5protocol,address> protocol: address: 5 = Multidrop Any number from 1 to 50 Example: To change the Protocol to Multidrop with an address of 33, enter <Kf5,33>. If selecting User Defined (6) or User Defined Multidrop (7), complete the format by either choosing new parameters or concatenating unchanged data fields (separate by commas). Tip: For User Defined, first select Point-to-Point <Kf0> and then User Defined <Kf6...>. For user Defined Multidrop, first select Multidrop <Kf5>, then User Defined Multidrop <Kf7...>. Format: <Kfprotocol,RES,address,REQ,EOT,STX,ETX,ACK,NAK,from host> protocol: 6 = User Defined; From Host: 0 = disabled

1 = enabled

1. The VS-310 does not support RTS/CTS. VS-310 Scanner User’s Manual

3-5

3–Serial Config.

2 = Point-to-Point with XON/XOFFa 4 = Polling Mode D

Page 56

Chapter 3

Serial Configuration Example: To select an unpolled ACK/NAK User Defined protocol with LRC disabled, enter <Kf0><Kf6,,,,,,,^F,^U><Kc0>.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 32 lists the control characters used for these data fields. (Refer to Table A-E, “ASCII Table,” on page A-12 for more information.)

3–Serial Config.

Explanation of the From Host option Suppose STX, ETX and EOT are defined in the VS-310, the trigger counter is currently T/00000, and you want to send the Trigger Counter Request command to the scanner. Defined Protocol: STX, ETX, EOT Trigger Counter Status: T/00000 Host Command Request: <T> (Trigger Counter Request Command) The command string format from From Host Disabled the host would depend on the From Host setting. <T> HOST VS-310 If From Host is disabled, <T> STX T/00000 ETX EOT (Trigger Counter Request command) would be the required forFrom Host Enabled mat from the host to cause the scanner to return STX T/00000 STX <T> ETX EOT HOS VS-310 ETX EOT. However, if From Host STX T/00000 ETX EOT is enabled, the required host command string would be STX <T> ETX EOT to receive the same response from the scanner. In either case the data string returned by the scanner always includes the defined protocol. In this example the returned data would be STX T/00000 ETX EOT.

Format: <Kfprotocol,RES,address,REQ,EOT,STX,ETX,ACK,NAK> protocol: Format: 7 = User Defined Multidrop

Example: To select an unpolled ACK/NAK User Defined protocol with LRC disabled, enter <Kf0><Kf6,,,,,,,^F,^U><Kc0>.3 ACK and NAK will be displayed in the menu.4

1. <Kf0> nulls the address and <Kc0> disables LRC. 2. A control character, although conventionally represented here and in the ASCII table on page A-12 as two characters (^F or ^U, etc.), is actually a single ASCII character that is entered on the keyboard by holding down the control key while pressing the desired letter. 3. <Kf0> nulls the address and <Kc0> disables LRC. 4. A control character, although conventionally represented here and in the ASCII table on page A-12 as two characters (^F or ^U, etc.), is actually a single ASCII character that is entered on the keyboard by holding down the control key while pressing the desired letter.

3-6

VS-310 Scanner User’s Manual

Page 57

Note: Address, can be assigned any ASCII character except a null. Control characters are used to define RES through NAK (except Address). Table 32 lists the control characters used for these data fields. (Refer to Table A-11, “ASCII Table with Control Characters,” on page A-12 for more information.) Table 3-2 Protocol Commands

Protocol Command (Mnemonic displayed on Microscan menu) RES REQ EOT STX ETX ACK NAK

Control Characters (Entered in menu or serial command) ^D ^E ^D ^B ^C ^F ^U

Effect of Command Reset Request Reset Start of Text End of Text Acknowledge Negative Acknowledge

Format: <Kdstatus,preamble character(s)> status: preamble character(s): 0 = Disabled Enter one or two preamble characters except a 1 = Enabled null (00H). Default is ^M.

Example: To enable Preamble with just one character, an FF (form feed), enter <Kd1,^L>.

Postamble Format: <Kestatus,postamble character(s)> status: postamble character(s): 0 = Disabled Enter one or two postamble characters except a 1 = Enabled null (00H). Default characters are ^M^J. Example: To disable Postamble, enter <Ke0>.

Response Timeout Format: <KAtimeout setting> Any number from 0 to 255 in 10 ms increments Default is 0. Note: A zero creates an indefinite wait.

Allows you to set the time the reader will wait before timing out if ACK, NAK, and ETX are enabled, and a host response is expected.

VS-310 Scanner User’s Manual

3-7

3–Serial Config.

Preamble

Page 58

Chapter 3

Serial Configuration

Intercharacter Delay Format: <KBtime interval> time interval (between characters in milliseconds): Any number from 0 to 255. Default is 0. Example: To change Inter-character Delay to 30 ms, enter <KB30>.

LRC Format: <Kcstatus> status: 0 = Disabled

1 = Enabled

Example: To enable LRC, enter <Kc1>.

Operations Commands Triggering Mode 3–Serial Config.

Format: <Kgtriggering mode,filter time> trigger filter time (in 5 ms increments): triggering mode: 0 = Continuous Read Any number between 0 and 255. 1 = Continuous Read 1 Default is 4 (4 x 5 ms = 20 ms). 2 = External Level 3 = External Edge 4 = Serial Data 5 = Serial Data & Edge

Example: To select External Edge, enter <Kg3>.

End of Read Cycle Format: <Khend of read cycle mode,timeout> end of read cycle mode: timeout (in 10 millisecond increments): 0 = Timeout Any number between 0 and 65535. 1 = New Trigger Default is 100 (one second). 2 = Timeout & New Trigger

Example: To select Timeout and change the timeout value to 6 seconds, enter <Kh0,600>.

3-8

VS-310 Scanner User’s Manual

Page 59

Serial Trigger Character Format: <Kiserial trigger character>1 serial trigger character: Any available ASCII character (see “ASCII Table with Control Characters” on page A-12). Default is ^].

Example: To define the Serial Trigger Character as a lowercase c, enter <Kic>.

Good Decode Reads Format: <Kmnumber of reads> number of reads (before a good decode): Any number from 1 to 31. Default is 1.

Example: To change Good Decode Reads to 3, enter <Km3>.

External Trigger Level 3–Serial Config.

Format: <Kjexternal trigger level> external trigger level (initiates a read cycle): 0 = Negative 1 = Positive

Example: To change External Trigger Level to Negative, enter <Kj0>.

Match Code Format: Format: <Knstatus> status: 0 = Disabled

1 = Enabled

Example: To enable Match Code, enter <Kn1>. The maximum master label length is 31.

Number of Labels Format: <KLnumber,multilabel separator> number of labels: multilabel separator: 1 or 2. Any valid ASCII Default is 1. character.

Example: To change Number of Labels to 2, enter <KL2>. (See “Number of Labels,” on page 2-15 for limitations.) 1. Avoid selecting the < > characters as a serial trigger character or any character that is already an operational command. For example, an uppercase C cannot be used as a serial trigger character because it is the operational command for Enter Decode Rate Test. However, a lowercase c could be used without initiating the decode rate test. VS-310 Scanner User’s Manual

3-9

Page 60

Chapter 3

Serial Configuration

Code Types Commands Code 39 Format: <Kpstatus,check digit status,check digit output status,large intercharacter gap,fixed code length status,code length,full ASCII status> status: 0 = Disabled 1 = Enabled check digit status:

check digit output status:

0 = Disabled

0 = Disabled

1 = Enabled

1 = Enabled code length: large intercharacter fixed code length status: Any number gap:

To set Fixed Code Length to 30, enter 0 = Disabled or <Kp1,0,0,0,1,30>. full ASCII status 0 = Disabled

1 = Enabled from 1 to 31. 1 = Enabled 1 = Enabled Default is 10. Example: To set Fixed Code Length to 30, enter <Kp,,,,1,30> or <Kp1,0,0,0,1,30>. 0 = Disabled

0 = Disabled

Codabar 3–Serial Config.

Format: <Kqstatus,start & stop match status,start & stop output status,large intercharacter gap,fixed code length status,code length,check digit type,check digit output> start & stop match status: start & stop output status: 0 = Disabled 0 = Disabled status: 0 = Disabled

1 = Enabled large inter-character gap: 0 = Disabled

1 = Enabled

1 = Enabled

1 = Enabled fixed code length status: 0 = Disabled 1 = Enabled code length: Any number from 1 to 31. Default is 10.

check digit type: check digit output: 0 = Disabled2 = NW7 0 = Disabled 1 = Mod 16 3 = Both 1 = Enabled Example: To set Fixed Code Length to 9, enter <Kq,,,1,9> or <Kq1,1,1,1,9>.

3-10

VS-310 Scanner User’s Manual