LINKS
LINKS
Command Syntax
Announcer: Stephen Time: 30th Jul 2021
Share to :
MORE
1370 views 0 comments

•        Command Syntax
Prefix Storage Tag SubTag {Data} [, SubTag {Data}] [; Tag SubTag {Data}] […] ; Suffix
Among which, {data} means integrant while [data] means optional data.

Part

Item

content

Remark

1

Prefix

“~<SOH>0000” : (HEX: 7E 01 30 30 30 30)

Fixed 6 characters

2

StorageType

“@” or “#”,1 character.

“@” means permanent setting which will not be lost by removing power from the scanner
or rebooting it;

“#” means temporary setting which will be lost by removing power from the scanner or rebooting it.

3

Tag

A 3-character case-sensitive field that identifies the desired command group

For example, the Tag for the Enable Code
11 is C11

4

SubTag

A 3-character case-sensitive field that identifies the desired parameter within the tag group

For example, the
SubTag for the Enable Code 11 is ENA

5

Data

The value for a feature or parameter setting, identified by the Tag and SubTag

For example, the Data for the Enable
Code 11 is 1

6

Suffix

“;<ETX>” (HEX: 3B 03),

Fixed 2 characters

•        Responses
Different from command sequence, the prefix of a response consists of the six characters of “<STX><SOH>0000” (HEX: 02 01 30 30 30 30).
When responding, the scanner echoes back the command sequence with the status character above inserted directly before
each of the punctuation marks (the comma or semicolon) in the command

Item

content

<ACK>         (HEX: 06)

Indicates a good command which has been processed

<NAK>         (HEX: 15)

Indicates a good configuration command with its Data
field entry out of the allowable range for this Tag and
SubTag combination

<ENQ>         (HEX: 05)

Indicates an invalid Tag or SubTag command

 


 

•        Example


Example 1: Enable Code 11, set minimum length as 12 and maximum length as 22
Enable Code 11
Tag: C11
SubTag: ENA
Data: 1
Set the Minimum Length ( Default 4) Set the Maximum Length ( Default 48)
SubTag: MIN SubTag: MAX
Sending:
HEX: 7E 01 30 30 30 30 40 43 31 31 45 4E 41 31 2C 4D 49 4E 31 32 2C 4D 41 58 32 32 3B 03
ASCII: ~<SOH>0000@C11ENA1,MIN12,MAX22;<ETX>
Response:
HEX: 02 01 30 30 30 30 40 43 31 31 45 4E 41 31 06 2C 4D 49 4E 31 32 06 2C 4D 41 58 32 32 06 3B 03
ASCII: <STX><SOH>0000@C11ENA1<ACK>,MIN12<ACK>,MAX22<ACK>;<ETX>

All comments (0)
POPULAR TAGS