Extended System-Level Command Functions
104
Class Series 2 Programmer’s Manual
The sample above disables, and then enables character encoding
with the backslash (
\
) as the delimiter. A UPS MaxiCode will be
formatted using a data string interpreted as follows:
[)>
R
S
01
G
S
...
E
O
T
<CR>
then formatting is terminated.
Character Encoding Syntax:
This syntax requires at least two hexadecimal ASCII
digits (
0-9, A-F
) delimited by the character specified in the
<STX>KE
command. The
number of hexadecimal digits between the delimiter pair must be even; see notes below.
Syntax:
xaa[bbcc…nn]x
Where:
x
- One byte delimiter, 0 to ff
16
, leading and trailing.
aa
- 2 bytes, ASCII, hexadecimal encoded, range each
character – 0-9, A-F
bb
- 2 bytes, ASCII, hexadecimal encoded, range each
character – 0-9, A-F (optional)
cc
- 2 bytes, ASCII, hexadecimal encoded, range each
character – 0-9, A-F (optional)
nn
- 2 bytes, ASCII, hexadecimal encoded, range each byte –
0-9, A-F (optional)
•
A delimiter pair with no ASCII hexadecimal pairs between (e.g.,
\\
) will be
interpreted as one byte whose value is that of the delimiting character, allowing the
assigned delimiter to be interpreted as itself rather than as the delimiter.
•
A delimited string that contains either a non-valid hexadecimal character (e.g., FX) or
an odd number of bytes will be treated as an illegal string and, therefore, not
correctly decoded.
Character Encoding Examples:
In the following partial datastreams it is assumed that
character encoding is enabled and that the selected delimiter, a backslash (
\
), has been
transmitted to the printer (i.e.,
<STX>KEY\
). In each example, the printer has not
received an unpaired delimiter prior the example.
Partial Sample Data Stream
Interpretation
AB\\CE
5 bytes AB\CE with values 41
16
, 42
16
, 5C
16
, 43
16
, 44
16
\ABCDEF\
3 bytes with values AB
16
, CD
16
, and EF
16
1A\1A\1A
5 bytes 1A<SUB>1A with values 31
16
, 41
16
, 1A
16
,
31
16
, 41
16
. <SUB> represents a single-byte ASCII
control character with value 1A
16
Alternate Control Codes with an Alternate Line Terminator:
Character Encoding
can also be used with the Alternate Control Character set. Alternate Control Characters
are enabled, depending upon the model, via a Setup Menu or the
<STX>KD / <STX>Kc
commands; see Control Code Command Functions.
Содержание A-Class
Страница 2: ......
Страница 3: ......
Страница 5: ......
Страница 6: ......
Страница 22: ...Overview 8 Class Series 2 Programmer s Manual ...
Страница 30: ...Immediate Command Functions 16 Class Series 2 Programmer s Manual ...
Страница 138: ...Extended System Level Command Functions 124 Class Series 2 Programmer s Manual ...
Страница 160: ...Label Formatting Command Functions 146 Class Series 2 Programmer s Manual ...
Страница 180: ...Generating Label Formats 166 Class Series 2 Programmer s Manual ...
Страница 192: ...Appendix B Sample Programs 178 Class Series 2 Programmer s Manual ...
Страница 200: ...Appendix D Reset Codes 186 Class Series 2 Programmer s Manual ...
Страница 212: ...Appendix E Single Byte Symbol Sets 198 Class Series 2 Programmer s Manual ...
Страница 264: ...Appendix G Bar Code Details 250 Class Series 2 Programmer s Manual ...
Страница 284: ...Appendix J General Purpose Input Output Port Applications 270 Class Series 2 Programmer s Manual ...
Страница 296: ...Appendix O UPC A and EAN 13 Variable Price Weight Bar Codes 282 Class Series 2 Programmer s Manual ...
Страница 308: ...Appendix Q Plug and Play IDs 294 Class Series 2 Programmer s Manual ...
Страница 312: ...Appendix R Line Mode 298 Class Series 2 Programmer s Manual ...
Страница 324: ...Appendix T WiFi Region Country Codes 310 Class Series 2 Programmer s Manual ...
Страница 328: ...Appendix U Display Icon Key and Control Panel Button Sequence Functions 314 Class Series 2 Programmer s Manual ...
Страница 334: ......