Character Encoding Syntax - Honeywell E-Class Series User Manual

Table of Contents

Advertisement

Result
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 S01GS...EOT<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.
Syntax
xaa[bbcc...nn]x
Parameters
Where:
 
x - One byte delimiter, 0 to ff16, leading and trailing
l
 
aa - 2 bytes, ASCII, hexadecimal encoded, range each character: 0 - 9, A - F
l
 
bb - 2 bytes, ASCII, hexadecimal encoded, range each character: 0 - 9, A - F
l
(optional)
 
cc - 2 bytes, ASCII, hexadecimal encoded, range each character: 0 - 9, A - F
l
(optional)
 
nn - 2 bytes, ASCII, hexadecimal encoded, range each byte: 0 - 9, A - F (optional)
l
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
AB\\CE
51
Interpretation
5 bytes AB\CE with values 41
, 42
, 5C
, 43
, 44
16
16
16
16
DPL  Command Reference
16

Advertisement

Table of Contents
loading

Table of Contents