SATO manual Print Area, CX208/212 Programming Guide

Page 8

 

 

CX208/212 Programming Guide

40 PRINT #1,E$;"A";

Sends an “<ESC>A” command code to

 

 

Print Port #1 opened by statement 20

 

 

above.

50

PRINT #1, E$;"H400";E$;"V100";E$;"WL0SATO";

Sends the data “SATO” to be to be

 

 

placed 400 dots horizontally and 100

 

 

dots vertically on the label and printed in

 

 

the “WL” font.

60

PRINT #1, E$;"Q1";

Instructs the printer to print a quantity of

 

 

one label.

70

PRINT #1, E$; “Z”;

Tells the printer that the last command

 

 

has been sent. The printer can now

 

 

create and print the job.

80

PRINT #1,CHR$ (3);

Sends an <ETX> (ASCII Code decimal

 

 

“3”) to the printer telling it that this is the

 

 

end of the message.

THE PRINT AREA

<ESC>A

<ESC>H0050<ESC>V0100<ESC>L0303<ESC>MSATO

<ESC>H0050<ESC>V0200<ESC>B103100*SATO*

<ESC>H0070<ESC>V0310<ESC>L0101<ESC>USATO

<ESC>Q1<ESC>Z

The maximum print area for the various CX208/212 printers is listed in Table 1, Print Area. Most of your label applications will not require labels that fill the entire print area. To make label design simplier, the media on the CX208/212 printers is center justified, i.e. the label is always centered on the print head. An <ESC>A1 Media Size command is then used to specify the length and width of the label. The CT printer uses this information to automatically calculate an “offset” that will move the Horizontal Reference point to coincide with the first printable dot position on the specified label. It is extremely important to use the Media Size command. If you do not, you will have to manually calculate the offset and send it to the printer using the <ESC>A3 Base Reference Point command.

Table 1, Print Area

 

CX208

CX212

 

 

 

 

 

 

Resolution

203 dpi

305 dpi

 

8 dpmm

12 dpmm

 

 

 

Max Print Width

832 dots

1248 dots

 

4.1 in.

4.1 in.

 

104 mm

104 mm

 

 

 

Max Label Width

4.25 in.

4.25 in.

 

108 mm

108 mm

 

 

 

Print Length

4064 dots

3780 dots

 

20 in.

12.6 in.

 

508 mm

320 mm

 

 

 

 

 

 

SATO CX208/212 Printers

PN 9001092 Rev. A

Page 4

Image 8
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 Command Structure Store Command ESCTabcc Characters, Custom-DesignedESCK1H903F 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 Custom Protocol Command Codes Download Command Structure ESCLD,a,b,c,d,e,f,g,h,iCommand Function Printer Input Printer Output 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