beautypg.com

Online information, Data stream structure – Avery Dennison 9406 System Administrator Guide User Manual

Page 113

background image

11. Online Information

MPCL is a standard printer control language developed for
Monarch printers. It is designed to work in an ASCII
environment. This chapter describes MPCL structure and
syntax.

Data Stream Structure

Data is sent from the host to the printer in

packets. A packet is

a string of ASCII characters consisting of:

a starting token

{

a sequence of characters and instructions

an ending token

}

There are four types of packets: check digit packets, format
packets, batch packets, and graphic packets.

A data stream is made up of a series of field definitions. These
definitions are constructed with a set of parameters, which are
separated by commas. A format can contain up to 30 text,
non-printable text, bar codes, lines, boxes, constant text
overlays, and graphics.

The following symbols punctuate packets.

{

Left brace starts a packet.

}

Right brace ends a packet.

p

Split vertical bar ends a line.

,

Comma separates items on a line.

"ABC"

Quotation marks enclose character strings.
Empty quotes ("") identify null strings or
unused fields.

On

li

ne
I

n

fo

rm

a

tio

n

11-1