Page 3 - TABLE OF CONTENTS; CX200 PROGRAMMING GUIDE
TABLE OF CONTENTS CX200 PROGRAMMING GUIDE Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 The SATO Programming Language . . . . . . . . . . . . . . . . . . . 1 Selecting Protocol Control Codes . . . . . . . . . . . . . . . . . . . . 2 Using Basic . . . . . . . . . . . . . ...
Page 6 - SELECTING PROTOCOL CONTROL CODES; USING BASIC
<ESC> {Command} {Parameter} {Data} Some commands can contain both Parameter and Data elements, such as “print a Code 39 symbol containing the data.” SELECTING PROTOCOL CONTROL CODES Protocol codes are the special control characters that prepare the printer to receive instructions. For example,...
Page 8 - THE PRINT AREA
40 PRINT #1,E$;"A"; Sends an “<ESC>A” command code toPrint Port #1 opened by statement 20above. 50 PRINT #1, E$;"H400";E$;"V100";E$;"WL0SATO"; Sends the data “SATO” to be to beplaced 400 dots horizontally and 100dots vertically on the label and printed inthe “WL...
Page 10 - ROTATED FIELDS
ROTATED FIELDS The printers can rotate each print field in 90° increments using the Rotate command. There are two variations of this command. • <ESC>% - The field rotates, but the base reference point for the field remains the same. The following data stream will rotate the print field but wil...
Page 11 - COMMAND DEFAULT SETTINGS; PRINTER CONFIGURATION
COMMAND DEFAULT SETTINGS There are some types of commands that must have a value specified before a label can be printed. If the data stream does not contain these commands, a “default” value is assumed. The commands and the corresponding default values are: COMMAND DEFAULT NOTE Print Rotation 0° (1...
Page 12 - LABEL SENSING
LABEL SENSING The CX208/212 printers can use eye-mark (black bar), gap or notch label sensing. The gap and notch sensor is a transmissive or see-thru type with an infrared light source directed through the label/ribbon combination from above and detected by a separate sensor underneath the label. A ...
Page 14 - COMMAND CODE PAGE REFERENCE
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 provid...
Page 15 - Bar Codes
Bar Codes Command Structure 1:3 narrow/wide bar ratio: <ESC>Babbcccd2:5 narrow/wide ratio: <ESC>BDabbcccd 1:2 narrow/wide bar ratio: <ESC>Dabbcccd a = Bar Code Symbol0 Codabar 1 Code 39 2 Interleaved 2 of 5 (I 2/5) 3 UPC-A / EAN-13 4 EAN-8 5 Industrial 2 of 5 A MSI C Code 93E UPC-E...
Page 21 - Bar Codes, Variable Ratio
Bar Codes, Variable Ratio Command Structure <ESC>BTabbccddee a = Bar Code Symbol:0 Codabar 1 Code 39 2 Interleaved 2 of 5 bb = Narrow space in dots (01-99) cc = Wide space in dots (01-99) dd = Narrow bar in dots (01-99) ee = Wide bar in dots (01-99) Example: <ESC>BT101030103 Placement: F...
Page 23 - Base Reference Point
Base Reference Point Command Structure <ESC>A3H-aaaaVbbbb - = This character is optional. When present, it specifies thehorizontal offset is in the negative direction. If it is left outthe offset direction is positive. aaaa = Horizontal Print Offset (-0832 to +0832) bbbb = Vertical Print Offse...
Page 27 - Character Expansion
Character Expansion Command Structure <ESC>Laabb aa = Multiple to expand horizontally (01-12) bb = Multiple to expand vertically (01-12) Example: <ESC>L0304 Placement: Preceding the data to be expanded Default: <ESC>L0101 Command Function To expand characters independently in both ...
Page 29 - Character, Fixed Spacing
Character, Fixed Spacing Command Structure <ESC>PR Example: See Above Placement: Preceding the data Default: The default is Proportional Spacing. Command Function To reset proportional spacing and place the printer back to fixedspacing. Printer Input <ESC>A <ESC>H0100<ESC>V00...
Page 30 - Character Pitch
Character Pitch Command Structure <ESC>Paa aa = Number of dots between characters (00-99) Example: <ESC>P03 Placement: Preceding the text to be printed Default: <ESC>P02 Command Function To designate the amount of spacing (in dots) between characters.This command provides a means o...
Page 32 - Character, Proportional Spacing
Character, Proportional Spacing Command Structure <ESC>PS Set to proportional spacing <ESC>PR Reset to fixed spacing Example: See above Placement: Preceding the data to be proportional spaced Default: <ESC>PS Command Function To specify the printing of proportional or fixed spacing...
Page 34 - Continuous Forms Printing
Continuous Forms Printing Command Structure None The printer locates the end of an adhesive label by sensing thebacking between labels or through the use of an Eye-Mark (blackrectangle on the reverse side of the backing). It locates the end of atag from a notch, eye-mark, or a hole between tags. Bot...
Page 35 - Copy Image Area
Copy Image Area Command Structure <ESC>WDHaaaaVbbbbXccccYdddd aaaa = Horizontal position of the top left corner of the area to becopied bbbb = Vertical position of the top left corner of the area to becopied cccc = Horizontal length of the image area to be copied dddd = Vertical length of the ...
Page 37 - Cutter Command
Cutter Command Command Structure <ESC>~aaaa or <ESC><NUL>aaaa aaaa = Number of labels to print between each cut (0001 to 9999) Example: <ES>~0002 Placement: Fllowing the <ESC>Q Print Quantity command Default: Cut after each label if cutter installed Command Function To ...
Page 42 - Form Feed
Form Feed Command Structure <ESC>A(space)<ESC>Z Example: See above Placement: Separate data stream sent to printer Default: None Command Function To feed a blank tag or label, which is the equivalent of a “form feed” Input to Printer <ESC>A(space) <ESC>Z Printer Output Blank ...
Page 48 - Journal Print
Journal Print Command Structure <ESC>J Example: See above Placement: Immediately following <ESC>A Default: None Command Function To print text in a line by line format on a label. By specifying thiscommand, you automatically select Font S with a CharacterExpansion of 2x2. You also establ...
Page 49 - Lines and Boxes
Lines and Boxes Command Structure Line <ESC>FWaabcccc aa = Width of horizontal line in dots (01-99) b = Line orientationH Horizontal lineV Vertical Line cccc = Length of line in dots Box: <ESC>FWaabbVccccHdddd aa = Width of horizontal side in dots (01-99) bb = Width of vertical side in d...
Page 51 - Line Feed
Line Feed Command Structure <ESC>Eaaa aaa = Number of dots (001-999) between the bottom of thecharacters on one line to the top of the characters onthe next line Example: <ESC>E010 Placement: Preceding the text that will use the line feed function Default: None Command Function To print ...
Page 52 - Media Size
Media Size Command Structure <ESC>A1aaaabbbb aaaa = Vertical Media Size in dots (0 to Vmax) bbbb = Horizontal Media Size in dots (0 to Hmax) Example: <ESC>A108323200 Placement: Separate data stream to the printer. Default: <ESC>A108323200 for CX208<ESC>A108324800 for CX212 Co...
Page 54 - Postnet
Postnet Command Structure <ESC>BPn...n n...n = 5 digits (Postnet-32 format)6 digits (Postnet-37 format)9 digits (Postnet-52 format)11 digits (Postnet-62, Delivery Point format) Example: <ESC>BP123456789 Placement: Immediately preceding the data to be encoded Default: None Command Functio...
Page 55 - Print Darkness
Print Darkness Command Structure <ESC>#Ea a = Print darkness valuea = 1, 2, 3, 4 or 5 Example: <ESC>#E2 Placement: Must be placed immediately after <ESC>A and immediately before <ESC>Z in its own separate data stream Default: 2 Command Function To specify a new print darkness...
Page 56 - Print Length, Expanded; Maximum
Print Length, Expanded Command Structure <ESC>EX0 Sets the print length to max <ESC>AR Resets the maximum print length to 7" (178 mm) Example: See above Placement: Must follow the Start Code commandand be in it’s own separate data stream. Default: <ESC>AR Command Function To in...
Page 58 - Print Position
Print Position Command Structure Horizontal Position: <ESC>Haaaa Vertical Position: <ESC>Vbbbb aaaa = Number of dots horizontally from the base reference pointSee note 6 for allowable range bbbb = Number of dots vertically from the base reference pointSee note 6 for allowable range. Exam...
Page 60 - Print Quantity
Print Quantity Command Structure <ESC>Qaaaaaa aaaaaa = Total number of labels to print (1 to 65535) Example: <ESC>Q500 Placement: Just preceding <ESC>Z, unless <ESC>~ Cuttercommand exists, then preceding that. This commandmust be present in every print job. Default: None Comm...
Page 61 - Print Speed
Print Speed Command Structure <ESC>CSa a = Designates the speed selection2 = 2 ips (50 mm/s) 3 = 3 ips (75 mm/s) Example: <ESC>CS3 Placement: Must be placed immediately after <ESC>A andimmediately before <ESC>Z in its own separate data stream Default: As previously set in the...
Page 62 - Repeat Label
Repeat Label Command Structure <ESC>C Example: See above Placement: Must be placed immediately after <ESC>A andimmediately before <ESC>Z in its own separate datastream Default: None Command Function To print duplicate of the last label printed Input to Printer <ESC>A <ESC&...
Page 65 - Reverse Image
Reverse Image Command Structure <ESC>(aaaa,bbbb a = Horizontal length in dots of reverse image areaSee note 6 for allowable range. b = Vertical height in dots of reverse image area.See note 6 for allowable range. Example: <ESC>(100,50 Placement: This command must be preceded by all other...
Page 67 - Rotate, Fixed Base Reference Point
Rotate, Fixed Base Reference Point Command Structure <ESC>%a a = 0 Sets print to normal direction 1 Sets print to 90°CCW 2 Sets print to 180° rotated (upside down) 3 Sets print to 270° CCW Example: <ESC>%3 Placement: Preceding any printed data to be rotated Default: <ESC>%0 Command...
Page 69 - Rotate, Moving Base Reference Point
Rotate, Moving Base Reference Point Command Structure Normal Direction: <ESC>NRotated Direction: <ESC>R Example: See above Placement: Preceding any printed data to be rotated Default: <ESC>N Command Function The <ESC>R command rotates the printing of all subsequent imagesin a...
Page 71 - Sequential Numbering
Sequential Numbering Command Structure <ESC>Faaaabcccc,dd,ee aaaa = Number of times to repeat the same data (0001-9999) b = Plus or minus symbol (+ for increments; - for decrements) cccc = Value of step for sequence (0001-9999) ,dd = Number of digits for sequential numbering (01-99). Thefirst ...
Page 74 - Expanded Memory Option Commands
Expanded Memory Option Commands These commands require the Expanded Memory Option. The first 2MB of Expanded Memory installed is designated as memory area CC1. If 4MB of Expanded Memory is installed, second 2MB (i.e. the area above the first 2 MB) is designated as memory area CC2. Page 70 PN 9001092...
Page 81 - Expanded Memory Function
Expanded Memory Function Graphics, PCX Recall Command Structure <ESC>PYaaa aa = Storage area number (001 thru 099) Example: <ESC>PY001 Placement: This command must be placed within its own datastream specifying the placement of the graphic. Default: None Command Function To recall for pr...
Page 86 - Two-Dimensional Symbols
Two-Dimensional Symbols The following commands are used to create the two-dimensional symbologies supported by the printers. Page 82 PN 9001092 Rev. A SATO CX208/212 Printers CX208/212 Programming Guide
Page 89 - Two-Dimensional Bar Codes
Two-Dimensional Bar Codes PDF417 Command Structure <ESC>BKaabbcddeeffffnn...n aa = Minimum module dimension (03-09 dots). Will not printif values of 01, 02 or greater than 10 are specified. bb = Minimum module pitch dimension (04-24 dots). Will notprint if values of 01, 02, 03 or greater than ...
Page 91 - CONFIGURATION COMMANDS
CONFIGURATION COMMANDS The following commands are used to set the operating parameters of the CX208/212 printers. The settings currently active in the printer can be determined by printing a Test Label, either by using the <ESC>CT Print Test Label command or by pressing the READY Indicator and...
Page 93 - Backfeed Enable
Backfeed Enable Command Structure <ESC>CEa a = 0 Disable Backfeed 1 Enable Backfeed Example: <ESC>CE1 Placement: This command should be sent in a separate datastream. Default: Last setting Command Function To select the top-of-label sensing method. Input to Printer <ESC>A <ESC&g...
Page 94 - Calibrate Sensor
Calibrate Sensor Command Structure <ESC>CA Example: <ESC>CA Placement: This command should be sent after the sensor typehas been selected with the <ESC>CI command. It should not be included with print job commands. Default: There is no default for this command. Command Function To ...
Page 98 - Print Darkness Range Adjustment
Print Darkness Range Adjustment Command Structure <ESC>CDaaa aaa = Print Darkness Adjust (0 to 400) Example: <ESC>CD250 Placement: This command should be sent in a separate datastream Default: Prink Darkness = 200 Command Function To make fine adjustments for best print quality for uniqu...
Page 99 - Print Test Label
Print Test Label Command Structure <ESC>CT Example: <ESC>CT Placement: This command should be sent in a separate data stream Default: There is no default for this command. Command Function To print a test label Input to Printer <ESC>A <ESC>CT <ESC>Z Printer Output Speci...
Page 100 - Set Print Mode
Set Print Mode Command Structure <ESC>CPa a = 0 for Direct Thermal Printing (without ribbon)1 for Thermal Transfer Printing (with ribbon) Example: <ESC>CP0 Placement: Must precede all other commands in the data stream. Default: 0 for DT Models1 for TT Models Command Function To optimize ...
Page 102 - Set Sensor Type
Set Sensor Type Command Structure <ESC>CIa a = 0 Disable Sensor 1 Reflective (Eye-Mark ) Sensing 2 Transmissive (Label Gap or Notch) Sensing Example: <ESC>CI1 Placement: This command should be sendt in a separate data stream. Default: <ESC>CI2 (Transmissive Sensing) Command Functio...
Page 103 - Enable Options
Enable Options Command Structure <ESC>CLaa = 0 Disable Dispenser Option 1 Enable Dispenser option <ESC>CKaa = 0 Disable Cutter Option 1 Enable cutter option Example: <ESC>CL1 Placement: This command should be sendt in a separate data stream. Default: <ESC>CL0 (Dispenser Disab...