The text of a manual · part 25 of 42
DS/DD Series B Enhanced Bar Code Decoders User Manual (Bulletin 2755): 15 - ASCII Host Commands, pages 219 to 228
Pages 219 to 228 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 219
ASCII Host Commands
15–31
OH - Hold Output Open/Closed Command Format: OHnfftttt Function:
Allows the host to control the discrete outputs (regardless of their ”normal” state) for a set duration.➀ When the duration expires, the output reverts to its previous state. Note: If a normally open output is held open (or a normally closed output is held closed), the state of the output will not change.
!
ATTENTION: An output held open or closed will reestablish itself after a power loss (all other conditions will be deactivated if power is lost). A Restart command will deactivate a held output.
Parameters:
nfftttt
Command Parameters n ff tttt
Response:
Parameter Function
Valid Values
Discrete output number
1 through 8
Hold switch operation in open or closed state? Time (in milliseconds) that output remains in held state. When the time expires, the output returns to its previous state.
00= Hold Open➀ 11= Hold Close 0000, 0010 to 9999 (milliseconds) 0000 holds output in state until changed.
= rr <end> rr = response code <end> = end of message control code
➀ A duration of 0000 holds the specified output in the programmed state until it is changed with host command or via the AUX terminal configuration screens. The condition field on the AUX will display Open or Closed.
Publication 2755-833
Page 220
15–32
ASCII Host Commands
OH - Hold Output Open/Closed (continued) Example: Command:
OH2001000
Parameters:
2001000
Command Parameters n
Discrete output number
2 ff
State of discrete output
00= Hold Open tttt
Time (in milliseconds) that output remains held open.
1000 milliseconds
Response:
Parameter Function
Values
= 00CR 00 = command complete response code CR = end of message control code for Carriage Return
Publication 2755-833
Page 221
ASCII Host Commands
15–33
MR - Read Primary Match Code Table Entry Command Format: MRn Function:
Read match code configuration for table entry 1 – 8.
Parameters:
n = match code table entry number 1 through 8.
Command Parameters n
Parameter Function
Valid Values
Match code table entry number
1 through 8
RESERVED
1① cc
Bar code symbology
01=Code 39 02=Interleaved 2 of 5 03=Codabar 04=UPC-A 05=UPC-E 06=EAN-8 07=EAN-13 08=Code 128 09=Pharma–Code 16=Any ll
Length of match string
00 to 32
Match string up to 32 characters f string
① This value is always returned as 1.
nfccllstring<end> = rr <end>
Response:
<end> = end of message control code rr = response code <end> = end of message control code Example: Command:
MR3
Parameters:
3 = match code entry #3
Command Parameters n
Parameter Function
Values
Match code table entry number
3 f
RESERVED
1① cc
Bar code symbology
01=Code 39 ll
Length of match string
05
Match string
12345 string
① This value is always returned as 1.
Response:
31010512345CR = 00CR CR = end of message control code 00 = command complete response code CR = end of message control code
Publication 2755-833
Page 222
15–34
ASCII Host Commands
MW - Write Primary Match Code Table Entry Command Format: MWnfccllstring Function:
Configure a match code for table entry 1 – 8.
Parameters:
nfccllstring
Command Parameters n
Parameter Function
Valid Values
Match code table entry number
1 through 8
RESERVED
Ignored① cc
Bar code symbology
01=Code 39 02=Interleaved 2 of 5 03=Codabar 04=UPC-A 05=UPC-E 06=EAN-8 07=EAN-13 08=Code 128 09=Pharma–Code 16=Any ll
Length of match code string
00 to 32②
Match code characters up to 32 characters③ f string
① Decoder ignores character but it must be supplied to maintain compatibility with previous decoders. ② A zero length string disables a match code entry. A nonzero length string enables the match code entry. ③ The string must be as long as the specified string length (ll).
Response:
= rr <end> rr= response code <end> = end of message control code
Publication 2755-833
Page 223
ASCII Host Commands
15–35
MW - Write Primary Match Code Table Entry (continued) Example: Command:
MW4102041289
Parameters:
4102041289
Command Parameters n
Parameter Function
Values
Match code table entry number
4 f
RESERVED
1 cc
Bar code symbology
02=Interleaved 2 of 5 ll
Length of match string
04
Match string
1289 string
Response:
= 00LF 00 = command complete response code LF = end of message control code for Line Feed
CM - Clear Primary Output Counters Command Format: CMn Function:
Clears the selected output counter to 0.
Parameters:
n = output counter number 1 through 8
Response:
= rr <end> rr = response code <end > = end of message control code
Example: Command:
CM3
Parameters:
3 = output counter #3.
Response:
= 00CR 00= command complete response code CR = end of message control code for Carriage Return
Publication 2755-833
Page 224
15–36
ASCII Host Commands
CO - Clear All Primary Output Counters Command Format: CO Function:
Clears the Primary Counters to zero.
Parameters:
None
Response:
= rr <end> rr = response code <end>= end of message control code
Example: Command:
CO
Response:
= 00CR 00 = command complete response code CR = end of message control code for Carriage Return
CA - Clear Extended Match Counters Command Format: CA Function:
Clears the value of the extended counts to zero.
Parameters:
None
Response:
= rr <end> rr = response code <end> = end of message control code
Example: Command:
CA
Response:
= 00CR 00 = command complete response code CR = end of message control code for Carriage Return
Publication 2755-833
Page 225
ASCII Host Commands
15–37
SE - Set Extended Match Counters Command Format: SEnnnmmmmmm Function:
Sets the value of extended count number nnn to mmmmmm.
Parameters:
nnnmmmmmm
Command Parameters nnn mmmmmm
Parameter Function
Valid Values
The number of the Extended match count The value of the count
001 to 128 000 = All 000000 to 999999
= rr <end>
Response:
rr = response code <end> = end of message control code Example: Command:
SC012000036
Parameters:
012
Command Parameters nnn mmmmmm
Response:
Parameter Function The number of the Extended match count. The value of the count
Values 012 000036
= 00CR 00 = command complete response code CR = end of message control code for Carriage Return.
Publication 2755-833
Page 226
15–38
ASCII Host Commands
RC - Read Extended Match Counters Command Format: RCnnn Function:
Reads the value of Extended count number nnn.
Parameters:
nnn
Command Parameters
Parameter Function The number of the Extended match count nnn
Valid Values 001 to 128
= mmmmmm <end>
Response:
mmmmmm = count value <end> = end of message control code Example: Command:
RC012
Parameters:
012
Command Parameters nnn
Response:
Parameter Function The number of the Extended match count.
Values 012
= 000036CR 000036 = value of counter 12 CR = end of message control code for Carriage Return.
Publication 2755-833
Page 227
ASCII Host Commands
15–39
SM - Set Extended Match Data Command Format: SMnnnasccmmmmmmddddddddllstring Function:
Sets the value of the Extended data number nnn.
Parameters:
nnnasccmmmmmmddddddddllstring
Command Parameters nnn a
Parameter Function
Valid Values
The number of the Extended match count
000 to 128
Mode
A=Auto-load M=Match Entry D=Disabled L=Lot s
Source cc symbology
1=Scanner A 2=Scanner B 3=A|B 4=Illegal 5=A–B 01=Code 39 02=Interleaved 2-of-5 03=Codabar 04=UPC-A 05=UPC-E 06=EAN-8 07=EAN-13 08=Code 128 09=Pharma–Code 16=Any mmmmmm
The value of the count
000000 to 999999 dddddddd
Loading (8)
0 to 9, or X
Length of match string
00 to 32
Match string up to 32 characters ll string
Response:
= rr <end> rr = response code <end>= end of message control code
Publication 2755-833
Page 228
15–40
ASCII Host Commands
SM - Set Extended Match Data (continued) Example: Command:
SM002M30100000010000000041289
Parameters:
002 M 3 01 000000 10000000 04 1289
Command Parameters
Parameter Function
Valid Values a
The number of the Extended match count Mode s
Source
3=A|B cc nnn
002 M = Match Entry
Symbology
01=Code 39 mmmmmm
The value of the count
000000 dddddddd
Loading (8)
10000000
Length of match string
04
Match string
1289 ll string
Response:
= 00CR 00 = command complete response code CR = end of message control code for Carriage Return.
Publication 2755-833