SATO CT400, CT410 manual Sato CT Series Printers 9001069A

Page 51

Section 4. Programming Reference

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. However, certain commands require the exact number of matching characters. A command with two parameters listed following the command code without a comma delimiter, 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.

NOTE: These examples assume the use of the Standard Protocol Command Codes, a parallel interface and a 4 inch wide label in a CT400 printer. The labels for all other printers will be similar, but, because of different resolutions and print widths may be larger or scaled differently.

An alphabetical listing of the command codes is contained in Appendix A: Command Code Quick Reference.

SATO CT Series Printers

9001069A

Page 4-7

Image 51
Contents CT 400 and CT410 Desk Top Printers Sato CL Series Printer PN 9001069A CT Series Printer OPERATOR’S Manual Appendices Table of Contents Programming Interface Specifications UPC-A/EAN-13 Introduction Section Printer OverviewGeneral Printer Specifications SpecificationCT400 CT410 Processing CPU Matrix Fonts Character FontsUCC/EAN-128 BAR CodesPhysical Power RequirementsAccessory Optional AccessoriesThis page left intentionally blank Section Installation and Configuration Unpacking Setting UP the Printer Installation and Configuration Loading Ribbon CT4XXTT only Ribbon Drive Spindles Ribbon Ass’y Latch Roll Media Loading MediaFanfold Media Roll Guide so that the PaperClose and latch Print Head Assembly CT Series Printer Label Sensor Positioning Label SensingOperator Panel Parallel Interface Rear Connector PanelPower If Installed Fanfold Paper SlotConfiguration Panel Configuration SwitchDSW1 DSW2 DSW3 Setting DSW6 Setting Off EnableDSW4 Setting DSW5 SettingError Display DSW8 SettingLED Error Pitch Offset Potentometer AdjustmentsMode Millimeters Inches Dots OffsetLabel Feed Direction Sensor Position Print Darkness HEX Dump Diagnostic Label User Test Print Print Test LabelsFACTORY/SERVICE Test Print This page left intentionally blank Procedures Adjusting the Print QualityDarkness Print Cleaning the Print HEAD, Platen and Rollers Cleaning the Print HeadSupplies needed Replacing the Print Head Cleaning the Platen and Paper RollerCleaning and Maintenance Supplies Needed Sato SA070 Cleaning Kit Cleaning the SensorsThis page left intentionally blank Sato CT Programming Language Section ProgrammingUsing Basic Protocol Control CodesControl HEX Description Character Value Open COM19600,E,8,1,CS,DS AS #1 Print Area Print AreaProgramming Reference Command Default Settings Command CodesRotated Fields Sato CT Series Printers 9001069A This page left intentionally blank MSI Bar CodesEsca Input to PrinterPrinter Output With Incrementing UCC-128Special Notes ESCBW02100 Command Structure ESCBWaabbbCommand Function Bar Codes, ExpansionBar Codes, Variable Ratio Command Structure ESCBTabbccddee9001069A Sato CT Series Printers Command Structure ESCA3HabbbbVcdddd Base Reference PointESCA3H+100V+0050 Printer configuration until a new Base Reference Point Printer Input Command Structure Store Command ESCTabccCharacters, Custom-Designed ESCK1H903FCharacter is affected by the following commands Character Expansion Command Structure ESCLaabbThis command will expand the following fonts Character, Fixed Spacing Command StructureCharacter Pitch This command is affected by the Escl Character Expansion Escpr Character, Proportional SpacingCommand Structure ESC*a Clear Print Jobs & MemorySpecial Note Continuous Forms Printing Command Structure NoneCommand Structure ESCWDHaaaaVbbbbXccccYdddd Copy Image AreaESCWDH0100V0050X0600Y0400 For the duplicate image Cut Job Command Structure ESCNULaaaaCut Command Structure ESCCTaaaaCut Last Fonts U, S, M, OA, OB, XU, XS & XM Command Structure Font XUCharacters may be enlarged through the use of the Character Font/Graphic Recall Command Structure ESCAESCRFaabbbb,nn...nFont, Raster Command Structure ESCAESCRDabb,ccc,ddd,nn. . .nESC$A,100,200,0ESC$=123456 Font, VectorESC$a,b,c,d ESC$=dataPitch command can be used with Vector fonts Command Structure Font WB Fonts WB, WL, XB & XLESCWB1123456 Expansion rate is at least 3 times in each direction Form Overlay, Recall Form Overlay, Store Command Structure ESCGabbbcccdata Graphics, CustomESCGH006006 Custom graphic cannot be enlarged by the Escl Character Job ID Store Journal Print ESCFW02H0200 Lines and BoxesESCFWaabcccc ESCFWaabbVccccHddddLINE/BOX CT400 CT412Length Command Structure ESCWKnnn. . . n Job NameEscwksato Label/Tag Select Command Structure ESCYEaLine Feed Sato CT Series Printers 9001069A Media Size Command Structure ESCA1aaaabbbbOff-Line Command Structure ESCBPn...n PostnetESCBP123456789 Print Darkness Command Structure ESC#EabPrint Position Bbbb Print Quantity Command Structure ESCQaaaaaaESCCS3 Print SpeedEscc Repeat LabelReplace Data Partial Edit 9001069A Sato CT Series Printers Command Structure ESCaaaa,bbbb Reverse ImageESC100,50 CT400 CL412 Rotate, Fixed Base Reference Point Command Structure ESC%aCommand Structure ESCFaaabcccc,dd,ee,f Sequential NumberingESCF0001-001,04,03,0 Value specified for Print Quantity should be equal to Start/Stop Label Two-Dimensional Symbols Printer Outpu Two-Dimensional Bar Codes Data Matrix, Data FormatCommand Structure ESCBXaabbccddeeefffghh ESCBX03080505000000001Character SET Encoding Number Scheme ECCESCDC00006000 Two-Dimensional Bar Codes Data Matrix, Print DataCommand Structure ESCFXaaabcccdddeee Two-Dimensional Bar Codes Data Matrix, Sequential Numbering9001069A Sato CT Series Printers Two-Dimensional Bar Codes Maxicode Command Structure ESCBVa,b,c,ddddddddd,eee,fff,gggg.....ESCExample ESCBV1,2,3,123456789,222,333,MESSAGEESC Following modes are supported Mode Postal Code Country Code Service Class Message LengthESCBK0304400000021 Two-Dimensional Bar CodesCommand Structure ESCBKaabbcddeeffffnn...n Command Function Printer Input9001069A Sato CT Series Printers Printer Configuration Commands Command Structure ESCLD,a,b,c,d,e,f,g,h,i,j Eurocharacter SelectExample ESCLD,,,%,#,&,*,~,0,0,D5 Printer Setting Command Structure ESCPGabcdefghhijklmnopqrstuvwxyzCommand HEX Description Parameter Value Placement Separate data stream sent to printer Default None All command parameter values must be in Ascii format Command Structure ESCPMa Print ModePrint Type Command Structure ESCPHaPitch Offset Command Structure ESCPOabccSensor Type Command Structure ESCIGaSerial Interface Parameters Command Structure ESCI2abcdeInterface Types Section Interface SpecificationsReceive Buffer Single Job BufferMulti Job Buffer Electrical Specifications Ieee 1284 Parallel InterfaceData Streams Ieee 1284 Parallel Interface Pin Assignments PIN Signal DirectionGeneral Specifications Optional RS232C Serial InterfacePIN Assignments DB9 PIN Direction Signal DefinitionCable Requirements READY/BUSY Flow ControlUniversal Serial BUS USB Optional Interface On/X-Off Flow ControlData Streams Enquire ENQ Local Area Network LAN OptionalinterfaceBI-DIRECTIONAL Communications ENQUIRE/ACK/NAKPrint Start DC1 Cancel canPrint Job Print Stop DLEStatus Byte Definition, Bi-Com Protocol Status Response Printer Status SOH + MGByte HEX Description Number Value Label Media Counter Status SOH + ME Sensor Status SOH + SGByte Value Description Number Byte Value Description Number Ascii Head Status SOH + HCSystem Version Information Memory StatusForm Overlay Status SOH + FO Font Configuration SOH + FG Interface Status Serial Interface SettingsUsing the Ieee 1284 Parallel Interface Initial ChecklistTroubleshooting Using the RS232C Serial Interface Error Signals A1aaaabbbb A3HabbbbVcdddd BPn...n BabbcccdBDabbcccd BKaabbcdd Eeefffnn...n,gEee,f f f,gg..g BTabbccddeeBVa,b,c DddddddddDCxx...x CSaCTaaaa DabbcccdFXaaabccc FWaabbVcccHdddd FWccVdddLDa,b,c,d,e,f,g,i IGaI2abcde LaabbPHa PaaPGa.....z PMaVbbbb RDabb,ccc,dddNn . . . n RFaabbbb,nn..nYEa WLaXLa XBaZero $a,b,c,d$=data Data for Vector font #Eab Aaaa,bbbb~aaaa NULaaaaA-12 9001069A Sato CT Series Printers BAR Code Symbologies Appendix B BAR Code SpecificationsCharacter Set CodabarESCB0bbcccd data d Ratio ESCBD0bbcccd data d ESCD0bbcccd data dESCD1bbccc* data Command Structure Ratio ESCB1bbccc* dataCode ESCBD1bbccc* dataDensity Model Interleaved Two of Five I 2/5ESCBD2bbccc data ESCD2bbccc dataWidth mils Factor Narrow BarCalculating Mod 10 Check DigitODD Even ESCD4bbccc data Command Structure ESCB4bbccc dataD5bbccc data Industrial Two of FiveB5bbccc data BD5bbccc dataESCD6bbccc data Matrix Two of FiveESCB6bbccc data ESCBD6bbccc dataDensity Char/inch Model Dimension Mils Subsets a Subset C Command Structure ESCBGbbcccdd dataESCBAbbccc data d ESCBDAbbccc data dESCDAbbccc data d Density Model Dimension Char/inch Ratio Mils ESCDEbbccc data Command Structure ESCBEbbccc dataBookland UPC/EAN Supplements Command Structure ESCBFbbccc dataUCC-128 Command Structure ESCBIbbcccd dataB-16 9001069A Sato Ct Series Printers Command Structure Escbp data Print Data Command Structure Data FormatData Matrix Sequential Numbering ESCFXaaabcccdddeeeStructure of this symbology Mode Postal Code Country Code Service Ctass Message Length Command Structure ESCBFaabbcddeeffffnnn...n Value Subset a Subset B Subset C Code 128 Character TableCode 128 Character Table Code 128 Character Table cont’d CUSTOM-DESIGNED Character Example Appendix C Custom Characters and GraphicsAppendix C Custom Characters and Graphics Sato CT Series Printers 9001069A C-3 Custom Graphics Example Sato CT Series Printers 9001069A C-5 C-6 9001069A Sato CT Series Printers Sato CT Series Printers 9001069A C-7 C-8 9001069A Sato CT Series Printers
Related manuals
Manual 8 pages 18.05 Kb