AMT Datasouth 600 manual Example of How to Define Label Formats

Page 56

Example of How to Define Label Formats

The example below shows how a label format can be defined as a PALTM procedure. This label format called Mailing_Label uses 5 variables. Notice how the variables are defined in reverse order compared to how this format is called. This format is defined in Pal_Procs_and_Formats.txt. Looking at this file will also reveal that this procedure makes use of the print utility procedures also defined in this file. Instead of using these print utilities, these formats could also use direct PALTM operators. This approach however allows label formats to be defined with very little knowledge of the PALTM Print and Program Language. In this label format the procedures Printfont, PrintBoldfont, and Printbarcode are used. These are not native PALTM operators but new procedures also defined in this file. Using print utility procedures like this in the label format makes it easy to define formats using inches as the measurement system with very little knowledge of PALTM operators.

The procedure below defines a label format called Mailing_Label. This name is case sensitive. The first 5 lines after the { character assign the passed parameters to names. These names are in turn used when needed to pass information to PALTM operators or in this case other PALTM procedures. When the label format is called, the very first parameter specified will be the name. Notice in the definition below that the Name variable is actually the last defined. This is due to the stack based nature of PALTM. The first defined parameter on the stack is the last off the stack (just like a stack of plates for example, last one stacked is first one off). The line below shows that at an X,Y position of 0.25", 0.75", the name variable will be printed in bold at a size of 12 points with no rotation. This PrintBoldfont procedure makes it easy to place text of any size and rotation at any position just by specifying the parameters in correct order then calling the PrintBoldfont.

0.25 0.75 0 12 Name PrintBoldfont

If should also be noted that the label format defined below is actually just another PALTM procedure definition just like the PrintBoldfont. Parameters are passed to these procedures in the same way. The big difference is that the PALTM operator showpage is included in the label format procedure, which will actually cause a label to be printed each time this format is called.

%===============================================================================

%

Mailing_Label procedure definition

 

 

 

%

Usage: Name

Street

CityState

Zip5

Zip4 Mailing_Label

%Example: (John Doe) (1234 Main St.) (Anytown, NC) (12345) (1234) Mailing_Label %=============================================================================== /Mailing_Label

{

/Zip4 exch def /Zip5 exch def /CityState exch def /Street exch def /Name exch def

0.250.75 0 12 Name PrintBoldfont

0.250.55 0 12 Street Printfont

0.250.35 0 12 CityState ( ) concat Zip5 concat (-) concat Zip4 concat Printfont

0.1 0.1 0 0.1 Zip4 Zip5 concat /Postnet Printbarcode

showpage

} bind def

Fastmark 600 Series User's Guide

56

Image 56
Contents User’s Guide AMT Datasouth Corp Important Safety Instructions Other Notices Trademark Credits Conventions Table of Contents Windows Printer Driver Table of Figures Model and Serial Number LocationIntroduction Model No Serial No Model OverviewModels Model Features Standard FeaturesPaltm Print and Program Overview Traditional PrintingLegacy Data Stream Interpretation Legacy Data stream InterpretationUnpacking and Inspection Shipped with PrinterInstallation and Configuration Finding a Location for the PrinterPrinter Parts and Features External Switches, Indicators and ConnectionsConnecting the Power Cord Power ConnectionConnecting the Printer to Your Host Communication CableLoading the Ribbon Thermal Transfer Media onlyRibbon Holder Notches and Ribbon Core Slots Supply Ribbon Installation Ribbon Take-Up Installation Print head Module Closed Media Roll Installation Loading MediaMedia Sensor and Guides Loading Media over Platen Roller Print head Module Closed Close the Top Media Cover Loading Media into the Peeler Label Removal for Peeler OptionFeeding into the Peeler Mechanism Peeler Option Loading Media into the Cutter Option Inserting Labels in the Cutter OptionCalibrating Media Sensors Calibration of the MediaPrinting the Configuration Label RTS & XONKeypad Operation LED DescriptionOn Line Key Operation Special Power Up Key FunctionPower up key functions Feature Management Mode FeatureMan ProgramChanging Features Setup Feature and Value List Feature Name Value Range DescriptionPrint Darkness 12 +12 MM/DD/YYYY Paltm Print Language Introduction Smooth Scalable Fonts Supported Bar CodesPaltm Bar Code List and Samples Paltm Print and Program Label Tutorial Showpages Printing Text on a LabelPaltm Print and Program Coordinate System PAL Coordinate System72 68 moveto 144 68 lineto stroke Showpages Printing a LinePrinting a Box Rotate a Text Object 100 100 moveto BARCODE123 /Code39 barcode Showpages Printing a Bar CodeIntroduction to Paltm Advanced Topics Advanced OverviewPaltm Print and Program Language Features § LCDSample Demo Files File Name DescriptionExample of a Procedure defined in Paltm Example of calling a Procedure from a host applicationDemo Label showing use of Print Utility Procedures Example of How to Define Label Formats Usage Name Street CityState Zip5 Zip4 MailingLabelExample of calling Label Format from Host Application MailingLabelWindows 2000 Driver Installation Windows Printer DriverSelecting Printer Fonts Printing Bar Codes From Windows 2000 Applications Adjusting the Windows 2000 Driver Bar Codes Windows XP Driver Installation Selecting Printer Fonts Printing Bar Codes From Windows XP Applications Adjusting the Windows XP Driver Bar Codes Windows NT/9x Driver Installation Selecting Printer Fonts Printing Bar Codes From Windows NT/9x Applications Adjusting the Windows NT/9x Driver Bar Codes Fastmark 600 Series Users Guide Troubleshooting and Maintenance Printer Detected ErrorsPrinter Detected Errors Other User Detected Errors Fastmark 600 Series Users Guide PCB Fastmark 600 Series Users Guide Peel and Present Sensing Preventive Maintenance Cleaning the Thermal Print Head TPHCleaning the Platen Roller Cleaning the paper sensorCleaning the Paper Compartment Appendix a General Specifications Specification Fastmark 602 PAL Fastmark 603 PALAppendix B Interface Specifications Serial InterfaceParallel Centronics Interface Auto Interface SelectAppendix C Ascii Table Appendix D Self Test Print Sample Appendix E Hidden Setup Features Hidden Setup Feature and Value ListOff line Update Mode Appendix F Updating Printer FirmwareFastmark 600 Series Users Guide Boot Mode Feature and Value List