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 41 of 46

QX Hawk Industrial Imager User Manual, pages 401 to 410

Pages 401 to 410 of 460

The original document is the PDF (10 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 QX Hawk 6801

Page 401

Appendices

Appendix F, Protocol Commands Communication 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

QX Hawk Industrial Imager User Manual

A-85

Page 402

Protocol Commands

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

A-86

QX Hawk Industrial Imager User Manual

Page 403

Appendices

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

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

QX Hawk Industrial Imager User Manual

A-87

Page 404

Protocol Commands

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

A-88

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

QX Hawk Industrial Imager User Manual

Page 405

Appendices

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 ‘!’

QX Hawk Industrial Imager User Manual

A-89

Page 406

Protocol Commands

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)

A-90

QX Hawk Industrial Imager User Manual

Page 407

Appendices

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.

QX Hawk Industrial Imager User Manual

A-91

Page 408

Protocol Commands

Setup 2 Address RES REQ STX ETX ACK NAK LRC

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

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’ ‘LRC’ ‘0x1D’ ‘ACK’ (Unit responds with its address) ‘RES’ (Terminate Transfer 2)

Transfer 2 HOST_TX imager_TX imager_TX HOST_TX

‘RES’ ‘0x1C’ ‘REQ’ (Poll Unit 1 for data) ‘0x1C’ ‘STX’ <T/00000> ‘ETX’ ‘LRC’ ‘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’ ‘LRC’ 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)

A-92

QX Hawk Industrial Imager User Manual

Page 409

Appendices

Error Condition 2 HOST_TX ‘RES’ ‘0x1C’ ‘REQ’ (Poll Unit 1 for data) imager_TX ‘0x1C’ ‘STX’ <T/00000> ‘ETX’ ‘LRC’ 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’ ‘LRC’ (Unit sends again) HOST_TX ‘ACK’ (Host receives data) imager_TX ‘RES’ (Terminate Transfer 1)

Error Condition 3 HOST_TX imager_TX HOST_TX (Retry Event) imager_TX HOST_TX imager_TX

‘RES’ ‘0x1C’ ‘REQ’ (Poll Unit 1 for data) ‘0x1C’ ‘STX’ <T/00000> ‘ETX’ ‘BAD LRC’ ‘NAK’ (Host rejects bad LRC data) ‘0x1C’ ‘STX’ <T/00000> ‘ETX’ ‘GOOD LRC’ (Unit sends again) ‘ACK’ (Host receives data) ‘RES’ Terminate Transfer 1)

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

QX Hawk Industrial Imager User Manual

A-93

Page 410

ASCII Table

Appendix G, ASCII Table Dec 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

A-94

Hex 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F

Mne NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US

Ctrl ^@ ^A ^B ^C ^D ^E ^F ^G ^H ^I ^J ^K ^L ^M ^N ^O ^P ^Q ^R ^S ^T ^U ^V ^W ^X ^Y ^Z ^[ ^\ ^] ^^ ^_

Dec 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63

Hex 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F

Ch SP ! “ # $ % & ' ( ) * + , . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ?

Dec 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95

Hex 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F

Ch @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _

Dec 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127

Hex 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F

Ch ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ D

QX Hawk Industrial Imager User Manual