beautypg.com

Defining the control characters packet – Avery Dennison Monarch 9860 Programmer Manual Addendum User Manual

Page 2

background image

2

To enable these commands, you must first send the control characters
packet and define the immediate command control character. The immediate
command control character is saved in non-volatile RAM so it is saved when
you turn off the printer. Once the immediate command control character is
defined, the immediate commands are enabled.

Defining the Control Characters Packet

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 ENQ's (inquiry requests).

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 your packet, except within
quotation marks. You can customize the trailer characters to work with your
host.

Note:

Wait two seconds for the new characters to take effect before
sending packets using the new characters.

Use the following syntax for the control characters packet. Notice all but the
first parameter are within quotation marks.

Syntax {I,E,"ANSI_cd","string1","string2"¦}

E1. E Control

Characters

Packet

E2. "ANSI_cd"

~123

Start of header

{

(left bracket)

~044 Parameter

, (comma)

separator

~034 Quoted

strings

" (quotes)

~124 Field

separator

¦

(pipe sign- use hex 7C)

~125

End of header

}

(right bracket)

~126

Data escape

~~

(double tilde)

character

(optional)

def. ch.

Immediate command character (optional).

Up to any three characters in the 0-255 decimal

range. The character must be defined before

this command can be used. The caret (~094) is

normally

used.

Note:

"ANSI_cd" includes seven separate parameters. The first five
parameters are required. The other parameters are optional.

E3. "string 1"

Terminator for status requests and ENQ requests. Up to
any three characters in the 0-255 decimal range. The
default is "013". Sending "" disables this sequence.

E4. "string 2"

Terminator for job requests and data uploads. Up to any
three characters in the 0-255 decimal range. The default
is none. Sending "" disables this sequence.