The text of a manual · part 27 of 42
DS/DD Series B Enhanced Bar Code Decoders User Manual (Bulletin 2755): 15 - ASCII Host Commands, pages 239 to 248
Pages 239 to 248 of 361, from DS/DD Series B Enhanced Bar Code Decoders User Manual (Bulletin 2755)
The original document is the PDF (1.4 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 Allen-Bradley 2755-DD and Allen-Bradley 2755-DS
Page 239
ASCII Host Commands
15–51
SR - Set Search and Replace Rule for Host Message Fields (continued) Example: Command:
SR02013010009004807^S(.*)$02\1
Parameters:
02 01 3 01 00 09 0 048 07 ^S(.*)$ 02 \1
Command Parameters
Values mm
The number of the Search and Replace Rule The host message field number s
Source
3=A|B nn
02 01 cc
Symbology
01=Code 39 bb
Symbol number
00=All ff
Minimum field length
09 a
Alignment
0=Right ppp
Fill character
048=0 ll
Length of search pattern string
07
Search pattern string
^S(.*)$
Length of replace pattern string
02
Replace pattern string
\1
String ll String
Response:
Parameter Function
= 00CR 00 = command complete response code CR = end of message control code for Carriage Return.
Publication 2755-833
Page 240
15–52
ASCII Host Commands
SF - Set No-Read Replacement Strings Command Format: SFnnllstring Function:
Set the No-Read Replacement Strings.
Parameters:
nnllstring
Command Parameters nn ll String
Parameter Function The number of the No-Read Replacement String Length of the No-Read Replacement String No-Read Replacement String
Valid Values 01 to 16 00=Empty or 01 to 24 up to 24 characters
= rr <end>
Response:
rr = response code <end> = end of message control code Example: Command:
SF0207No–Read
Parameters:
02 07 No–Read
Command Parameters nn ll String
Response:
Parameter Function The number of the No-Read Replacement String Length of the No-Read Replacement String No-Read Replacement String
Values 02 07 No–Read
= 00CR 00 = command complete response code CR = end of message control code for Carriage Return.
Publication 2755-833
Page 241
ASCII Host Commands
15–53
HC - Configure Host Communications Command Format: HCaaannnssspppfr Function:
Configures host communication parameters.
Parameters:
aaannnssspppfr
Command Parameter
Response:
Parameter Function
Valid Values aaa
ASCII decimal value ACK (Acknowledge) character 000 to 254 255 = None nnn
NAK character (Negative Acknowledgement)
ASCII decimal value 000 to 254 255 = None sss
Start scan character A
ASCII decimal value 000 to 254 255 = None ppp
Stop scan character A
ASCII decimal value 000 to 254 255 = None f
Large buffer enable
1=Yes, 0=No r
Send Message to Host
0 = At end of Trigger 1= Immediately after Valid Package
= rr <end> rr = response code <end> = end of message control code
Publication 2755-833
Page 242
15–54
ASCII Host Commands
HC - Configure Host Communications (continued) Example: Command:
HC03603703504311
Parameters:
03603703504311
Response:
Command Parameter aaa
ACK character
036 = $ character nnn
NAK character
039 = & character sss
Start character for Scanner A
035 = # character ppp
Stop character for Scanner A
043 = + character f
Large buffer enable
1=Yes r
Send Message to Host
1=Immediately after Valid Package
Parameter Function
Values
= 00CR 00 = command complete response code CR = end of message control code for Carriage Return
Publication 2755-833
Page 243
ASCII Host Commands
15–55
HB - Configure Scanner B Start & Stop Characters➀ Command Format: HCsssppp Function:
Configures Scanner B start and stop characters for independent host triggering.
Parameters:
sssppp
Command Parameter
Parameter Function
Valid Values sss
Start character for Scanner B
ASCII decimal value 000 to 254 255 = None ppp
Stop character for Scanner B
ASCII decimal value 000 to 254 255 = None
= rr <end>
Response:
rr = response code <end> = end of message control code Example: Command:
HB035043
Parameters:
035043
Response:
Command Parameter sss
Start character for Scanner B
035 = # character ppp
Stop character for Scanner B
043 = + character
Parameter Function
Values
= 00CR 00 = command complete response code CR = end of message control code for Carriage Return
①
Implemented in Series B Revision C (and later) decoders.
Publication 2755-833
Page 244
15–56
ASCII Host Commands
MF - Configure Host Message Format Command Format: MFabcdefghhhiiijkl Function:
Configures the format of messages sent to the host.
Parameters:
abcdefghhhiiijkl a through g are Yes (1) and No (0) responses to the following parameters (in sequence shown):
Command Parameters a
Send bar code data?
1=Yes, 0=No b
Send package count?
1=Yes, 0=No c
Send bar code symbology?
1=Yes, 0=No d
Send source identifier?
Ignored① e
Send header message?
Ignored①
Parameter Function
Valid Values f
Send no-read message?
Ignored① g
Expand UPC-E?
1=Yes, 0=No hhh
Label delimiter character
ASCII Decimal Value 000 to 254 255 = None.
iii
Start character
ASCII Decimal Value 000 to 254 255 = None.
j
End message control character k
Transmission check method l
Send performance indicator?
0 = CRLF 1 = CR 2 = LF 3 = ETX 4 = None 5 = CR ETX 6 = LF ETX 7 = CR LF ETX 0=None 1=LRC 2=Checksum-LSB first 3=Checksum-MSB first 1=Yes, 0=No
① These parameters retained for compatibility with existing decoders. The presence of each string type indicates that the string should be sent.
Response:
= rr <end> rr = response code <end>= end of message control code
Publication 2755-833
Page 245
ASCII Host Commands
15–57
MF - Configure Host Message Format (continued) Example: Command:
MF1101110094042100
Parameters:
1101110094042100
Response:
Command Parameters a
Send bar code data?
1=Yes b
Send package count?
1=Yes
Parameter Function
Values c
Send bar code symbology?
0=No d
Send source identifier?
Ignored① e
Send header message?
Ignored① f
Send no-read message?
Ignored① g
Expand UPC-E?
0=No hhh
Label delimiter character
094 = ^ character iii
Start character
042 = * character j
End message control character
1 = CR k
Transmission check method
0 = None l
Send performance indicators?
0 = No
= 00CR 00 = command complete response code CR= end of message control code for Carriage Return
Publication 2755-833
Page 246
15–58
ASCII Host Commands
HF - Set the Number of Fields in Host Message Command Format: HFnn Function:
Sets the number of fields in the host message.
Parameters:
nn
Command Parameter nn
Parameter Function Set the number of fields in host message
Valid Values 00 to 16, 00 = All
= rr <end>
Response:
rr = response code <end> = end of message control code Example: Command:
HF02
Parameters:
02
Command Parameter nn
Response:
Parameter Function Set the number of fields in host message
Valid Values 02
= 00CR 00= command complete response code CR= end of message control code for Carriage Return
Publication 2755-833
Page 247
ASCII Host Commands
15–59
IX - Configure AUX Terminal Source Identifier Command Format: IXlstring Function:
Defines a source identifier for the AUX port terminal. Source identifiers are included in messages sent to the host. They identify whether the data was scanned (by Scanner A or B) or entered at the AUX terminal. Note: This command only applies when the AUX port is set for manual data entry operations.
Parameters:
lstring
Command Parameter l String
Parameter Function
Valid Values
Length of source identifier
0 to 4①
Characters in source identifier
Up to 4 characters
① A zero length string will disable the source identifier.
= rr <end>
Response:
rr = response code <end> = end of message control code Example: Command:
IX3AUX
Parameters:
AUX
Command Parameter l String
Response:
Parameter Function
Values
Length of source identifier
3
Characters in source identifier
AUX
= 00LF 00= command complete response code LF= end of message control code for Line Feed
Publication 2755-833
Page 248
15–60
ASCII Host Commands
IM - Configure Scanner A Source Identifier Command Format: IMlstring Function:
Defines a source identifier for Scanner A. Source identifiers are included in messages sent to the host. They identify whether the data was scanned (by Scanner A or B) or entered at the AUX terminal. NOTE: This command is valid only for dual head decoders.
Parameters:
lstring
Command Parameter l string
Parameter Function
Valid Values
Length of source identifier
0 to 4①
Characters in source identifier
Up to 4 characters
① A zero length string will disable the source identifier.
= rr <end>
Response:
rr= response code <end> = end of message control code Example: Command:
IM4SCNA
Parameters:
4SCNA
Command Parameter l String
Response:
Parameter Function
Values
Length of source identifier
4
Characters in source identifier
SCNA
= 00LF 00 = command complete response code LF = end of message control code for Line Feed
Publication 2755-833