Defining The Control Characters Packet - Avery Dennison ADTP1 Reference Manual

Monarch tabletop printer 1
Hide thumbs Also See for ADTP1:
Table of Contents

Advertisement

D e f i n i n g t h e C o n t r o l C h a r a c t e r s P a c k e t
Use the control characters packet (E) to change the MPCLII control characters, enable and
disable the immediate commands, and change the default terminator character for job requests
and ENQs.
Changes take effect with the first character following the end of header character of the
configuration packet. Each control character must be unique and cannot appear anywhere else in
a packet, except within quotation marks. Customize the trailer characters to work with the host.
Note:
Wait two seconds for the new characters to take effect before sending packets using the
new characters.
If using symbol set 110 (Unicode UTF-8) to print International characters, set the MPCL control
characters (start of header, etc.) to decimal values between 0 and 128; otherwise, errors may
occur with the Unicode data entered.
Use the following syntax for the control characters packet. Notice all but the first parameter is
within quotation marks.
Syntax
{I,E,"ANSI_cd","string1","string2" | }
E1. E
E2. "ANSI_cd"
E3. "string 1"
E4. "string 2"
After changing these parameters, all packets, including any future configuration packets, must
use the new control characters. Use the tilde and ASCII character code sequence when sending
this packet multiple times. Also, set the packet delimiters to characters within the 21 hex to 7E
hex range.
Send the control characters packet to enable the immediate commands. An immediate command
executes immediately, even if it is embedded within quotation marks, and all data following the
command in the string is ignored.
2-12 Packet Reference Manual
Control Characters Packet
~123
Start of header
~044
Parameter separator
~034
Quoted strings
~124
Field separator
The field separator is the split vertical bar (|). The
decimal value is 124. To enter this character, use the
Shift key plus the Split Vertical Bar key on the
computers keyboard. Depending on the text editor, it
may appear as a solid vertical bar or as a split vertical
bar.
~125
End of header
~126
Data escape character (optional)
def. ch. Immediate command character (optional). Up to any 3
Note:
"ANSI_cd" includes seven separate parameters. The first five
parameters are required. The other parameters are optional.
Terminator for status requests and ENQ requests. Up to any 3
characters in the 0 to 255 decimal range. The default is "013".
Sending "" disables this sequence.
Terminator for job requests and data uploads. Up to any 3
characters in the 0 to 255 decimal range. The default is none.
Sending "" disables this sequence.
characters in the 0 to 255 decimal range. The character
must be defined before this command can be used. The
caret (~094) is normally used.
{
(left bracket)
,
(comma)
"
(quotes)
|
(vertical bar)
}
(right bracket)
~~
(double tilde)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents