Using mpclii conventions 2-3, Mpclii punctuation 2-3, Standard syntax guidelines 2-3 – Avery Dennison Sierra Sport2 9460 Programmer Manual User Manual
Page 21: Factory defaults 2-3, Guidelines 2-3, Invalid packet syntax 2-3, Programming conventions 2-3, Using mpclii conventions -3, Mpclii punctuation -3, Standard syntax guidelines -3
U s i n g M P C L I I C o n v e n t i o n s
Here are some guidelines to follow when using MPCLII.
M P C L I I P u n c t u a t i o n
Use the following symbols when creating MPCLII packets:
Character
Decimal
Value
Description
{ (left bracket)
123
start of header
} (right bracket)
125
end of header
p (vertical bar)
124
field separator*
, (comma)
044
parameter separator
“ABC”
(quotation marks)
034
Quotation marks enclose character strings. Empty quotes (“”)
identify null strings or unused fields.
'comment'
(single quotation
marks)
039
Grave accents enclose comments. Any data enclosed in grave
accents is ignored. Do not embed comments within a quoted
string. Grave accents are also used to reject mainframe data.
* The field separator is the split vertical bar, which we are representing as p in this manual. The
decimal value is 124. To enter this character, use the Shift key plus the Split Vertical Bar key on your
computer’s keyboard. Depending on your text editor, it may appear as a solid vertical bar or as a split
vertical bar.
Note:
These MPCL characters are the default.
S t a n d a r d S y n t a x G u i d e l i n e s
When creating MPCLII packets:
¨ Begin each packet with a start of header ({).
¨ End each packet with an end of header (}).
¨ Define no more than 200 fields in a format. Each
p indicates one field.
However, options are not counted as fields. The actual number of fields
a format can have may be less, because the number of fields is limited
by the available memory.
¨ The field number (0 to 999) must be unique. We recommend starting at
1, instead of 0.
Configuring the Printer 2-3