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 8 of 14

MS-7100/7180 Industrial Scanner User's Manual, pages 71 to 80

Pages 71 to 80 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 71

Summary of Serial Configuration Commands Table 3-1 Summary of Serial Configuration Commands Function

User Outputs

Cmd

Command Title

Format

Ku

Beeper

<Kustatus,volume>

Kv

Relay Settings

<Kvrelay--output #1 setting,TTL--output #2 setting>

Kz

New Master Pin

<Kzstatus>

KC

Laser On/Off

<KCstatus>

KD

Reverse Video

<KDstatus>

Kw

Output Polarity

<Kwmode>

Kx

Output Pulse Width

<Kxnumber>

KE

Command Start Character

<KEASCII character>

KG

Serial Verification

<KSecho K command,beep on K command,control char-

KY

Partial Ouput acter output>

<KYstatus,start position,partial length>

KG?4 User Output Status Request <KG?4> Raster

KR

Raster Setup

<KRstatus,top offset,bottom offset,motor speed,raster on/off>

Format: <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” <Z> is sent after configuration is complete to reset and save for power up. If you want to reset without saving for power up, send the command alone.1 For example, the following command enables UPC: <Ks1>. When using serial configuration commands, note also the following conventions: • Parameters and data are “case sensitive.” That is, characters must be entered as upper or lower case, as specified. • 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>).

1. Commands that effect Communications are unique. See “Initializing serial configuration commands that effect communications” on page 3-4 for definitions and examples.

MS-7100/7180 Industrial Scanner User’s Manual

3-3

3–Serial Config.

Serial Configuration Command Format

Page 72

Chapter 3

Serial Configuration • All fields preceding the modified field must be included. For example, in the RS-232 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.)

Initializing serial configuration commands that effect communications

3–Serial Config.

For a serial configuration command that effects communications to be implemented, you need to follow it with one of the operational commands below: • <A> To reset but not save changes for power-up • <Z> To reset and save changes for power-up 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 non-volatile RAM, enter <Ka3><Z>.

Concatenating Serial Commands Commands can also 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 10 ms pause between blocks.1 For example, the following command, <Kc1><KA24><Ko1><A> enables LRC, sets the Host Protocol Response Timeout to 24 ms, enables Narrow Margins and resets the data buffers (without saving the changes for power-on).

Loss of Communications Assigning a multidrop address to a scanner or making changes to communications parameters such as Baud Rate, Parity, Stop Bits, LRC, etc. without corresponding changes in linked device(s) can result in the loss of menu access. If this should occur, try gaining access to the scanner by entering a <D> command from an auxiliary terminal via the auxiliary RS-232 port. If neither of these methods is available, try defaulting the scanner. See “Appendix E, Defaulting the Scanner” on page A-10.

1. Data in excess of 64 characters will reset the buffer, causing the first 64 characters of the string to be lost and indicator #1 to illuminate red 2 seconds after the end of each read cycle, until the scanner’s memory is reset.

3-4

MS-7100/7180 Industrial Scanner User’s Manual

Page 73

Communications Commands

Communications Commands Host Protocol 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: Format: <Kfprotocol> protocol: 0 = Point-to-Point 1 = Point-to-Point with RTS/CTS 2 = Point-to-Point with XON/XOFF 3 = Point-to-Point with XON/XOFF and RTS/CTS

4 = Polling Mode D 5 = Multidrop (requires address) 6 = User Defined 7 = User Defined Multidrop

Example: To change the Protocol to Polling Mode D, enter <Kf4>.

Format: <Kf5protocol,address> protocol: 5 = Multidrop address: 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), you complete the format by either choosing new parameters or concatenating unchanged data fields (separate by commas). For User Defined, you first select Point-to-Point <Kf0> and then User Defined <Kf6...>. For user Defined Multidrop, you first select Multidrop <Kf5>, then User Defined Multidrop <Kf7...>.

MS-7100/7180 Industrial Scanner User’s Manual

3-5

3–Serial Config.

If selecting Multidrop (5), you must define an address and append it to the command string.

Page 74

Chapter 3

Serial Configuration Format: <Kfprotocol,RES,address,REQ,EOT,STX,ETX,ACK,NAK> RES Protocol: 6 = User Defined Address 7 = User Defined Multidrop EOT STX ETX ACK NAK 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

3–Serial Config.

Note: Address, can be assigned any ASCII character except a null. Control characters are used to define RES through NAK (except Address). Table 3-2 lists the control characters used for these data fields. (Refer to Table A-1, “ASCII Table with Control Characters,” on page A-5 for more information.) Table 3-2 Protocol Commands Protocol Command Control Characters (Mnemonic displayed on (Entered in menu or serial Microscan menu) command) RES

Effect of Command

^D

Reset

REQ

^E

Request

EOT

^D

Reset

STX

^B

Start of Text

ETX

^C

End of Text

ACK

^F

Acknowledge

NAK

^U

Negative Acknowledge

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-5 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

MS-7100/7180 Industrial Scanner User’s Manual

Page 75

Communications Commands

Preamble Format: <Kdstatus,preamble character(s)> status: preamble character(s): 0 = Disabled Enter one or two preamble characters from table A-1 on page A-5, except a null. (00H). Default is ^M. 1 = Enabled Example: To enable Preamble with one character, an FF (form feed), enter <Kd1,^L>.

Postamble Format: <Kestatus,postamble character(s)> postamble character(s): status: 0 = Disabled Enter one or two preamble characters from table A-1 on page A-5, except a null. (00H). Default is ^M. 1 = Enabled Example: To enable Postamble with an FF (form feed) and a CR (carriage return), enter <Ke1,^L^M>.

Format: <Kcstatus> status: 0 = Disabled

3–Serial Config.

LRC

1 = Enabled

Example: To enable LRC, enter <Kc1>.

Response Timeout Format: <KAtimeout setting> timeout setting: Any number from 0 to 65,000 (a zero creates an indefinite wait). Default is 12. Example: To change Response Timeout to 30 ms, enter <KA30>.

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

MS-7100/7180 Industrial Scanner User’s Manual

3-7

Page 76

Chapter 3

Serial Configuration

Host Port Note: Changes made in the scanner’s communications parameters such as baud rate, parity, stop bits, LRC, etc., must be matched in the other device(s) or communications will be lost. If this occurs, default the scanner as described in Appendix E, “Defaulting the Scanner.”

Format: <Kymode,baud rate, parity,stop bits,data bits> stop bits: baud rate: parity: data bits: 0 = One 0 = Seven 0 = 600 4 = 9600 0 = None 1 = Two 1 = Even 1 = Eight 1 = 1200 5 = 19.2K 2 = Odd 2 = 2400 6 = 38.4K 3 = 4800 Example: To change Data Bits to Eight without changing any other fields, enter either <Ka,,,1> or <Ka4,1,0,1>.1

3–Serial Config.

Format: <KbRS-422 status> RS-422 status: 0 = Disabled 1 = Enabled Example: To enable RS-422, enter <Kb1>. This command assumes the scanner is in RS-232 before RS-422 is enabled. If a multidrop address has been already assigned, the scanner will be in RS-485 communications, regardless of displayed RS-422 status.

Auxiliary Port Format: <Kymode,baud rate, parity,stop bits,data bits> baud rate: parity: stop bits: data bits: mode: 0 = Disabled 0 = 600 4 = 9600 0 = None 0 = One 0 = Seven 1 = Transparent 1 = 1200 5 = 19.2K 1 = Even 1 = Two 1 = Eight 2 = Half Duplex 2 = 2400 6 = 38.4K 2 = Odd 3 = Full Duplex 3 = 4800 4 = Daisy Chain Example: To enable Half Duplex and change the baud rate to 2400, enter <Ky2,2>.

Communications Status Request Format: <KG?1> Returns status of each command in the group. 1. See “Serial Configuration Command Format,” on page 3-3.

3-8

MS-7100/7180 Industrial Scanner User’s Manual

Page 77

Operations Commands

Operations Commands Triggering Mode Format: <Kgmode> mode: 0 = Continuous Read 1 = Continuous Read 1 Output 2 = External Level

3 = External Edge 4 = Serial Data 5 = Serial Data & Edge

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

End of Read Cycle

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

Serial Trigger Character

Format: <Kitrigger character> serial trigger character: Enter any available ASCII character (see table A-1 on page A-5). Default is ^]. Example: To define the Serial Trigger Character as a lowercase c, enter <Kic>.

External Trigger Polarity Format: <Kjpolarity> polarity: 0 = Negative 1 = Positive Example: To change External Trigger Polarity to Negative, enter <Kj0>. 1. Selecting a serial trigger character that is also an operational command will make that operational command unavailable, although the trigger will work. For example, an uppercase C cannot be used as a serial trigger character because it is the operational command for Enter Read Rate Test. However, a lowercase c could be used without interfering with the read rate test.

MS-7100/7180 Industrial Scanner User’s Manual

3-9

3–Serial Config.

Format: <Khend of read cycle, timeout> end of read cycle: timeout: 0 = Timeout When enabled, the default is one second. To change, enter a number between 0 and 65535. 1 = New Trigger 2 = Timeout & New Trigger (This number is in 10 ms increments and is derived by multiplying the desired number of seconds by 100.)

Page 78

Chapter 3

Serial Configuration

Noread Message Format: <Kkstatus,message> status: message: 0 = Disabled Any ASCII string up to 7 digits. Default is NOREAD. 1 = Enabled Example: To enable Noread Message and enter the message “FAIL,” enter <Kk1,FAIL>.

Bar Code Output Format: <Klstatus,when to output> when to output: status: 0 = As Soon As Possible 0 = Disabled 1 = Enabled 1 = End of Read Cycle Example: To set Bar Code Output to End of Read Cycle, enter <Kl1,1>.

3–Serial Config.

Good Decode Reads Format: <Kmnumber> number of reads: Any number from 1 to 31 Example: To change Number of Reads to 3, enter <Km3>.

Match Code Format: <Kntype,sequential matching,match start position,match length,wild card character,sequence on noread,sequence on every mismatch> type: 0 = Disabled 1 = Enabled 2 = Wild Card 3 = Sequential match length Default is 1. 1 to 31

3-10 sequential match start matching position 0 = Increment Default is 0 1 = Decrement 0 to 31 wild card character Default is *. Any ASCII character.

MS-7100/7180 Industrial Scanner User’s Manual

Page 79

Operations Commands sequence on noread: 0 = disabled 1 = enabled When disabled, the scanner does not sequence (increment or decrement) on a noread. When enabled, the scanner sequences on every noread. sequence on every mismatch:a 0 = disabled 1 = enabled When disabled, if a mismatch is out of sequence by no more than 1, then the sequence resumes and searches indefinitely.

If 001, 002, noread, then search for 003. If 001, 002, noread, then search for 004.

If 001, 002, 004 (mismatch), then search for 005.

When enabled, the scanner sequences on every mismatch.

Number of Labels Format: <KLnumber of labels,field separator> number of labels: field separator: 0 = One label 3 = Four labels Any ASCII character, except a NUL. Default is a comma (,). 1 = Two labels 4 = Five labels 2 = Three labels 5 = Six labels Example: To set Number of Labels to four labels with a dash (-) for a Field Separator, enter <KL3,->.

Trigger Filter Timing Value Format: <KF?> Returns the current trigger filter timing value in milliseconds. Format: <KFone tenth trigger filter timing value> Allows you to set trigger filter timing. Divide the desired number of milliseconds by 10 and enter the quotient.

Operations Status Request Format: <KG?2> Returns status of each command in the group.

MS-7100/7180 Industrial Scanner User’s Manual

3-11

3–Serial Config.

If 001, 002, mismatch, then search for 004. If mismatch occurs again, then search for 005, etc. Example: To enable Match Code Type for Sequential, set Sequential Matching for Decrement, and enable Sequence on Every Mismatch, enter <Kn2,1,,,,,1>.

Page 80

Chapter 3

Serial Configuration

Code Type Commands Narrow Margins/Symbology ID Format: <Konarrow margins status,symbology ID status> narrow margins status: 0 = Disabled 1 = Enabled symbology ID status: 0 = Disabled 1 = Enabled

Example: To enable Narrow Margins and Symbology ID, enter <Ko1,1>.

Code 39 Format: <Kpstatus,c/d status,c/d output,interchar gap,fixed length status,code length> status: check digit status: check digit output status: 0 = Disabled 0 = Disabled 0 = Disabled 1 = Enabled 1 = Enabled 1 = Enabled

3–Serial Config.

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

Example: To enable Code 39 and set Fixed Code Length to 30, enter <Kp1,,,,1,30> or <Kp1,0,0,0,1,30>.

Codabar Format: <Kqstatus,s/s status,s/s output,interchar gap,fixed length,code length> status: start & stop match start & stop status: output status: 0 = Disabled 0 = Disabled 0 = Disabled 1 = Enabled 1 = Enabled 1 = Enabled large interchar. gap status:0 = Disabled 1 = Enabled fixed code length status:code length: 0 = Disabled Any number from 1 to 31. Default is 10. 1 = Enabled

Example: To enable Codabar and set Fixed Code Length to 9, enter <Kq1,,,,1,9> or <Kq1,1,1,0,1,9>.

3-12

MS-7100/7180 Industrial Scanner User’s Manual