CX400 / 410 DESKTOP PRINTER PROGRAMMING REFERENCE PN 9001106(B)
SATO America, Inc. 10350A Nations Ford Road Charlotte, NC 28273 Main Phone: (704) 644.1650 Technical Support: (704) 644.1660 Technical Support Fax: (704) 644.1661 E-Mail: satosales@satoamerica.com techsupport@satoamerica.com www.satoamerica.com Copyright 2009 SATO America, Inc.
TABLE OF CONTENTS SECTION 1. PROGRAMMING CONCEPTS Introduction................................................................................................................................... 1-1 The SATO Programming Language ............................................................................................. 1-1 Selecting Protocol Control Codes ................................................................................................. 1-2 Using Basic .......................................
Table of Contents Form Overlay, Store ................................................................................................................... 2-34 Graphics, Custom ....................................................................................................................... 2-35 Graphics, PCX............................................................................................................................. 2-37 Journal Print .....................................................
Table of Contents SECTION 4. TWO-DIMENSIONAL SYMBOLS Maxicode....................................................................................................................................... 4-2 PDF417 ......................................................................................................................................... 4-4 SECTION 5. CONFIGURATION COMMANDS Backfeed Enable ..............................................................................................................
Table of Contents Page vi PN 9001106(B) SATO CX400 / CX410
SECTION 1. PROGRAMMING CONCEPTS INTRODUCTION This section presents the commands that are used with the SATO CX400 / CX410 printers to produce labels with logos, bar codes and alphanumeric data. All of the SATO Programming Language commands use the same syntax. All of the CX400 / CX410 commands are compatible with their larger SATO industrial printer cousins. Exceptions include commands that are dependent upon the print width and resolution of the printers.
Section1. Programming Concepts 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, the character tells the printer that a command code will follow and the character asks for the printer status. There are two pre-defined different sets of Protocol Control codes to choose from.
Section1. Programming Concepts OPEN “COM1:9600,E,8,1,CS,DS”AS #1 This sets the RS232C communication parameters of the host PC’s COM1 port for 9600 baud, Even parity, 8 Data bits, 1 Stop bit and directing the port to ignore the CTS and DSR control signals. 3. You may want to minimize keystrokes and program size by assigning the character to a string variable since this character is used quite often. The following two examples in BASIC show a typical example using thesehints.
Section1. Programming Concepts 30 PRINT #1,CHR$ (2); Sends an (ASCII Code a decimal “2”) to the printer instructing it to prepare to receive a message. 50 PRINT #1,E$;"A"; Sends an “A” command code to Print Port #1 opened by statement 20 above. 60 PRINT #1, E$;"H400";E$;"V100";E$;"XL1SATO"; Sends the data “SATO” to be placed 400 dots horizontally and 100 dots vertically on the label and printed in the“XL” autosmoothed font.
Section1. Programming Concepts l 4.1” Print Width Print Length 4.1” Max Print Width minus 2” Label Width The base reference point is always to the right edge of the print head as you face the front (label exit) of the printer. If you are using a label narrower than the maximum print width, you may have to adjust the base reference point to correctly position the label in the print area. There are three methods available to make sure your printed output will appear correctly on your label.
Section1. Programming Concepts This resets the reference point for all the following data. 3. Add the correct offset to all horizontal commands. Use the normal base reference point from the print area and use the horizontal position for each field to properly locate it on the label. Calculate the distance (in dots) from the normal base reference point to the closest edge of the label. For a CX400 8 dpmm printer: Label Width = 2" x 25.
Section1. Programming Concepts 4.1” The image is moved horizontally to the right 2 inches (406 dots) so that itcan be printed on a 2 inch wide label. For more information, see the Base Reference Point command description. 4.1” ROTATED FIELDS The CX400 / CX410 printer can rotate each print field in 90° increments using the Rotate command. • % - The field rotates, but the base reference point for the field remains the same.
Section1. Programming Concepts A%1V800H200L0202XB1EQ1Z 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.
Section1. Programming Concepts 2. The values transmitted with these commands will remain in effect until a new command is received. PRINTER CONFIGURATION The CX400 / CX410 printers are different from other SATO printers in that they do not use DIP switches for printer configuration. Instead, all printer configuration is done via software commands.
Section1. Programming Concepts LABEL SENSING The CX400 / CX410 printers can use an eye-mark (black bar) label gap or label notch sensing. The gap and notch sensor is a transmissive or see-thru type with an infrared light source directed through the label from above and detected by a separate receiving sensor underneath the label liner or tag. A reflective sensor is used to detect eye-marks printed on the bottom of the label liner or tag. The eye-mark must not reflect more than 12% of the light.
SECTION 2. COMMAND CODES This section contains the basic Command Codes for the SATO CX400 / CX410 printers. Commands for the oprions and specialized functions are provided in the following sections. 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: • Explain the different commands and provide examples of their usage. • To provide a detailed reference for programming the printers.
Section 2: Command Codes Bar Codes Command Structure 1:3 narrow/wide bar ratio: Babbcccd 2:5 narrow/wide ratio: BDabbcccd 1:2 narrow/wide bar ratio: Dabbcccd a bb ccc d Command Function Page 2-2 = 0 1 2 3 4 5 6 7 8 9 A B C D E F G I Codabar Code 39 Interleaved 2 of 5 (I 2/5) UPC-A / EAN-13 EAN-8 Industial 2 of 5 Matrix 2 of 5 reserved reserved reserved MSI reserved Code 93 reserved UPC-E Bookland Code 128 UCC 128 = Number of dots (01-12) for narrow bar and narrow space = Bar height in
Section 2: Command Codes Input to Printer AH025V0025B103100*CODE 39* H0205V0130XS*CODE 39* H025V0175BD20310045676567 H0190V0285XM45676567 H025V0325BD30215001234567890 H025V0525BD50310012345 H0225V0635XS12345 H025V0675BD60310012345 H0205V0785XS12345 H025V0825BA03100123455 H0145V935XS12345 H025V980BC03100081234ABCD H0130
Section 2: Command Codes Printer Output Page 2-4 PN 9001106(B) SATO CX400 / CX410
Section 2: Command Codes UCC-128 Without Incrementing AH0100V0100 B107150101234567000000001 Q2Z With Incrementing AH0100V0100 F001+001B107150101234567000000001 Q2Z SATO CX400 / CX410 PN 9001106(B) Page 2-5
Section 2: Command Codes Special Notes Page 2-6 1. UPC and EAN bar codes are not affected by the different types of narrow to wide ratios. Instead, the D command adds descender bars to these codes where needed to meet UPC specifications. The BD command puts desender bars and human readable text below the symbol. 2. The Code 128, UCC 128, MSI, and Code 93 bar codes are not affected by the narrow to wide ratios. 3.
Section 2: Command Codes Bar Codes, Expansion Command Structure BWaabbb aa = Expansion factor by which the width of all bars and spaces will be increased (01-12) bbb = Bar height by dot (004-999 dots) Example: BW02100 Placement: Immediately follows the BT command and precedes data to be encoded. Default: None Command Function This command works together with the BT command to specify an expansion factor and the bar code height for the particular symbol being printed.
Section 2: Command Codes Bar Codes, Variable Ratio Command Structure BTabbccddee a = Bar Code Symbol: 0 Codabar 1 Code 39 2 Interleaved 2 of 5 5 Industrial 2 of 5 6 Matrix 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: BT101030103 Placement: Following print position commands and preceding BW Default: Current setting Command Function To print a bar code with a ratio other th
Section 2: Command Codes Special Notes 1. This command must be immediately followed by the BW Bar Code Expansion command. 2. You may use only one variable ratio bar code per label. 3. If the data specified in this command is incorrect, the command is ignored and the ratio used will be based on the previous setting.
Section 2: Command Codes Base Reference Point Command Structure A3H-aaaa-Vbbbb - = This character is optional. When present, it specifies that The horizontal offset is in the negative direction. If it is left out the offset direction is positive.
Section 2: Command Codes Special Notes 1. Use of this command will set the Vertical/Horizontal Offset setting of the printer configuration until a new Base Reference Point command is issued or the setting is changed from the operator panel. 2. This command may be used more than once in a print job. 3. An alternative to using this command is to make changes to your current Horizontal and Vertical Print Position commands.
Section 2: Command Codes Characters,Custom-Designed Command Structure Store Command: Tabcc Recall Command: Kab90cc a = 1 16x16 matrix 2 24x24 matrix b = Specifies the character encoding method for the data stream H Hexadecimal characters B Binary characters cc = Memory location to store/recall the character. Valid memory locations are 21H to 52H or “!” or “R” in Binary. (data) = Data to describe the character in either Hex or Binary format.
Section 2: Command Codes Printer Output Special Notes 1. When printing the custom character using the Recall command, the character is affected by the following commands: Character Expansion Character Pitch Line Feed, Rotate, Fixed Base Reference Point 2. The characters are stored in volatile memory and must be reloaded if the printer power is lost. 3.
Section 2: Command Codes Character Expansion Command Structure Laabb aa = Multiple to expand horizontally (01-12) bb = Multiple to expand vertically (01-12) Example: L0305 Placement: Preceding the data to be expanded Default: L0101 Command Function To expand characters independently in both the horizontal and vertical directions. The command allows you to enlarge the base size of each font (except the vector font) up to 12 times in either direction.
Section 2: Command Codes Character, Fixed Spacing Command Structure 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 fixed spacing. Printer Input A H0050V0050PS L0202XMPROPORTIONAL SPACING H0050V0180PR L0202XMFIXED SPACING Q1Z Printer Output Special Notes SATO CX400 / CX410 1.
Section 2: Command Codes Character Pitch Command Structure Paa aa = Number of dots between characters (00-99) Example: P03 Placement: Preceding the text to be printed Default: P02 Command Function To designate the amount of spacing (in dots) between characters. This command provides a means of altering character spacing for label constraints or to enhance readability.
Section 2: Command Codes Special Notes SATO CX400 / CX410 1. This command is affected by the L Character Expansion command. The character pitch is actually the product of the current horizontal expansion multiple and the designated pitch value. Example: L0304 P03 Pitch = (03) x (03) = 9 dots 2. To avoid confusion, you may want to include the L Character Expansion command and this command together in your program. 3.
Section 2: Command Codes Character, Proportional Spacing Command Structure PS Set to proportional spacing Example: See above Placement: Preceding the data to be proportional spaced Default: PS Command Function To specify the printing of proportional or fixed spacing for proportionally spaced fonts.
Section 2: Command Codes Clear Print Job(s) & Memory Command Structure *a a = If the “a” parameter is not included with this command and the printer is in the multi-buffer mode, this command clears all print jobs in the printer memory, including the current print job. a = If “a” is included with this command, it specifies the internal memory section to be cleared.
Section 2: Command Codes Continuous Forms Printing Command Structure None Command Function The printer locates the end of an adhesive label by sensing the backing between labels or through the use of an eye-mark (black rectangle on the reverse side of the backing). It locates the end of a tag from a notch, eyemark, or a hole between tags. Both sensors should be disabled when printing continuous forms by sending the CI0 command to disable the sensor.
Section 2: Command Codes Copy Image Area Command Structure WDHaaaaVbbbbXccccYdddd aaaa = Horizontal position of the top left corner of the area. (0001 to 0832) bbbb = Vertical position of the top left corner of the area. (0001 to 1424) ??????????????? cccc = Horizontal length of the image area to be copied. (0001 to 0832) dddd = Vertical length of the image area to be copied.
Section 2: Command Codes Special Notes Page 2-22 1. Use the Print Position commands (V and H) to locate the new area for the duplicate image. 2. Position of the new target area must not be inside the original image. 3. If you use the R Rotate command, V, H, X and Y axis will be reversed. 4. If the reference area of the target image exceeds the print area, it will not be printed.
Section 2: Command Codes Cut Command Structure ESC>~Aaaaa aaaa = Number of labels to print between each cut (1-9999) Example: ~A2 Placement: Preceding the Q Print Quantity command. Default: ~A1 (if cutter enabled) Command Function To control the cutting of labels when using a SATO cutter unit with the printer printer. This command allows the cutting of a multi-part tag or label at a specified interval within a print job.
Section 2: Command Codes Cut Job Command Structure ~aaaa aaaa = Number of labels to print between each cut (1-9999) Example: ~2 Placement: Following the Print Quantity command Q Default: ~1 (if cutter enabled) Command Function To control the cutting of labels when using a SATO cutter unit with the printer. This command allows the cutting of a multi-part tag or label at a specified interval within a print job.
Section 2: Command Codes Cut Last Command Structure ~B Example: ~B Placement: Separate data stream sent to the printer Default: None Command Function To control the cutting of labels when using a SATO cutter unit with the printer. This command allows the cutting of a printed multi-part tag or label that is left in the printer after a job is cut.
Section 2: Command Codes Fonts U, S, M, OA, OB, XU, XS & XM Command Structure Command Function Font XU: XU Font U: U Font XS: XS Font S: S Font XM: XM Font M: M Font OA: OA Font OB: OB Example: See above Placement: Preceding the data to be printed Default: None To print text images on a label. These are eight of the built-in fonts available on the printer. All matrices include descenders.
Section 2: Command Codes Printer Output Special Notes SATO CX400 / CX410 1. Characters may be enlarged through the use of the Character Expansion command. 2. Character spacing may be altered through the use of the Character Pitch command. The default is 2 dots between characters. It is recommended to use a spacing of 5 dots for OCR-A and 1 dot for OCR-B. 3. You may also create custom characters or fonts. See the T Custom-Designed Characters command. 4.
Section 2: Command Codes Font, Vector Command Structure Specify Vector Font: $a,b,c,d Data for Vector Font: $=(data) a = A Helvetica Bold (proportional spacing) B Helvetica Bold (fixed spacing) b = Font width (50-999) c = Font height (50-999 dots) d = Font variation (0-9) as follows: 0 Standard 1 Standard open (outlined) 2 Gray (mesh) pattern 1 3 Gray (mesh) pattern 2 4 Gray (mesh) pattern 3 5 Standard open, shadow 1 6 Standard open, shadow 2 7 Standard mirror image 8 Italic 9 Italic open
Section 2: Command Codes Printer Output Special Notes SATO CX400 / CX410 1. The Pitch command can be used with Vector fonts. 2. If the font size designation is out of the specified range, a default value of 50 is used. 3. The font width and height values include ascenders, descenders, and other space. 4. A font must be defined for each field to be printed. There is no default font.
Section 2: Command Codes Fonts WB, WL, XB & XL Command Structure Font WB: WBa Font XB: XBa Font WL: WLa Font XL: XLa a Command Function = Provided for compatibility with CL printers. Can be either a “0” or “1”. Example: WB1123456 Placement: Preceding the data to be printed Default: None To print text images on a label. These are the four auto-smoothing fonts available on the printer.
Section 2: Command Codes Printer Output Special Notes SATO CX400 / CX410 1. Characters may be enlarged through the use of the L Character Expansion command. 2. Character spacing may be altered through the use of the A Character Pitch command. 3. A font must be defined for each field to be printed. There is no default font. 4. The proportionally spaced fonts XU, XS, XM, XL and XB can be printed with fixed spacing using the PS Proportional Space command.
Section 2: Command Codes Form Feed Command Structure A(space)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.
Section 2: Command Codes Form Overlay, Recall Command Structure / Example: See above Placement: Must be preceded by all other data and placed just before the Print Quantity command (Q) Default: None Command Function To recall the label image from the form overlay memory for printing. This command recalls a stored image from the overlay memory. Additional or different data can be printed with the recalled image.
Section 2: Command Codes Form Overlay, Store Command Structure & Example: See above Placement: Must be preceded by all other data and placed just before the Stop command (Z) Default: None Command Function To store a label image in the volatile form overlay memory. Only one label image may be stored in this memory area at a time.
Section 2: Command Codes Graphics, Custom Command Structure Gabbbccc(data) a = Specifies format of data stream to follow B Binary format H Hexadecimal format bbb = Number of horizontal 8 x 8 blocks 001 to 104 ccc = Number of vertical 8 x 8 blocks 001 to 356 (data) = Hex or Binary data to describe the graphic image. Example: GH006006 See Appendix C for a detailed example Placement: May be placed anywhere within the data stream after the necessary position commands.
Section 2: Command Codes Printer Output Special Notes 1. Do not use ASCII or characters (carriage return or line feed) as line delimiters within the graphic data or the actual image will not be printed as specified. 2. A custom graphic cannot be enlarged by the L Character Expansion command. 3. A custom graphic is not affected by either of the Rotation commands. Therefore, always design and locate your graphic image to print in the appropriate orientation. 4.
Section 2: Command Codes Graphics, PCX Command Structure GPaaaaa,(data) aaaaa = Number of bytes to be downloaded Example: GP32000, ... data... Placement: Anywhere within the job data stream Default: None Command Function To allow the creation and printing of graphic images using a PCX file format. Printer Input See Appendix Appendix C for a detailed example A V0150H0100GP03800,(...Data...) Q1 Z Printer Output Special Notes 1.
Section 2: Command Codes Journal Print Command Structure J Example: See above Placement: Immediately following A Default: None Command Function To print text in a line by line format on a label. By specifying this command, you automatically select Font XS with a Character Expansion of 2x2. You also establish a base reference point of H2,V2. The character pitch is 2 dots and the line gap is 16 dots. Simply issue an ASCII at the end of each text line.
Section 2: Command Codes Lines and Boxes Command Structure Line: Box: FWaabcccc aa = Width of horizontal line in dots (01-99) b = Line orientation H Horizontal line V Vertical Line cccc = Length of line in dots (see Section 1 Table 1 for max length) FWaabbVccccHdddd aa = Width of horizontal side in dots (01-99) bb = Width of vertical side in dots (01-99) cccc = Length of vertical side in dots (see Section 1 Table 1 for max length) dddd = Length of horizontal side in dots (s
Section 2: Command Codes Special Notes Page 2-40 1. It is recommended that all lines and boxes be specified in the normal print direction. 2. Use the E0 Expanded Print Length command for maximum label length.
Section 2: Command Codes Line Feed Command Structure Eaaa aaa = Number of dots (001-999) between the bottom of the characters on one line to the top of the characters on the next line. Example: E010 Placement: Preceding the text that will use the line feed function Default: None Command Function To print multiple lines of the same character size without specifying a new print position for each line. With the Line Feed command, specify the number of dots you want between each line.
Section 2: Command Codes Media Size Command Structure A1aaaabbbb aaaa = Label Width in dots (1 to 832) bbbb = Label Length in dots (1 to 8120) Example: A108323200 Placement: Separate data stream to the printer. Default: A108322136 COMMAND FUNCTION To set the size of the media. INPUT TO PRINTER A A108321424 Z PRINTER OUTPUT There is no printer output resulting from this command.
Section 2: Command Codes Off-Line/Pause Command Structure @ Example: See above Placement: Anywhere in the print job between the A and Z Default: None Command Function To specify the printer to come to an off-line state. When used within a print job, the printer goes off-line after finishing the print job. Input to Printer A @ ...Job... Z Printer Output There is no printer output for this command.
Section 2: Command Codes Postnet Command Structure BPn...n n...
Section 2: Command Codes Print Darkness COMMAND STRUCTURE #Ea a = Print Darkness Value (1 - 5) Example: #E2 Placement: Must be placed immediately after A and immediately before Z in its own separate data stream Default: See Operator Manual for the specific printer COMMAND FUNCTION To specify a new print darkness settings. This command allows software control of the darkness setting for unique media and ribbon combinations.
Section 2: Command Codes Print Length, Expanded Command Structure EX0 Sets the print length to 40” (1015 mm)) AR Resets the maximum print length to 7" (178 mm) Example: See above Placement: Must follow the Start Code command and be in it is own separate data stream. Default: AR(7”) Command Function To increase the maximum print length (in feed direction) for a label.
Section 2: Command Codes Print Position COMMAND STRUCTURE Horizontal Position Haaaa Vertical Position: Vbbbb aaaa = Number of dots horizontally from the base reference point (1 to 832 bbbb = Number of dots vertically from the base reference point (1 to 8120) Example: H0020V0150 Placement: Preceding any printed field description of lines/ boxes, fonts, bar codes or graphics.
Section 2: Command Codes SPECIAL NOTES Page 2-48 1. To expand the print length to the maximum limit, the EX0 Expanded Print Length command must be used. 2. The print position of a field is affected by both the R Rotate and A3 Base Reference Point commands. 3. If any part of an image is placed past the maximum number of dots, that part of the image will be lost. 4. If you attempt to print where there is no paper, you may damage the print head. 5.
Section 2: Command Codes Print Quantity Command Structure Qaaaaaa aaaaaa = Total number of labels to print (1-65535) Example: Q500 Placement: Just preceding Z, unless ~ exists, then preceding that. This command must be present in every print job. Default: None Command Function To specify the total number of labels to print for a given print job.
Section 2: Command Codes Print Speed Command Structure CSa a = = Designates the speed selection in ips 1 = 1 ips (25 mm/s) 2 = 2 ips (50 mm/s) 3 = 3 ips (75 mm/s) 4 = 4 ips (100 mm/s) Example: CS3 Placement: Must be placed immediately after A and immediately before Z in a separate data stream Default: As previously set in the printer configuration Command Function To specify a unique print speed through software for a particular label.
Section 2: Command Codes Repeat Label Command Structure C Example: See above Placement: Must be placed immediately after A and immediately before Z in a separate data stream Default: None Command Function To print duplicate of the last label printed Input to Printer A C Z Printer Output A duplicate of the previous label will be printed. Special Notes 1.
Section 2: Command Codes Replace Data (Partial Edit) Command Structure 0(zero) Example: See above Placement: Must follow A and precede all other print data Default: None Command Function To replace a specified area of the previous label with new data. This command will cause the previous label to print along with any changes specified within the current data stream.
Section 2: Command Codes Special Notes SATO CX400 / CX410 1. Specify the exact same parameters for the image to be replaced as were specified in the original data stream, including rotation, expansion, pitch, etc. This will ensure that the new data will exactly replace the old image. If the replacement data contains fewer characters than the old data, then the characters not replaced will still be printed. 2.
Section 2: Command Codes Reverse Image Command Structure (aaaa,bbbb a = Horizontal length in dots of reverse image area 1 to 832 b = Vertical height in dots of reverse image area. 1 to 1424 Example: (100,50 Placement: This command must be preceded by all other data and be placed just before Q Default: None Command Function To reverse an image area from black to white and vice versa.
Section 2: Command Codes Special Notes SATO CX400 / CX410 1. A reverse image area is affected by the rotate commands. Therefore, always assume the printer is in the normal print orientation when designing and sending the Reverse Image command. 2. If the Rotate commands are used with this command, the V and H parameters are reversed. 3. If using reverse images with the form overlay, place this command before the Form Overlay command in the data stream. 4.
Section 2: Command Codes Rotate, Fixed Base Reference Point Command Structure %a a = 0 1 2 3 Sets print to normal direction Sets print to 90°CCW Sets print to 180° rotated (upside down) Sets print to 270° CCW Example: %3 Placement: Preceding any printed data to be rotated Default: %0 Command Function To rotate the print direction in 90° increments without changing the location of the base reference point. The diagram below illustrates the use of the % Rotate command.
Section 2: Command Codes Sequential Numbering Command Structure Faaaabcccc,dd,ee,g aaaa = Number of times to repeat the same data (00019999) b = Plus or minus symbol (+ for increments; - for decrements) cccc = Value of step for sequence (0001-9999) , dd = Number of digits for sequential numbering (0199). The first incrementing character position starts after the positions exempted from sequential numbering as specified in ee. If these digits are left out, the default is 8.
Section 2: Command Codes Printer Output Special Notes 1. The value specified for Print Quantity should be equal to the number of different sequential values desired multiplied by the number of repeats specified. Example: To print 2 sets each of the numbers 1001-1025 on separate labels, we need 50 total labels. The commands would be as follows: A H0100V0100F002+001XM1001 Q50 Z Page 2-58 2.
Section 2: Command Codes Start/Stop Label Command Structure Start Command: A Stop Command: Z Example: See above Placement: A must precede data Z must follow data Default: None Command Function For all print jobs, the Start command must precede the data, and the Stop command must follow. The print job will not run properly if these are not in place.
Section 2: Command Codes Page 2-60 PN 9001106(B) SATO CX400 / CX410
SECTION 3. EXPANDED MEMORY OPTION COMMANDS These commands require the optional Expanded Memory. Note: Before Expanded Memory can be used for the first time, it must be initialized using the BJF command. If it is not initialized, the printer will not recognize the memory and respond as if no expanded memory was installed.
Section 3: Expanded Memory Commands Clear Expanded Memory Command Structure *a,bbb a= bbb = Memory card section to be cleared G To clear SATO graphic files from memory card P To clear PCX graphic files F To clear formats from the memory card O To clear TrueType fonts R To clear BMP graphic files Memory Card storage area to be cleared 001 to 999 for Graphics, PCX or Formats 000 to 099 for TrueType fonts Example: *G,01 Placement: This command should be sent to the printer immediately followi
Section 3: Expanded Memory Commands Graphics, Custom Recall Command Structure GRaaa aaa Command Function Printer Input = Graphics storage number (001-999) Example: GR111 Placement: The Recall command is sent in a secondary data stream to print the graphic, and follows any necessary position or size commands. Default: None Use the Recall command any time you want to print a graphic image on a label along with other printed data.
Section 3: Expanded Memory Commands Graphics, Custom Store Command Structure GIabbbcccddd{data} a = bbb ccc ddd {data} = = = = Specifies character format of the data H Hex data B Binary data Number of horizontal 8 x 8 blocks (001 to 104) Number of vertical 8 x 8 blocks (001 to 178) Graphics storage number (001-999) Hex or binary data to describe the graphic image Example: See Appendix C for detailed information on creating Hex and Binary graphic files.
Section 3: Expanded Memory Commands Special Notes 1. You must have the optional Expanded Memory to use this command. Call your SATO representative for details. 2. The maximum storage capacity is 999 graphics, up to the capacity of the memory card used. 3. If a data transmission error occurs, the ERROR LED will come on. You must then retransmit the image. 4. Each graphic to be stored must be sent in its own data stream.
Section 3: Expanded Memory Commands Graphics, PCX Recall Command Structure PYaaa aa = Storage area number (001 thru 999) Example: PY001 Placement: This command must be placed within its own data stream specifying the placement of the graphic. Default: None Command Function To recall for printing a graphic file previously stored in a PCX format in the Memory Card.
Section 3: Expanded Memory Commands Graphics, PCX Store Command Structure PIaaa,bbbbb,{data} aaa bbbbb {data} = = = Storage area number (001 thru 999) Size of PCX file in bytes Data Example: PI001,32000,{data} Placement: This command must be placed within its own data stream Default: None Command Function To store for later printing a PCX graphic file in the Expanded Memory. Printer Input BASIC Program to Download a PCX file to Expanded Memory Area #1, Storage Area #1 OPEN .
Section 3: Expanded Memory Commands Initialize Command Structure BJFaaaaaaaa aaaaaaa = Eight character alphanumeric user ID Example: BJFsatocard Placement: Immediately following the CC Memory Area Select command. Default: None Command Function This clears all of the data from Expanded Memory in the specified memory area and prepares the area to accept data.
Section 3: Expanded Memory Commands Memory Area Select Command Structure CCa a = Memory Area 1 = 512K internal flash ROM 2 = 2M/4M expanded memory Example: CC1 Placement: Immediately following the A Start Code. Default: Last selected Memory Area. Command Function Selects the Memory Area to be used for following Expanded Memory commands. Printer Input A CC1 {commands} Z Printer Output There is no printer output as a result of this command. Special Notes 1.
Section 3: Expanded Memory Commands Status Command Structure BJS Example: BJS Placement: After the CC Memory Area Select command. Default: None Command Function Casues the printer to print the card status. Printer Input A CC1BJS Z Printer Output Special Notes Page 3-10 1. This command requires the Expanded Memory option. See your SATO representative for more information.
SECTION 4. TWO-DIMENSIONAL SYMBOLS The following commands are used to create the two-dimensional symbologies supported by the CX400 / CX410.
Section 4: Two-Dimensional Symbols Maxicode Command Structure BVa,b,c,ddddddddd,eee,fff,gggg..... a = Position of Maxicode symbol within the set, when used in a structured append format 1~8. b = Total number of Maxicode symbols in the set, when used in a structured format 1~8. c = 2 3 4 5 6 For Mode 2 Structured Carrier Message for Domestic U.S.
Section 4: Two-Dimensional Symbols Special Notes 1. Please refer to UPS Publication “Guide to Bar Coding with UPS OnlineVersion 5” for the secondary message data format requirements and the latest format requirements. 2. This command implements Maxicode AIM I.S.S (UPS Version 3.1) symbol. 3.
Section 4: Two-Dimensional Symbols PDF417 Command Structure BKaabbcddeeffffnn...n,g aa = Minimum module dimension (03-09 dots). Will not print if values of 01, 02 or greater than 10 are specified. bb = Minimum module pitch dimension (04-24 dots). Will not print if values of 01, 02, 03 or greater than 25 are specified. c = Security (error detection) Level (1-8). dd = Code words per line (01-30).
Section 4: Two-Dimensional Symbols Special Notes 1. When the code words per line and the number of rows per symbol (“dd” and “ee”) are set to all zeroes, the printer will calculate the optimum configuration. 2. If the product of the values entered for”dd”and"ee"are not equal to or less than the value of “f f f f”(i.e. “f f f f” is greater than “dd“ x “ee”, an error will occur and the symbol will not be printed.
Section 4: Two-Dimensional Symbols Page 4-6 PN 9001106(B) SATO CX400 / CX410
SECTION 5. CONFIGURATION COMMANDS These commands are used to change to operating configuration of the printer. The settings currently active in the printer can be determined by printing a Test Label, either by sending the CT Print Test Label command or by pressing the FEED button while turning the printer on.
Section 5. Configuration Commands Backfeed Enable COMMAND STRUCTURE CEa a = 0 1 = = Disables Backfeed Enables Backfeed Example: CE1 Placement: Separate data stream sent to printer Default: Last setting COMMAND FUNCTION To enable/disable backfeed before printingto align first print line on a label after it has been dispensed. INPUT TO PRINTER A CE1 Z PRINTER OUTPUT There is no output as a result of this command. SPECIAL NOTES 1.
Section 5. Configuration Commands Calibrate Sensor COMMAND STRUCTURE CA Example: CA Placement: Separate data stream sent to printer Default: There is no default for this command. COMMAND FUNCTION To calibrate the label sensor for media and ribbon combinations.. INPUT TO PRINTER A CA Z PRINTER OUTPUT There is no output as a result of this command.
Section 5. Configuration Commands Custom Protocol Command Codes Download COMMAND STRUCTURE LD,a,b,c,d,e,f,g,h,i,j a b c d e f g h = = = = = = = = i = j = Replacement character for STX Replacement character for ETX Replacement character for ESC Replacement character for ENQ Replacement character for CAN Replacement character for NUL Replacement character for OFFLINE Auto-Online. Printer powers up in the online mode. 0: Yes 1: No Zero Slash. Places a slash through the “0” character.
Section 5. Configuration Commands Special Notes 1. Commas must be used to separate the parameters. If a parameter is omitted between two commas, the default Non-Standard Protocol Command codes for that parameter will be used. 2. This command must be sent as an independent data stream immediately following the A Start code and immediately preceding the Z Stop code. No other commands can be included in the data stream. 3.
Section 5. Configuration Commands Label Tear-Off COMMAND STRUCTURE CBabb a = + moves print line down from the top label edge - moves print line up towards the top label edge bb = Distance moved in mm (00 to 98) Example: CB+19 Placement: Separate data stream sent to printer Default: Last valid setting COMMAND FUNCTION To adjust the location of the first print line on the label. INPUT TO PRINTER A CB+19 Z PRINTER OUTPUT There is no printer output for this command.
Section 5. Configuration Commands Print Darkness Range COMMAND STRUCTURE CDaaa,bbb aaa = Darkness range adjust (0 to 400) Media adjustment (0 to 6000) Example: CD250,3000 Placement: This command should be sent in a separate data stream. Default: CD200,3300 COMMAND FUNCTION To make fine adjustments for best print quality. INPUT TO PRINTER A CD200,3300 Z PRINTER OUTPUT There is no printer output as a result of this command. SPECIAL NOTES 1.
Section 5. Configuration Commands Sensor Select Command Structure CIa a = 0 Sensor not used 1 Reflective (Eye Mark) sensor 2 See-thru (transmissive) sensor Example: See above Placement: Separate data stream sent to printer Default: See-thru sensor Command Function To select the label sensing method for a job. Input to Printer A Z Printer Output There is no printer output as a result of this command Special Notes 1. This setting is stored in non-volatile memory.
Section 5. Configuration Commands Serial Interface Parameters COMMAND STRUCTURE CRaaaaa,b,c,d aaaaa = Baud rate, 9600, 19200, or 38400 bps b = Parity N = None O = Odd E = Even c = Number of data bits, 7 or 8 d = Number of stop bits, 1 or 2 Example: CR9600,N,8,1 Placement: Separate data stream sent to printer Default: 9600,N,8,1 COMMAND FUNCTION To set the operating parameters of the RS232 Inferface.
Section 5. Configuration Commands Test Label COMMAND STRUCTURE CT Example: CT Placement: In a separate data stream. Default: None COMMAND FUNCTION To allow test labels to be printed via software control. PRINTER INPUT A CT Z PRINTER OUTPUT Special Notes Page 5-10 1. This mode is used for diagnostic troubleshooting to verify current printer settings.
Section 5. Configuration Commands Set Print Mode Command Structure CPa a = 0 = Direct Thermal Printing (no ribbon) 1 = Thermal Transfer Printing (with ribbon) 2 See-thru (transmissive) sensor Example: CP0 Placement: Must precede all other commands in the data stream. Default: Thermal Transfer Command Function To select the print method.. Input to Printer A Z Printer Output There is no printer output as a result of this command Special Notes 1.
Section 5.