Avery 9906 XML User Manual

Page 1
XML QUICK REFERENCE
This Quick Reference lists the XML-enabled tags that the Monarc h 9906 printer can interpret. Your printer has Oracle® WMS (Warehouse Management) print jobs software, version 5.0.
About This Quick Reference
This Quick Reference contains instructions to define the Format Header and Option 21 (Define Extended Field Names) and a sample label format.
Note: This Quick Reference does not contain info rmation about installing or setti ng up the
printer for use on a network running Oracle software.
Information in this document supercedes information in previous versions. Check our Web site (www.monarch.com
Selecting WMS XML
To print using the WMS XML setting, when you turn on the printer you should see:
WMS XML
Online
FEED TLABEL MENU
) for the latest documentation and release i nformation.
If WMS XML is not shown in the upper left-hand corner of your display, follow these instructions to change the setting:
1. From the Main Menu, select Setup then press  or until Interpreter is on the display.
SETUP
Interpreter
MPCL
CHANGE BACK
1. Press CHANGE then press  until WMS XML is on the display.
MAIN MENU
Interpreter
WMS XML
SET CANCEL
2. Press SET to save the change. Note: The printer automatically res tarts to initialize the change.
MONARCH is a registered trademark of Avery Dennison Retail Information Services LLC. Avery Dennison is a trademark of Ave ry Dennison Corp. Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates.
TC9906XMLQR Rev.AB 3/11 2010 Avery Dennison Corp. All rights reserved.
Page 2
Defining the Format Header
A Format Header begins a format file.
Syntax {F,format#,action,device,measure,length, width,"name"¦
F1. F Format Header. F2. format# Number from 1-999 to identify the format. F3. action Enter A t o add a new format to the print er. F4. device Format storage device. Use F (Flash). F5. measure Unit of measure: E (English), M (Metric), or
G (Graphic Dots).
Printer Unit of Measure Length Width
9906 English (1/100 inch)
Metric (1/10 mm) 203 dpi Dots 300 dpi Dots
Refer to the 9906 Packet Reference Manual for more information. F6. length Image length in selected units. F7. width Image width, from left to right, in selected units. F8. "name" Format name, 1-256 characters, enclose within quotation marks. The name can
contain special characters, excluding non-printa ble control characters and the quotation mark (").
Example {F,1,A,F,E,300,200,"XML_FORMAT_ONE"¦
150-1600 127-4064 101-3248 150-3600
75-410 191-1041 152-832 225-1230
Defines the name for format 1 as XML_FORMAT_ONE.
Using Option 21 (Define Extended Field Names)
Option 21 defines names for each field in a format.
Syntax R,21,"field_name"¦
R1. R Option Header. R2. 21 Option 21. R3. field_name Specifies the field name. Must be enclosed within qu otations. The name can be
up to 256 characters, excludi ng non-printabl e control character s and the quotation mark ("). This name m ust match the one specif ied in the variable name or Field name attribute.
Example T,2,10,V,250,50,0,1,1,1,B,C,0,0,0¦
R,21,"SALEPRICE_FIELD"¦
Defines the name for text field 2 as “SALEPRICE_FIELD.”
Error Messages
You may receive this error when using XML suppo rted tags.
002
The Format Name must be between 1 to 8 characters inside quotes. Extended Format Names and Option 21 names can be betwe en 1 and 256 characters excluding non­printable control characters and the quotation mark ( ").
2 Quick Reference
Page 3
About Oracle WMS Print Jobs
The XML-enabled printer contains the following 10 Oracle® Warehouse Management print jobs (label formats):
LPN Label LPN Content Label LPN Summary Label Material Label Serial Label  Location Label Shipping Label Shipping Content Label WIP Content Label Flow Content Label
Refer to your OracleIntegration Certification Document – Oracle Warehouse Management Label Printing Integration Kit for information about the format layout and descriptions of each
field on the formats. When you turn on the printer, you see
WMS XML
Online
FEED TLabel MENU
When you print test labels, the model number appears as M9906X, for example.
Supported Tags
There are three supported XML tags for Oracle Warehouse Management print jobs. The printer ignores any other XML tags/attributes not defined in this document and no error is reported.
Syntax <labels attributes="values">
<label attributes="values"> <variable name="name">data</variable> </label> </labels>
labels This tag contains one or more labels, which may incl ude one or more of the
following attributes:
_FORMAT The default name of the format. This name must
match the one specified in the Format Header.
_QUANTITY Quantity to print. 1 is the default.
label This tag contains a single label, which may include one or more of the following
attributes:
_FORMAT
_QUANTITY
variable This tag specifies the field name and the variable field data. It must contain the
following attribute:
name
The default name of the format. This name must match the one specified in th e Format Header. If no format name is given, then the default format name from the labels tag _FORMAT attribute is used.
Quantity to print. If no qua ntity is specified, t hen the default quantity from the labels tag _QUANTITY attribute is used.
The name of the field that match es the ones specifi ed using Option 21. It must contain the variable data (batc h data) associated with the format.
3
Page 4
Sample MPCL Format
{F,1,A,F,E,400,400,"XML_FORMAT_ONE" ¦ T,1,25,V,20,20,0,1,1,1,B,L,0,0¦ R,21,"TEXT_FIELD_XML"¦ B,2,30,V,100,20,8,8,75,0,L,0¦ R,21,"CODE_128_BARCODE_FIELD_XML"¦}
This MPCL format uses:
format – XML_FORMAT_ONE text field – TEXT_FIELD_XML bar code field – CODE_128_BARCODE_FIELD_XML.
Sample XML Print Job
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE labels SYSTEM "label.dtd"> <labels _FORMAT ="XML_FORMAT_ONE" _QUANTITY="1"> <label> <variable name= "TEXT_FIELD_XML">XML Test Label</variable> <variable name= "CODE_128_BARCODE_FIELD_XML">Code128data</variable> </label> </labels>
This XML print job uses:
format – XML_FORMAT_ONE text field – TEXT_FIELD_XML with data – XML Test Label bar code field – CODE_128_BARCODE_FIELD_XML with data – Code128d ata.
4 Quick Reference
Loading...