SATO CX208/212 manual Command Code page Reference

Page 14

CX208/212 Programming Guide

COMMAND CODE PAGE REFERENCE

This section contains all the printer Command Codes. The commands must be sent to the printer in an organized fashion in order for the label(s) to print.

The purpose of this section is to:

1.Explain the different commands and provide examples of their usage.

2.To provide a detailed reference for programming.

Each command begins on a separate page with its own heading. A uniform layout is used to help you find key information about each command. For each Command Code in this section, there will be a sample data input stream to the printer and the expected print output. By studying the examples, you can learn how to use the particular command within a whole block of printer code. Pay particular attention to the “Special Notes” with each command to learn other important information.

The subject commands are highlighted in bold letters in the Reference Sheets. There are two parts of most, but not all, commands. The first is the command character which immediately follows the <ESC> code. It is always an upper case alpha or a special character (such as an “&” or a “%”). It is never a lower case alpha character. If the command requires additional variable information, it is represented by a group of lower case alpha characters immediately following the command character. For example, if an aaaabb is listed following the basic command, the printer will look for six characters immediately following the command. The first four would represent the value of aaaa and the next two the value of bb.

The maximum number of characters defined in a parameter is represented by the number of characters shown in the command structure. For example, a command followed by an aaaa can have up to four characters. In general, commands with only one parameter following the command can be entered without the leading zeroes. In the above example, you could enter either “809” or “0809”. However, certain commands require the exact number of matching characters. A command with two parameters listed following the command code, such as aaaabbbb require the exact number of digits to be entered. If the value of aaaa is “800” and the value of bbbb is “300”, then the parameters must be entered as “08000300”. It is recommended that you make it a practice to always enter leading zeros to prevent any mistakes.

All label illustrations in this section are designed to be printed on a CX208 using four inch wide labels.

SATO CX208/212 Printers

PN 9001092 Rev. A

Page 10

Image 14
Contents CX208/212 Page Table of Contents Sato CX208/212 Printers PN 9001092 Rev. a Introduction Sato Programming LanguageUsing Basic Selecting Protocol Control CodesPrinting with the Parallel Port Printing with the RS232 PortPrint Area CX208/212 Programming GuidePage Rotated Fields Command Default Settings Printer ConfigurationLabel Sensing ESCAESCCP1ESCCI2ESCCAESCZ Command Code page Reference Bar Codes MSIA01597 Input to PrinterPrinter Output CX208/212 Programming Guide Special Notes Printer Output Special Notes Command Structure ESCBWaabbbBar Codes, Expansion Command Structure ESCBTabbccddee Bar Codes, Variable RatioThis command must be immediately followed by the Escbw Command Structure ESCA3H-aaaaVbbbb Base Reference PointPrinter configuration until a new Base Reference Point ESCK1H903F Command Structure Store Command ESCTabccCharacters, Custom-Designed Printer InputWhen printing the custom character using the Esck Recall Character Expansion This command will expand the following fonts Command Structure Escpr Character, Fixed SpacingCommand Structure ESCPaa Character PitchThis command is affected by the Escl Character Expansion Command Structure Escps Character, Proportional SpacingSpecial Note Command StructureClear Print Jobs & Memory Command Structure None Continuous Forms PrintingExample ESCWDH0100V0050X0600Y0400 Command Structure ESCWDHaaaaVbbbbXccccYddddCopy Image Area Horizontal 0001 Aaaa Cutter Command Command Structure ESC~aaaa or ESCNULaaaaFonts U, S, M, OA, OB, XU, XS & XM EscoaCharacters may be enlarged through the use of the Character Fonts WB, WL, XB & XL ESCWB1123456Characters may be enlarged through the use of the Escl Form Feed Command Structure ESC Form Overlay, RecallForm Overlay, Store Command Structure ESCGabbbcccdata Graphics, CustomCustom graphic cannot be enlarged by the Escl Character Command Structure ESCGPaaaaa,data Graphics, PCXCommand Structure Escj Journal PrintESCFWaabbVccccHdddd Command Structure Line ESCFWaabccccLines and Boxes CX208/212 Programming Guide Field ranges are Line Feed Command Structure ESCA1aaaabbbb Media SizeOff-Line/Pause Command Structure ESCBPn...n PostnetCommand Structure ESC#Ea Print DarknessPrint Length, Expanded MaximumPrint length, or until the printer is repowered Print Position ESCQ2ESCZAH0025100 0150ESCL0303ESCMSATOPrint position of a field is affected by both the Rotate Command Structure ESCQaaaaaa Print QuantityCommand Structure ESCCSa Print SpeedRepeat Label EsccCommand Structure ESC0 ESCzero Replace Data Partial EditFewer characters than the old data, then the characters not ESC100,50 Command Structure ESCaaaa,bbbbReverse Image CX208 CX212 Command Structure ESC%a Rotate, Fixed Base Reference PointSame data stream ESCAQ1ESCZNR Rotate, Moving Base Reference PointThis command is provided for compatibility with other Sato ESCF001-001,04,03 Command Structure ESCFaaaabcccc,dd,eeSequential Numbering Value specified for Print Quantity should be equal to Start/Stop Label Expanded Memory Option Commands Command Structure ESC*a,bb Expanded Memory Function Clear Expanded MemoryExample ESCBJT,11,02,02,01,00,0004,SATO Command Structure ESCBJT,aa,bb,cc,dd,ee,ffff,gg..gExpanded Memory Function Fonts, TrueType Recall Expanded Memory Function Fonts, TrueType Store Command Structure Command Function Printer Input ESCGRaaa Expanded Memory Function Graphics, Custom RecallCommand Structure ESCGIabbbcccddddata Expanded Memory Function Graphics, Custom StoreESCGIHaaabbb002DATA Escz Command Structure ESCPYaaa Expanded Memory Function Graphics, PCX RecallExpanded Memory Function Graphics, PCX Store ESCPI001,32000,dataESCZCC2ESCA Expanded Memory Function InitializeESCZACC1 Expanded Memory Function Area SelectBJS Expanded Memory Function StatusTwo-Dimensional Symbols Two-Dimensional Bar Codes Maxicode Example ESCBV1,2,3,123456789,222,333,MESSAGEESCPlease refer to UPS Publication Guide to Bar Coding with UPS BK0304400000021 Two-Dimensional Bar CodesCommand Structure Command Function Printer Input Values 00Hthru 1FHcan be specified as print data Configuration Commands Command Structure ESCCFa Auto-CalibrateBackfeed Enable Command Structure ESCCEaCalibrate Sensor Command Function Printer Input Printer Output Custom Protocol Command Codes DownloadCommand Structure ESCLD,a,b,c,d,e,f,g,h,i ESCLD,,,%,#,&,*,~,0,0Resulting Command Code Command Structure ESCCBabb Label Tear-OffPrint Darkness Range Adjustment Print Test Label ESC AzctSet Print Mode Command Structure ESCCPaCommand Structure ESCCRaaaaa,b,c,d Set RS232 ParametersESC AZCI2 Command Structure ESCCIaSet Sensor Type Enable Options ESC CL1Mode