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 35 of 37

MS-4 Imager User Manual, pages 341 to 350

Pages 341 to 350 of 366

The original document is the PDF (4.2 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-4

Page 341

Appendices Camera and IP Setup IP Threshold Mirrored Image Window of Interest Hollow Mode Number of Symbols in Field of View Damaged Symbol Focal Distance Focal Distance Table IP Mode Illumination Brightness Camera Configuration Database Number of Active Indexes Configuration Database Status

Save Current Settings to Database Load Current Settings from Database Request Selected Index Settings Request All Database Settings Database Mode Output Format Format Extract Format Insert Format Assign Output Format Status Output Filter Configuration Ordered Output Filter

MS-4 Imager User Manual

<K512,threshold mode,fixed threshold value> <K514,mirrored image> <K516,row pointer,column pointer,row depth,column width> <K517,hollow mode status> <K518,number of symbols in field of view> <K519,damaged symbol status> <K525,focal distance (read only)> <K526,number of focal distances,focal distance> <K527,IP Mode,FLM direction> <K536,brightness> <K541,shutter speed,gain> <K252,number of active database settings,database sort> <K255,index,shutter speed,gain,focal distance,digital zoom,row pointer,column pointer,row depth, column width,threshold mode,fixed threshold value,processing mode,background color, narrow margins,symbology type> <K255+,index> <K255-,index> <K255?,index> <K255?> <K256,switch mode,frame count/time,image process looping,image dimensions> <K740,output index,start location,length> <K741,output index,length,hex string> <K742,symbol number,status> <K743,output format status> <K744,filter number,symbology type,length,wildcard,placeholder, data,unused,database index> <K745,number of filters>

A-9

Page 342

Communication Protocol Commands

Serial Command Format Serial commands are of two types: utility and configuration.

Rules that apply to both utility and configuration commands • A less than < and greater than > character enclose the commands. • Commands and data are “case sensitive.” That is, characters must be entered as upper or lower case, as specified.

Serial Utility Commands These are sent during operations and are not followed by <A> or <Z>.

Serial Configuration “K” Commands These begin with a single “K” character followed by a 3-digit numeric character, data fields, and an initializing command, as follows: <Knumeric parameter,data,data,...etc.><initializing command> An initializing command <A> or <Z> may follow the command. A <Z> initializes the Imager’s memory and saves for power-on; an <A> initializes the Imager’s memory but does not save for power-on. For example, to enable UPC and save the change for power-on, send <K473,1><Z>. To change Baud Rate and reset without saving changes for power-on, send <K100,3><A>.

Serial Configuration Command Conventions • All data fields (except the last) must be followed by a comma (without a space). • NUL cannot be used. The characters <, >, and , can be used, but only if entered as hex pairs (see ASCII Character Entry Modifier on page 3-32). • All fields preceding a modified field must be included. • If there is no change in preceding fields, then commas alone can be entered in these fields. For example, if only the last field in the following command is changing, <K100,4,1,0,0> can be entered as <K100,,,,0>. • All fields following a modified field can be omitted. For example, to change Baud Rate only, send <K100,3>.

Concatenating Configuration Commands Commands can be concatenated (added together) in a single string or data block. For example, <K145,1><K220,1><K450,1><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).

Serial Command Status Request To ensure that any command was received and accepted, you can send the Show Reader Status command: <?>. The status of a specific serial command can be requested by entering the command followed by a question mark. For example, send <K142?> to request the status of Postamble. A-10

MS-4 Imager User Manual

Page 343

Appendices

Entering Control Characters in Serial Commands To enter control characters within a serial command, hold down the Ctrl key while typing the desired character. Example: To enter a carriage return and line feed (^M^J), enter <K141,1,CNTL-m CNTL-j>

MS-4 Imager User Manual

A-11

Page 344

Communications Protocol

Appendix D, Communications Protocol Communications Protocol Command Table Protocol Command (Mnemonic displayed on menu)

Control Characters (Entered in menu or serial command)

Hex Value

Effect of Command

RES

^D

04

Reset

REQ

^E

05

Request

EOT

^D

04

Reset

STX

^B

02

Start of Text

ETX

^C

03

End of Text

ACK

^F

06

Acknowledge

NAK

^U

15

Negative Acknowledge

XON

^Q

11

Begin Transmission

XOFF

^S

13

Stop Transmission

A-12

MS-4 Imager User Manual

Page 345

Appendices

ACK / NAK Data Flow Examples Setup 1 RES REQ STX ETX ACK NAK LRC

0x00 (disabled) 0x00 (disabled) 0x00 (disabled) 0x00 (disabled) 0x06 0x15 disabled

Transfer 1 HOST_TX IMAGER_TX

<K141,0> ‘ACK’

Transfer 2 HOST_TX IMAGER_TX IMAGER_TX HOST_TX

<K141?> ‘ACK’ <K141,0> ‘ACK’

Error Condition Transfer 1 IMAGER_TX HOST_TX IMAGER_TX HOST_TX symbol data ‘NAK’ (host rejects) symbol data (resend data) ‘ACK’ (transaction complete)

Transfer 2 HOST_TX <K141?> IMAGER_TX ‘ACK’ IMAGER_TX <K141,0> timeout reached... timeout reached... timeout reached... Timeout Reached transaction aborted, data is flushed

MS-4 Imager User Manual

A-13

Page 346

Communications Protocol

Setup 2 RES REQ STX ETX ACK NAK LRC

0x00 (disabled) 0x00 (disabled) 0x00 (disabled) 0x00 (disabled) 0x06 0x15 enabled

Transfer 1 HOST_TX IMAGER_TX

<K141,0>a ‘ACK’

Transfer 2 HOST_TX IMAGER_TX IMAGER_TX HOST_TX

<K141?>B ‘ACK’ <K141,0>a ‘ACK’

Error Condition Transfer 1 HOST_TX IMAGER_TX HOST_TX IMAGER_TX

A-14

<k141,0>x (BAD LRC) ‘NAK’ <K141,0>a (GOOD LRC) ‘ACK’

MS-4 Imager User Manual

Page 347

Appendices

Setup 3 RES REQ STX ETX ACK NAK LRC

0x00 (disabled) 0x00 (disabled) 0x28 ‘(‘ 0x29 ‘)’ 0x06 0x15 enabled

Transfer 1 HOST_TX IMAGER_TX

(<K141,0>)H ‘ACK’

Transfer 2 HOST_TX IMAGER_TX IMAGER_TX HOST_TX

(<K141?>)k ‘ACK’ (<K141,^M>)w ‘ACK’

MS-4 Imager User Manual

A-15

Page 348

Communications Protocol

Setup 4 RES REQ STX ETX ACK NAK LRC

0x21 ‘!’ 0x3D ‘=’ 0x28 ‘(‘ 0x29 ‘)’ 0x06 0x15 enabled

Transfer 1 HOST_TX IMAGER_TX

(<K141,0>)H ‘ACK’

Transfer 2 HOST_TX IMAGER_TX HOST_TX IMAGER_TX HOST_TX IMAGER_TX

(<K100?>)n ‘ACK’ ‘!’ (<K100,8,0,0,1>)X ‘ACK’ ‘!’

Error Condition Transfer 1 HOST_TX (<K141,0>)H IMAGER_TX ‘ACK’ HOST_TX (<K100?>)n IMAGER_TX ‘ACK’ HOST_TX ‘!’ IMAGER_TX (<K100,8,0,0,1>)X timeout reached... IMAGER_TX ‘=’ timeout reached... IMAGER_TX ‘=’ timeout reached... IMAGER_TX ‘=’ timeout reached... IMAGER_TX ‘!’

A-16

MS-4 Imager User Manual

Page 349

Appendices

Polling Mode Data Flow Examples Setup 1 Address RES REQ STX ETX ACK NAK LRC

0x01 (translates to) Poll Req @ ‘0x1C’, Unit Select @ ‘0x1D’ 0x04 0x05 0x02 0x03 0x06 0x15 disabled

Transfer 1 HOST_TX IMAGER_TX HOST_TX IMAGER_TX HOST_TX

‘RES’ ‘0x1D’ ‘REQ’ (Select Unit 1 to receive data) ‘0x1D’ ‘ACK’ (Unit responds with its address) ‘STX’ <T> ‘ETX’ ‘0x1D’ ‘ACK’ (Unit responds with its address) ‘RES’ (Terminate Transfer 2)

Transfer 2 HOST_TX IMAGER_TX HOST_TX IMAGER_TX

‘RES’ ‘0x1C’ ‘REQ’ (Poll Unit 1 for data) ‘0x1C’ ‘STX’ <T/00000> ‘ETX’ ‘ACK’ ‘RES’ (Terminate Transfer 1)

Starting with a ‘RES’ ensures a clean transaction, without “leftovers” from the previous transaction.

Error Condition 1 HOST_TX ‘RES’ ‘0x1C’ ‘REQ’ (Poll Unit 1 for data) IMAGER_TX ‘0x1C’ ‘STX’ <T/00000> ‘ETX’ HOST_TX ‘Nothing’ (Host should ‘ACK’ here) timeout reached... IMAGER_TX ‘REQ’ (Unit requests an ‘ACK’ again) timeout reached... IMAGER_TX ‘REQ’ (Unit requests an ‘ACK’ again) timeout reached... IMAGER_TX ‘REQ’ (Unit requests an ‘ACK’ again) timeout reached... IMAGER_TX ‘RES’ (Terminate Transfer 1, data is flushed) MS-4 Imager User Manual

A-17

Page 350

Communications Protocol

Error Condition 2 HOST_TX ‘RES’ ‘0x1C’ ‘REQ’ (Poll Unit 1 for data) IMAGER_TX ‘0x1C’ ‘STX’ <T/00000> ‘ETX’ HOST_TX ‘Nothing’ (Host should ‘ACK’ here) timeout reached... IMAGER_TX ‘REQ’ (Unit requests an ‘ACK’ again) HOST_TX ‘NAK’ (Host rejects data frame) (Retry Event) IMAGER_TX ‘0x1C’ ‘STX’ <T/00000> ‘ETX’ (Unit sends again) HOST_TX ‘ACK’ (Host receives data) IMAGER_TX ‘RES’ (Terminate Transfer 1)

The protocol makes 3 retry attempts before data is flushed and transfer is aborted.

A-18

MS-4 Imager User Manual