SBPL PROGRAMMING REFERENCE For printer model: GL408e / GL412e Read this Programming Guide before and during any development work in SBPL. Keep this Guide handy for future reference. 3 1 $ www.satoamerica.
SATO America, Inc. 10350A Nations Ford Road Charlotte, NC 28273 Main Phone: (704) 644.1650 Technical Support: (704) 644.1660 Technical Support Fax: (707) 644.1661 E-Mail: satosales@satoamerica.com techsupport@satoamerica.com www.satoamerica.com Copyright 2009 SATO America, Inc. All rights reserved.
TABLE OF CONTENTS INTRODUCTION About This Manual Print Area Calculation 1-2 1-3 PROGRAMMING CONCEPTS Programming Language Selecting Protocol Codes Using Basic Print Position Commands 2-2 2-3 2-4 2-6 COMMAND CODE QUICK REFERENCE A: B: C: D: E: F: A ~A ~a ~B AO A1 & AR &R &S * @ A3 AX B BC BD BF BG BI BJ BJD BJF BJS BJT BK BP BQ BT BV BW BX <
G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z: FM FP FT FW FX G GC GI GM GP GR GT H ID J K L LA LD LF LH M NC OA OB OL P ( PC #E % PG PI PR PS PY Q RD RF RM S / /D /N T U V WA WB WDH WK WL WP WT XB XL XM
STANDARD COMMAND CODES Control Commands A Z Q ID WK 4-2 Start Label Stop Label Print Quantity Job ID Store Job Name Modification Commands L P PR PS % F FC FT FW ( & / 0 WD J RF RM Character, Expansion Character, Pitch Character, Fixed Spacing Character, Proportional Spacing Rotate, Fixed Base Reference Point Sequential Numbering Print, Circles Print, Triangles Print, Lines & Boxes Reverse Image F
BV BX DC FX Maxi Code Data Matrix Code Data Matrix Code, Data Data Matrix Code, Sequential Number System Commands 4-47 CS #E NC A3 AR AX EP ~a ~A ~B * @ OL C PG PC I2 IG E LD LA CL LH AO LF EX0 Print Speed Print Darkness Cutting Operation Base Reference Point Print Area, Standard Print Area Enlargement Print End Position Cut, Job Cut, Label Cut, Last Clea
BI-DIRECTIONAL COMMUNICATIONS Introduction 6-2 General Configuration Serial Interface Receive Buffer Data Transmission Enquire & Response 6-2 6-2 6-2 6-2 6-3 Enquire (SOH + ENQ) Cancel (SOH + CAN) Print Job Print Stop (SOH + DLE) Print Start (SOH + DC1) Obtain History Data (SOH + LW) Release Return Error (SOH + SUB) Printer Status (SOH + MG) Counter Status (SOH + ME) Sensor Status (SOH + SG) Head Status (SOH + HC) System Version Information (SOH + SB) Memory Status (SOH + EB) Format Overlay Status (SO
Table 26: Table 27: Table 28: Table 29: Table 30: Table 31: Table 32: Table 33: Table 34: Table 35: Table 36: Table 37: Table 38: SATO CONTACTS CODE128 Data Values (BG) Format ID List (BX) Parameters (PG) Parameters (PC) Parameters (LD) Valid Commands (YS) Invalid Commands (YS) Valid Commands (&R) Valid Commands (&S) Error Commands (&S) Valid Commands (/N) Specified Item Status Item Status In Process 7-18 7-19 7-19 7-21 7-22 7-22 7-22 7-23 7-23 7-23
Unit 1: Introduction INTRODUCTION • • SATO GL4xxe SBPL Programming Reference About This Manual Print Area Calculation Page 1-1
Unit 1: Introduction ABOUT THIS MANUAL This manual is laid out consistent with the product discussed and provides all of the information required for printer programming. This manual also incorporates the use of special information boxes. Examples of these boxes and the type of information provided in each, are below. WARNING: PROVIDES INFORMATION THAT, IF UNHEEDED, MAY RESULT IN PRESONAL INJURY. CAUTION: PROVIDES INFORMATION THAT, IF UNHEEDED, MAY RESULT IN EQUIPMENT DAMAGE.
Unit 1: Introduction PRINT AREA CALCULATION Many print applications may not require labels that fill the entire printable area of the printer. Therefore it is important to understand how to calculate print size so that the printed image does not exceed the label size. There are two axis to consider when calculating for print position; horizontal and vertical. The horizontal axis is lateral positioning parallel with the print head and is measured from the right side of the media to the left.
Unit 1: Introduction Lastly, one must calculate the horizontal distance to offset printing to accommodate for the difference in size from the printer’s maximum printable width to the label width.
PROGRAMMING CONCEPTS • • • • • SATO GL4xxe SBPL Programming Reference Programming Language Selecting Protocol Codes Using Basic Print Position Commands GL-specific Commands Page 2-1
Unit 2: Programming Concepts PROGRAMMING LANGUAGE A programming language for a printer is a familiar concept to most programmers. It is a group of commands that are designed to use the internal intelligence of the printer. The commands, which are referred to as SATO Command Codes, contain non-printable ASCII characters (such as , , ) and printable characters.
Unit 2: Programming Concepts SELECTING PROTOCOL 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. Each set is made up of six special characters.
Unit 2: Programming Concepts USING BASIC It may be useful to test your printer using a BASIC program on a PC or write your actual production programs in BASIC. Whatever the reason, if working in BASIC, some of the following hints may be helpful. Set the WIDTH of the output device to 255 characters to avoid automatically sending and characters after every line. The command string should be continuous and uninterrupted by and/or commands.
Unit 2: Programming Concepts PRINTING WITH THE RS232C PORT 5 REM CL612 Parallel Example Identifies the program as a CL612e RS232C port print label. The “REM” prevents this data from being sent to the printer and displays it only on the screen. 10 E$=CHR$(27) Sets the“E$”string as an character. OPEN “COM1:9600,N,8,1,CS,DS”AS #1 Opens the COM1 port for output and sets the parameters as 9600 baud, No parity, 8 Data bits, 1 Stop bit and instructs the port to ignore the CTS and DSR control signals.
Unit 2: Programming Concepts PRINT POSITION COMMANDS There are three methods using command codes to properly orient print images on a label. They are as follows: MEDIA SIZE COMMAND The Media Size Command (A1) allows specification of the label width and length so the printer may automatically adjust itself relative to the command entry. However, the label size specified and the actual label size must match.
Unit 2: Programming Concepts NOTE: The A3 Base Reference Point command can also shift the reference point in a negative direction (toward the outside edge of the label). The Command Code subsection contains a sample label output for each command code. These samples reflect how the printed information would appear on a 4.25 inch wide label.
Unit 2: Programming Concepts This page is left blank intentionally SATO GL4xxe SBPL Programming Reference Page 2-8
COMMAND QUICK REFERENCE • SATO GL4xxe SBPL Programming Reference A through Z (all commands) Page 3-1
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION DESCRIPTION A Start Code. Begins all print jobs ~Aaaaa Cut, Label. Specifies the number of labels to print between each cut. It is independent of the Quantity command. aaaa ~aaaa = Number of labels between each cut Cut, Job. Cuts labels at a specified interval in a print job. Quantity of labels printed is equal to the product of the quantity specified x the value of aaaa.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION *a,bbb @,nn...n DESCRIPTION Clear Memory Card. Stores a label image in Expanded Memory. a = Memory section to be cleared. G: SATO graphics file (001 to 999) P: PCX graphics file (001 to 999) F: Stored formats (001 to 999) O: TrueType fonts, memory card (001 to 009) R: BMP graphic file (001 to 999) bbb = BMP graphic file (001 to 999) Offline/Pause. Signals the printer to go offline after upon job completion. nn...
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION Babbcccd BC BDabbcccd DESCRIPTION Bar Codes. Prints a 1:3 ratio barcode.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION BF BG BI BJaa..abb..b BJDcccccddddee...e BJFaaaaaaaa DESCRIPTION Bookland. Prints a Bookland barcode. a = Narrow bar width (01 to 12 dots) b = Height of barcode (001 to 999 dots) n = Print data CODE 128. Prints a CODE 128 barcode. a = Narrow bar width (01 to 12 dots) b = Height of barcode (001 to 999 dots) n = Print data SSCC. Prints a SSCC barcode.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION BJTaabbccddeefffgg..g BKaabbcddeeefffnn...n BPn...n DESCRIPTION True Type Font, Recall. Recalls a previously stored bit mapped TrueType font for use. aa = Font ID (01 to 99) bb = Horizontal Expansion (01 to 12) cc = Vertical Expansion (01 to 12) dd = Reserved, always 00 ee = Character pitch (01 to 99) ffff = Number of characters gg...g = Data to be printed using font PDF417. Prints PDF417 2-D symbols.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION BQ BTabbccddee DESCRIPTION QR Code. Prints QR CODE of 2D code.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION BVa,b,c, ddddddddd,eee, f f f,gg..g BWaabbb BXaabbccddeeefffghh DESCRIPTION Maxicode. Prints 2-D Maxicode symbols per AIM I.S.S. specification. a = Position of symbol within the set b = Total number of symbols in the set c = Mode dd..d = 9 digit numeric Postal Code eee = 3 digit numeric Country Code fff = 3 digit numeric Service Class gg..g = Data, terminated by Bar Codes. Expansion.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION CLa DESCRIPTION CL/LF Deletion. Deletes the occurrence of CR/LF characters in the data stream. a CSa dn...n DCxx...x 0: Do not delete CR/LF 1: Delete CR/LF Print Speed Selection. Specifies a unique print speed in in./sec. through software for a particular label. a Dabbcccn = = Speed Range Barcode, Human Readable Information (HRI). Specifies the character type of human readable information of barcode.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION $ $= DESCRIPTION Font, Vector. Specifies printing of the unique SATO vector font.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION FC DESCRIPTION Print, Circles. Specifies the printing of circles. a = Radius (5 to 999 dots) b = Line width (1 to 999 dots) c = Sectional number (0 to 8 dots) d = Pattern (0to 3) 0: Solid black line 1: Gray 1 2: Gray 2 3: Gray 3 FM Memory Cartridge Format. Formats the memory cartridge. Up to 8 bytes of alphanumeric and symbol (omissible) FP Memory Cartridge Printing. Printing the memory cartridge.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION FXaaabcccdddeee Gabbbccc(data) DESCRIPTION Data Matrix. Sequential Numbering. Prints sequential numbered Data Matrix 2-D symbols. aaa = Number of duplicate labels (001 to 999) b = Increment or decrement +: Increment -: Decrement ccc = Increment/decrement steps (001 to 999) ddd = Sequential numbering start position (001 to 999) from left side. eee = Incremented data length (001 to 999). Measured from start position.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION GRccc DESCRIPTION Graphic, Recall. Recalls for printing the graphic image stored by the GI command. ccc GTaaa,bbbbb, nn. . . n = Storage number (001 to 999) BMP File, Store. Stores BMP files in Expanded Memory. aaa = Storage area number (001 to 999) bbbbb = Size of BMP file in bytes nn....n = Data Haaaa Horizontal Position.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION DESCRIPTION LDa,b,c,d,e,f,g,i,jj User Download. Downloads a user defined set of Alternate Protocol Command Codes. See Appendix E for details on the proper usage of this command. LFa Online Feed. To enable or disable online label feed. a LHa = 0: Enables label feed when online 1: Disables label feed when online Zero Slash. Allows printing zeroes with or without a slash.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION DESCRIPTION PS Proportional Font Spacing. Places the printer in the proportional character spacing mode. Will not work with U Font. PYaaa PCX File, Recall. Recalls a PCX graphics file. aaa Qaaaaaa RF The storage number assigned to the file (001 to 999) Print Quantity. Specifies the total number of labels to print. aaaaaa RDabb,ccc,ddd,nn...n = = Total quantity of labels to print for the job (000001-999999) Font Type.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION /D /N Tabcc(data) DESCRIPTION Field, Recall. To recall a field previously stored in in the memory card. bb = Quantity of fields to be recalled (01 to 99). cc...c = Data to be placed in field. Field, Store. To store a field in the memory card. bb = Field number (01 to 99). cc = Quantity of characters in the field. Store Custom Designed Characters.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION WB DESCRIPTION Font Type. Specifies the 18W x 30L dot matrix font (includes descenders). a WDHaaaaVbbbbXccccYd ddd WKnn...n aaaa = Horizontal position of the top left corner of image area bbbb = Vertical position of the top left corner of image area cccc = Horizontal length of image area dddd = Vertical length of image area Job Name. Stores the job name. WTaabbccddee XBa = Job name, up to 16 ASCII characters Font type.
Unit 3: Command Quick Reference COMMAND QUICK REFERENCE INSTRUCTION XL DESCRIPTION Font Type. Specifies the 48W x 48H dot matrix font (includes descenders). a = Smoothing specification 0: Smoothing disabled 1: Smoothing enabled n = Print data XM Font type. Specifies the 24W x 24H dot matrix font (includes descenders). XS Font type. Specifies the 17W x 17H dot matrix font (includes descenders). XU Font type. Specifies the 5W x 9L dot matrix font (includes descenders). YR,aaa/D,bb,cc...
STANDARD COMMAND CODES • • • • • • • • SATO GL4xxe SBPL Programming Reference Control Commands Modification Commands Print Position Commands Font Commands Barcode Commands 2D Code Commands System Commands Graphic Commands Page 4-1
Unit 4: Standard Command Codes CONTROL COMMANDS START/STOP LABEL 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. FORMAT Start Command: A Stop Command: Z A must precede data Z must follow data.
Unit 4: Standard Command Codes PRINT QUANTITY FUNCTION To specify the total quantity of labels to print for a given print job. FORMAT Qaaaaaa aaaaaa = Total number of labels to print (1 to 999999) Place just preceding Z, unless ~ exists, then preceding that. This command must be present in every print job. EXAMPLE A H0100V0100WB1SATO Q3 Z OUTPUT Three labels containing the data “SATO” will be printed.
Unit 4: Standard Command Codes JOB ID, STORE FUNCTION To add an identification number to a job. The status of the job can then be determined using the ENQ command in the Bi-Com status mode. FORMAT IDaa aa = Job ID assigned (01 to 99) Place immediately following the A in the job data stream. EXAMPLE A ID02 . . . Job . . . Z OUTPUT This command does not result in printer output. NOTES Works only in Bi-Communications modes.
Unit 4: Standard Command Codes JOB NAME FUNCTION This command is to identify a particular job using a descriptive name. FORMAT WKnnn. . . n nn..n = Job Name assigned, up to 16 ASCII characters Place immediately following the A in the job data stream. EXAMPLE A WKSATO . . . Job . . . Z OUTPUT This command does not result in printer output. The information is returned to the host upon receipt of a Bi-Com status request. NOTES Works only in Bi-Com 4 mode.
Unit 4: Standard Command Codes MODIFICATION COMMANDS CHARACTER, EXPANSION FUNCTION To independently expand characters in both the horizontal and vertical directions. The command allows enlargement of the base size of each font (except the vector font) up to 12 times in either direction. FORMAT Laabb aa = Multiple to expand horizontally (01 to 12) bb = Multiple to expand vertically (01 to 12) Place preceding the data to be expanded.
Unit 4: Standard Command Codes CHARACTER, PITCH 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. FORMAT Paa aa = Number of dots between characters (00 to 99) Place preceding the text to be printed.
Unit 4: Standard Command Codes CHARACTER, FIXED SPACING FUNCTION To reset proportional spacing and place the printer back to fixed spacing. FORMAT PR Place preceding the fixed space data. EXAMPLE A H0100V0050PS L0202XMPROPORTIONAL SPACING H0100V0180PR L0202XMFIXED SPACING Q1 Z OUTPUT (4-3) NOTES This command only works with proportionally spaced fonts: XU, XM, XS, XL and XB.
Unit 4: Standard Command Codes ROTATE, FIXED BASE REFERENCE POINT 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. Note that the entire print area is shown, but your label will probably not be as large as the entire area.
Unit 4: Standard Command Codes SEQUENTIAL NUMBERING FUNCTION To print sequential fields (text, bar codes) where all incrementing is done within the printer. Up to eight different sequential fields can be specified per label. Sequencing is effective for up to 99-digit numeric data within each field.
Unit 4: Standard Command Codes PRINT, CIRCLES FUNCTION Specifies the printing of circles. FORMAT FC a = Radius (5 to 999 dots) b = Line width (1 to 999 dots) c = Section number (0 to 8) d = Pattern (0 to 3) 0: Solid black line 1: Gray 1 2: Gray 2 3: Gray 3 Place anywhere within the data stream. EXAMPLE A H0200V0200FC,100, 8, 0, 0 Q1 Z OUTPUT This command sets the base reference point to the center of a circle and can be registered to the format.
Unit 4: Standard Command Codes PRINT, TRIANGLES FUNCTION Specifies the printing of triangles. FORMAT FT a = Side length (10 to 2000 dots) b = Line width (1 to 1000 dots) c = Base length (10 to 2000) d = Pattern (0 to 3) 0: Solid black line 1: Gray 1 2: Gray 2 3: Gray 3 Place anywhere within the data stream.
Unit 4: Standard Command Codes PRINT, LINES & BOXES FUNCTION To print horizontal lines, vertical lines, and boxes as images on the label.
Unit 4: Standard Command Codes REVERSE IMAGE FUNCTION To reverse an image area from black to white and vice versa. Use the Print Position commands (H and V) to locate the top left corner of the reverse image area. FORMAT (aaaa,bbbb a = Horizontal length in dots of reverse image area b = Vertical height in dots of reverse image area. Must be preceded by all other data and be placed just before Q.
Unit 4: Standard Command Codes FORM OVERLAY, STORE 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. FORMAT & Must be preceded by all other data and placed just before Stop (Z) command. EXAMPLE A H0100V0125 STHIS IS THE STORED IMAGE WITH A BARCODE H0100V0165B103100*12345* & Z OUTPUT This command does not result in printer output.
Unit 4: Standard Command Codes FORM OVERLAY, RECALL FUNCTION To recall the label image from the form overlay memory for printing. Additional or different data can be printed with the recalled image. FORMAT / Must be preceded by all other data and placed just before Print Quantity (Q) command.
Unit 4: Standard Command Codes REPLACE DATA (PARTIAL EDIT) 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.
Unit 4: Standard Command Codes COPY IMAGE AREA (PARTIAL COPY) FUNCTION To copy an image from one location to another on the same label. This may be useful for duplicating individual fields or entire sections of the label with only one command.
Unit 4: Standard Command Codes JOURNAL PRINTING 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. FORMAT J Place immediately following A.
Unit 4: Standard Command Codes RECALL AND PRINT OF FONT & LOGO FUNCTION Calls and prints fonts and logos downloaded with the exclusive tool. FORMAT RF a = Font ID number (01 to 99) b = Print digit (1 to 9999) n = Print data Place after H but before Q1. EXAMPLE A H0100V0100RF020002,826B Q1 Z OUTPUT (4-15) NOTES Specify the value of Unicode for print data. When calling and printing a logo, specify Print digit: 0002, Print data: <6B82>16.
Unit 4: Standard Command Codes MIRROR IMAGE FUNCTION To allow mirror image printing of data, such as on transparent labels to be applied to a glass or other transparent surface. FORMAT RM Place after the label data. EXAMPLE Label #1 A A1H0100V0050XL0ABCDEF RM Q1 Z OUTPUT (4-16) NOTES The A1 Media defines the area to be mirrored. This command can be used with the Rotate Fixed Base Reference Point (%) command.
Unit 4: Standard Command Codes PRINT POSITION COMMANDS MEDIA SIZE FUNCTION To set the size of the media. FORMAT A1aaaabbbb aaaa = Label Height in dots (0 to Hmax) bbbb = Label Width in dots (0 to Vmax) Place in a separate data stream to the printer. INPUT A A108321424 Z OUTPUT This command does not result in printer output. It is used to automatically adjust the offset values for the size of label being used.
Unit 4: Standard Command Codes PRINT POSITION FUNCTION The Horizontal and Vertical commands specify the top left corner of a field or label, using the current base reference point as an origin. They also establish a reference point for subsequent fields until the next horizontal and/or vertical print position command is issued.
Unit 4: Standard Command Codes FONT COMMANDS FONTS: S, M, U, OA, OB, XB, XL, XS, XM, XU FUNCTION To print text images on a label. These are eight of the built-in fonts available on the printer. All matrices include descenders. FORMAT Font XU: XU Font U: U Font XS: XS Font S: S Font XM: XM Font M: M Font OA: OA Font OB: OB Place preceding the data to be printed.
Unit 4: Standard Command Codes SMOOTHING FONTS: WB, WL, XB, XL FUNCTION To print text images on a label. These are the four auto-smoothing fonts available on the printer. FORMAT Font WB: WBa Font XB: XBa Font WL: WLa Font XL: XLa a = 0: Disables auto-smoothing of font 1: Enables auto-smoothing of font (see notes below) Place preceding the data to be printed.
Unit 4: Standard Command Codes FONT, RASTER FUNCTION To print point size characters created using font definitions. FORMAT ARDabb,ccc,ddd,eee,nn. . .
Unit 4: Standard Command Codes FONT, RASTER OUTPUT (4-20) NOTES The “cccc” Horizontal Size and “dddd” Horizontal Size parameters can be entered either in dots or points, but both parameters must use the same value types. If point size is used, the point size is preceded by a “P”. Refer to Appendix: Reference Tables 20 & 21 for additional information.
Unit 4: Standard Command Codes FONT, VECTOR FUNCTION To specify printing of the unique SATO vector font. The vector font allows large characters to be printed with smooth, round edges. Each character is made of a number of vectors (or lines), and will require slightly more printer compiling time.
Unit 4: Standard Command Codes BARCODE COMMANDS BAR CODES FUNCTION To print bar code images on a label.
Unit 4: Standard Command Codes BAR CODES EXAMPLE Note: Carriage Returns and Line Feeds have been added to the command listing for clarity and should not be included in the actual data stream.
Unit 4: Standard Command Codes BAR CODES OUPUT Without Incrementing: AH0100V0100 BI104150101234567000000001 Q2Z (4-22a) With Incrementing: AH0100V0100 F001+001BI104150101234567000000001 Q2Z (4-22b) NOTES 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.
Unit 4: Standard Command Codes BARCODE, HUMAN READABLE INFORMATION (HRI) FUNCTION Specifies the character type of human readable information (HRI) for barcode. FORMAT da a = Barcode type 3: JAN/EAN13 4: JAN/EAN8 H: UPC-A b = c = Barcode Height (001 to 999 dots) n = Print Data (barcode data) d = Character Type Specification (XU,XS, XM, XB, XL, OA, OB) n = Print Data (HRI data) Narrow Bar Width (01 to 12 dots) Place anywhere after V but before Q.
Unit 4: Standard Command Codes EAN/UCC COMPOSITE SYMBOL FUNCTION Specifies the composite symbol of EAN/UCC. FORMAT 1 EUaabbn~n a = 1D barcode symbology a = 01 : RSS-14 02 : RSS-14 (Truncated) 03 : RSS-14 (Stacked) 04 : RSS-14 (Stacked Omnidirectional) 05 : RSS (Limited) 07 : UPC-A 08 : UPC-E 09 : EAN13 10 : EAN8 b = Minimum Bar Width (01 to 12 dots) n = Print Data (Sum of 1D and 2D codes up to 120-digit) Place anywhere after V but before Q.
Unit 4: Standard Command Codes CODE 93 FUNCTION Specifies CODE93 barcode. FORMAT BCaabbbccn~n a = Narrow bar width (01 to 12 dots) b = Barcode Height (001 to 999 dots) c = Data Digit Number (01 to 99) n = Print Data (barcode data) Place anywhere after V but before Q. EXAMPLE H0100V1125BC0310008123 H0155V1240XS1234ABCD OUTPUT (4-23) NOTES The quantity of digit data and input data must be equal.
Unit 4: Standard Command Codes BOOKLAND FUNCTION Specifies Bookland barcode. FORMAT BFaabbn~n a = Narrow bar width (01 to 03dots) b = Barcode Height (001 to 999 dots) n = Print Data (numeric (0 to 9) 2 to 5 digits) Place anywhere after V but before Q.
Unit 4: Standard Command Codes CODE128 FUNCTION Specifies CODE128 barcode. FORMAT BGaabbbn~n a = Narrow bar width (01 to 12 dots) b = Barcode Height (001 to 999 dots) n = Print Data (barcode data) Place anywhere after V but before Q. EXAMPLE H0200V0550BG03100>GAB>B789>C123456 H0310V665XSAB789123456 OUTPUT (4-25) NOTES Specify Start Code at the head of the data.
Unit 4: Standard Command Codes SSCC FUNCTION Specifies SSCC (Serial Shipping Container Code) barcode. FORMAT BIaabbbcn~n a = Narrow bar width (01 to 12 dots) b = Barcode Height (001 to 999 dots) c = Barcode Expository Font Specification 0: No HRI 1: HRL available (upper part) 2: HRI available (lower part) n = Print Data For barcode data, refer to the UCC/EAN128 code table.
Unit 4: Standard Command Codes SSCC OUTPUT Without incrementing: (4-26a) With incrementing: (4-26b) NOTES UCC128 code is exclusive to Standard Carton ID. When printing in EAN128, designed for the markets in the medical, fresh food, or flowers and plants, use CODE128 Barcode BG to specify print data with application identification or separator that matches each specification.
Unit 4: Standard Command Codes POSTNET FUNCTION To print Postnet bar codes. FORMAT 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) Place immediately preceding the data to be encoded.
Unit 4: Standard Command Codes VARIABLE RATIO BARCODES FUNCTION To print a bar code with a ratio other than those specified through the standard bar code commands (B,BD, and D). This is done through individual control of each of the bar code elements (bars, spaces) as shown above. Remember that this command only applies to the five bar code types shown.
Unit 4: Standard Command Codes BARCODE EXPANSION 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. FORMAT BWabbb aa bbb = Expansion factor by which the width of all bars and spaces will be increased (01 to 12) = Bar height by dot (004 to 999 dots) Place immediately following the BT command and preceding data to be encoded.
Unit 4: Standard Command Codes 2D CODE COMMANDS PDF417 FUNCTION Specifies PDF417 of 2D code.
Unit 4: Standard Command Codes QR CODE FUNCTION Specifies QR Code of 2D code.
Unit 4: Standard Command Codes MAXI CODE FUNCTION Specifies Maxi code of 2D code. FORMAT BVa, b, c, ddddddddd, eee, fff, n~n a = Symbol Number (1 to 8) b = Symbol Digit Number (1 to 8) c = Mode 2: 3: 4: 6: for delivery for delivery standard symbol for reader d = Zip Code (0 to 999999) e = Country Code (001 to 999) f = Service Class (001 to 999) n = Low Priority Message (alphanumeric/symbol) Place anywhere after V but before Q.
Unit 4: Standard Command Codes DATA MATRIX CODE FUNCTION Specifies Data Matrix Code of 2D code.
Unit 4: Standard Command Codes DATA MATRIX CODE, DATA FUNCTION Specifies data for the data matrix code of 2D code. FORMAT DC n = Print data Place after BX. EXAMPLE A H0100V0100BX011002020000000001 DC1234567890 Q1 Z OUTPUT This command does not result in printer output. Refer to DC for printer output. NOTES This code must be placed after the BX command.
Unit 4: Standard Command Codes DATA MATRIX CODE, SEQUENTIAL NUMBER FUNCTION Specifies sequential numbering for the data matrix code of 2D code. FORMAT FX a = Quantity of duplications to print (001 to 999) b = Flag of increase/decrease +: Increase -: Decrease c = Quantity of increase/decrease (001 to 999) d = Specification of digit position (001 to 999) e = Digit number (001 to 999) Place before BX.
Unit 4: Standard Command Codes SYSTEM COMMANDS PRINT SPEED FUNCTION To specify a unique print speed through software for a particular label. This allows flexibility in finding the best performance and quality for the particular label format, media, and ribbon. FORMAT CSa a = Designates the speed selection in ips Place immediately after A and immediately before Z in a separate data stream. Refer to the product manual for specific print speed increments.
Unit 4: Standard Command Codes PRINT DARKNESS FUNCTION To specify a new print darkness setting through software control for unique media and ribbon combinations. FORMAT #Ea a = Print Darkness Value Must be placed immediately after A and immediately before Z in its own separate data stream. Refer to the product manual for specific print speed increments. EXAMPLE A #E2 Z OUTPUT This command does not result in printer output.
Unit 4: Standard Command Codes CUTTING OPERATION FUNCTION To specify the movement of cutting. FORMAT NC EXAMPLE A NC Z c Label stop position A : Print completed B : Not printed C : Not printed D : Not printed " Receiving command " Feeding label to cutting position " Cutting label " Backfeeding to the head position NOTES This command is valid only for the printer equipped with cutter. This command discharges and cuts labels.
Unit 4: Standard Command Codes BASE REFERENCE POINT FUNCTION To establish a new base reference point for the current label. The base reference point is the top left corner or “origin” from where all print position commands are based. This command may be very helpful when using labels less than four inches wide to place images on the printable label surface. It may also be used to move images past preprinted fields on a label. FORMAT A3H-aaaa-Vbbbb - = This character is optional.
Unit 4: Standard Command Codes PRINT AREA, ENLARGEMENT FUNCTION Specifies the print area to be standard height of 178 mm or enlarged to 356 mm. FORMAT AR Standard print area AX Enlarged print area Place after A within the data stream. EXAMPLE A AR Z OUTPUT (4-37) NOTES This command changes the print area of pitch direction. Insert this command after Start of Data Transmission (A).
Unit 4: Standard Command Codes CUT, JOB FUNCTION Regulates label cutting when using a cutter assembly with the printer. This command allows the cutting of a multi-part tag or label at a specified interval within a print job. FORMAT ~aaaa aaaa = Number of labels to print between each cut (1 to 9999) Place following the Print Quantity command Q.
Unit 4: Standard Command Codes CUT, LABEL FUNCTION Regulates label cutting when using a cutter assembly with the printer. This command allows the cutting of a multi-part tag or label at a specified interval within a print job. It differs from the ~ Cut Job command in that it does not interact with the quantity command. FORMAT ESC>~Aaaaa aaaa = Number of labels to print between each cut (1 to 9999) Place preceding the Q Print Quantity command.
Unit 4: Standard Command Codes CUT, LAST FUNCTION Regulates label cutting when using a cutter assembly 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. FORMAT ~B Place in a separate data stream sent to the printer.
Unit 4: Standard Command Codes CLEAR PRINT JOBS & MEMORY FUNCTION To clear individual memory or buffer areas of the printer. FORMAT *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.
Unit 4: Standard Command Codes OFFLINE/PAUSE FUNCTION Specifies when, and under what circumstances, the printer goes into an off-line state. When used within a print job, the printer goes off-line after finishing the print job. FORMAT @,nn . . . n nn...n = Optional display message on the LCD (32 characters max.) Place anywhere between A and Z. EXAMPLE A @, LOAD BLUE LABELS AND PLACE PRINTER ON-LINE ...Job... Z OUTPUT This command does not result in printer output.
Unit 4: Standard Command Codes REPEAT LABEL FUNCTION To print a duplicate of the last label printed. FORMAT C Place immediately after A and immediately before Z in a separate data stream. EXAMPLE A C Z OUTPUT A duplicate of the previous label will be printed. NOTES This command will not have an effect if the printer’s power is cycled off and back on since printing the previous label.
Unit 4: Standard Command Codes EEPROM SETUP FUNCTION Registers the operation of the printer in EEPROM. FORMAT PG Place immediately after A. EXAMPLE A PG Z OUTPUT This command does not result in printer output. NOTES This command is not necessary with normal label printing. The operational settings specified are still in effect after powering off the printer. Refer to Appendix: Reference Table 29 for additional information.
Unit 4: Standard Command Codes SERIAL INTERFACE, CONFIGURATION FUNCTION Specifies the programming configuration of the serial interface. FORMAT I2abcde a = Baud rate 0: 9600 bps 1: 9200 bps 2: 8400 bps 3: 57600 bps b = Data bits 0: 8 1: 7 c = Parity 0: No parity 1: Odd parity 2: Even parity d = Stop bits 0: 1 Stop bit 1: 2 Stop bits e = 0: 1: 2: 3: 4: Single item buffer Multi item buffer X-On/X-Off Flow control Bi-Com 4 Bi-Com 3 Place in separate data stream sent to the printer.
Unit 4: Standard Command Codes SENSOR TYPE FUNCTION To select a label sensing method for a print job. FORMAT IGa a = 0: Reflective (Eye-Mark) sensor 1: Gap (transmissive) sensor 2: Sensor not used. Place in separate data stream sent to the printer. EXAMPLE A IG1 Z OUTPUT This command does not result in printer output. NOTES When the power is cycled, the value set by this command is lost and replaced by the default value stored in the EEPROM.
Unit 4: Standard Command Codes LINE FEED FUNCTION To print multiple lines of the same character size without specifying a new print position for each line. FORMAT 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. Place preceding the text that will use the line feed function.
Unit 4: Standard Command Codes USER DOWNLOAD FUNCTION Allows the user to define custom Protocol Command codes. FORMAT LDa, a = Replacement character for STX b = Replacement character for ETX c = Replacement character for ESC d = Replacement character for ENQ e = Replacement character for CAN f = Replacement character for NUL g = Replacement character for OFFLINE h = Auto-Online. Printer powers up in the online mode. 0: Yes 1: No i = Zero Slash.
Unit 4: Standard Command Codes LANGUAGE FUNCTION Specifies the display language for the LCD. FORMAT LAa a = Bar Code Symbol 0: English 1: French 2: German 3: Spanish 4: Italian 5: Portuguese 6: Extensible language (Japanese, etc.) Place immediately following A. EXAMPLE A LA0 Z OUTPUT This command does not result in printer output. NOTES This function may also be set through the LCD and is not disclosed to users. Option 6 above is not valid without a memory card change.
Unit 4: Standard Command Codes ZERO SLASH FUNCTION To allow printing of numeric zeroes with a slash. FORMAT LHa a = 0: Print zeroes without slash 1: Print zeroes with slash Place in a separate data stream before any label data is transmitted. EXAMPLE A LH0 Z OUTPUT This command does not result in printer output. NOTES This command can also be set using the LCD panel. The last setting received, whether it is via this command or manually input via the LCD panel will be active.
Unit 4: Standard Command Codes ONLINE FEED FUNCTION Enables label feeding when in the online mode. FORMAT LFa a = 0: Enables label feed when online. 1: Disables label feed when online Place in a separate command stream before label data is transmitted to the printer. EXAMPLE A LF0 Z OUTPUT Feeds a blank label when entering the online mode. NOTES This command can also be set using the LCD panel.
Unit 4: Standard Command Codes PRINT LENGTH, EXPANSION FUNCTION To increase the maximum print length (in feed direction) for a label. FORMAT EX0 Sets the print length to maximum AR Resets the maximum print length to 7" (178 mm) Must follow the Start Code command within it is own separate data stream.
Unit 4: Standard Command Codes GRAPHIC COMMANDS GRAPHICS, CUSTOM FUNCTION To create and print custom graphics (logos, pictures, etc.) on a label. FORMAT Gabbbccc(data) a = Specifies format of data stream to follow B Binary format H Hexadecimal format bbb = Number of horizontal 8 x 8 blocks ccc = Number of vertical 8 x 8 blocks (data) = Hex data to describe the graphic image Place anywhere within the data stream after the necessary position commands.
Unit 4: Standard Command Codes GRAPHICS, BMP FILE FUNCTION To allow the creation and printing of graphic images using a BMP file format. FORMAT GMaaaaa,(data) aaaaa = Number of bytes to be downloaded Place anywhere within the job data stream. EXAMPLE A V0100H0100GM03800,(...Data...) Q1 Z OUTPUT (4-53) NOTES The maximum number of bytes that can be downloaded is 32K (compressed) and includes the BMP header information.
Unit 4: Standard Command Codes GRAPHICS, PCX FILE FUNCTION To allow the creation and printing of graphic images using a PCX file format. FORMAT GPaaaaa,(data) aaaaa = Number of bytes to be downloaded Place anywhere within the job data stream. EXAMPLE A V0150H0100GP03800,(...Data...) Q1 Z OUTPUT (4-54) NOTES The maximum number of bytes that can be downloaded is 32K (compressed). The number specified by this command includes the PCX header information.
Unit 4: Standard Command Codes COPY IMAGE AREA FUNCTION To copy an image from one location to another on the same label. This may be useful for duplicating individual fields or entire sections of the label with only one command.
Unit 4: Standard Command Codes This page is left blank intentionally SATO GL4xxe SBPL Programming Reference Page 4-72
OPTIONAL COMMAND CODES • • SATO GL4xxe SBPL Programming Reference Calendar Commands Memory Card Commands Page 5-1
Unit 5: Optional Command Codes CALENDAR COMMANDS CALENDAR PRINTING FUNCTION Prints the date and/or time field from the printer’s internal clock. FORMAT WA(elements) Elements = YYYY: YY: MM: HH: hh: mm: ss: TT: JJJ: WW: ww: 4 digit (1981 to 2080) 2 digit (00 to 91) Month (01 to 12) DD Day (01 to 31) 12 Hour clock (00 to 11) 24 Hour clock (00 to 23) Minute (00 to 59) Seconds (00 to 59) AM or PM Julian Date (001 to 366) Week (00 to 53) Week (01 to 54) Place anywhere within the data stream.
Unit 5: Optional Command Codes CALENDAR INCREMENT FUNCTION Prints the date and/or time field from the printer’s internal clock. FORMAT WPabbb a = Y: Years M: Months D: Days h: Hours W: Week number Place anywhere within the data stream. EXAMPLE A H0100V0100XB1Current Date: WAMM/DD/YY WPM06 H0100V0200XB1Expiration Date: WAMM/DD/YY Q1Z OUTPUT (5-1) NOTES Once the year increments past “99” it will wrap back to “00”.
Unit 5: Optional Command Codes CALENDAR CONFIGURATION FUNCTION To set the time and date of the printer’s internal clock. FORMAT WTaabbccddee aa = Year (00 to 99) bb = Month (01 to 12) cc = Day (01 to 31) dd = Hour (00 to 23) ee = Minute (00 to 59) Place anywhere within the data stream. EXAMPLE A WT9312251300 Z OUTPUT There is not a printer output as a result of this command. NOTES Once the year increments past “99” it will wrap back to “00”.
Unit 5: Optional Command Codes MEMORY CARD COMMANDS CARD SLOT FOR USE FUNCTION Specifies the card slot for use. FORMAT CCa a = Slot number (1 fixed) Place immediately following A. EXAMPLE A CC1 Z OUTPUT There is not a printer output as a result of this command. NOTES Specify this command for memory card function. When the card is not inserted, a card error will occur. GL SPECIFIC DATA For the GL4xxe architecture, the command parameter can be 1 or 2.
Unit 5: Optional Command Codes CARD FORMAT FUNCTION Specifies the format (initialization) of memory card. FORMAT BJFa a = User ID (up to 8 bytes of alphanumerics and symbols) Place anywhere between A and Z. EXAMPLE A CC1 BJFsatocard Z OUTPUT There is not a printer output as a result of this command. NOTES This command is not valid without an optional memory card. Specify the Card Slot for Use prior to using this command.
Unit 5: Optional Command Codes MEMORY CARTRIDGE FORMAT FUNCTION To format the memory cartridge. FORMAT FMaaaaaaaa a = “User ID” [Up to 8 bytes of alphanumeric and symbol (omissible)] EXAMPLE A CC1FMSATO Z NOTES Specify slot No. with Card Slot for Useprior to this command. This command cannot be used in combination with other commands. if formatting the card by accident, registered data will be erased. We are not liable for any damages or loss from such an occurrence.
Unit 5: Optional Command Codes MEMORY CARD CLEAR FUNCTION Clears the entire contents in the optional memory card. FORMAT *a a = Item to be cleared G: SATO Graphic P: PCX File M: BMP File F: Format O: True Type Font R: Form Overlay b = Registration number 000 to 999 True Type Font 001 to 999 Except True Type Font Place anywhere between A and Z. EXAMPLE A *G Z OUTPUT There is not a printer output as a result of this command.
Unit 5: Optional Command Codes PRINT MEMORY CARD STATUS FUNCTION Prints the status of memory card. FORMAT BJS Place anywhere between A and Z. EXAMPLE A BJS Z OUTPUT (5-2) NOTES This command is for printing the memory card status and cannot be used in combination with other commands. The status can be chaecked with the label of W68mm and H90mm.
Unit 5: Optional Command Codes TRUE TYPE FONT, RECALL FUNCTION Specifies to invoke True Type Font. FORMAT BJRabbccddeeffffgg...g BJTa,aa,bb,cc,dd,ee,ffff,gg...g a = Font ID (00 to 99) b = Horizontal magnification (01 to 12) c = Vertical Magnification (01 to 12) d = Character Pitch (01 to 99) e = Backup (00 fixed) f = Print Character Quantity (0000 to 9999) g = Data Place anywhere between A and Z.
Unit 5: Optional Command Codes TRUE TYPE FONT, STORE FUNCTION Specifies the storageTrue Type Font. FORMAT Begin download BJ(aa...abb..b Download BJDcccccddddee...e End download BJ a = Font Description (specification of 40 bytes of font) b = Date (10 bytes of date data) c = Memory Offset (5 bytes of memory offset in hex) d = Quantity of Data bytes (0001 to 2000) e = Font data to download (0001 to 2000) Place anywhere between A and Z.
Unit 5: Optional Command Codes FORMAT/FIELD, RECALL FUNCTION To recall a field from a stored format and place new data in the field. FORMAT YR,aa/D,bb,cc....c aa = Format number to be recalled (01 to 99) bb = Field number to be recalled (01 to 99) cc...c = Data to placed in the recalled field Place immediately following the CC Slot Select command.
Unit 5: Optional Command Codes FORMAT/FIELD, STORE FUNCTION To store a format field description in the memory card. FORMAT YS,aa/N,bb,cc....c aa = Format number to be stored(01 to 99) bb = Field number to be stored (01 to 99) cc...c = Field length to be stored (01 to 99) Place immediately following the CC Memory Area Select command.
Unit 5: Optional Command Codes FORM OVERLAY, RECALL FUNCTION To recall the label image from stored in the Expanded Memory. FORMAT &R,aa aa = Storage number (01 to 99) Place immediately following the CC Memory Area Select command. EXAMPLE A CC1 &R,01 Q1Z OUTPUT There is not a printer output as a result of this command. NOTES The Expanded Memory option is required fro this command. The CC Memory Area Select command must be sent prior to this command.
Unit 5: Optional Command Codes FORM OVERLAY, STORE FUNCTION To store fixed print contents to the memory card. FORMAT &S,aa,bbbb,cccc aa = Store number (01 to 99) bbbb = Horizontal size of window (50 to H max) cccc = Vertical size of window (50 to V max) Place immediately following the CC Memory Area Select command. EXAMPLE A CC1 &S,01 Z OUTPUT There is not a printer output as a result of this command.
Unit 5: Optional Command Codes FORM OVERLAY, STORE Example A: Normal Operation A V100H100P2L0202 XMABCD V60H60 FW0808V800H400 V320H60 FW04H400 CC1 &S1 Z Example B: When window size is specified A A1800400 V100H00P2L0202 XMABCD CC1 &S, 1, 20, 200 Z Example C: When print is specified after &S A V100H100P2L0202 XMABCD V60H60 FW0808V
Unit 5: Optional Command Codes BMP FILE, RECALL FUNCTION To recall a previously stored BMP file stored in Expanded Memory. FORMAT GCaaa aaa = Storage number (001 to 999) Place after the CC Memory Area Select command. EXAMPLE A CC1V100H100 GC001 Q1Z OUTPUT (5-6) NOTES The CC Memory Area Select command must be sent before this command. The printed image can be expanded or rotated.
Unit 5: Optional Command Codes BMP FILE, STORE FUNCTION To store for printing a graphic file in a BMP format in the optional Expanded Memory. FORMAT GTaaa,bbbbb,nn...n aaa = Storage number (001 to 999) bbbbb = Size of BMP file in bytes nn..n+ = Data Place within its own data stream specifying the placement of the graphic. EXAMPLE A CC1GT001, 12345, nn...n Q1Z OUTPUT There is no printer output as a result of this command.
Unit 5: Optional Command Codes PCX FILE, RECALL FUNCTION To recall for printing a graphic file previously stored in a PCX format in the Memory Card. FORMAT PYaaa aaa = Storage number (001 to 999) This command must be placed within its own data stream specifying the placement of the graphic.
Unit 5: Optional Command Codes PCX FILE, STORE FUNCTION To store for later printing a PCX graphic file in the Expanded Memory. FORMAT PIaaa,bbbbb,{data} aaa = Storage number (001 to 999) bbbbb = Size of PCX File in bytes. {data} = Data Place within its own data stream. EXAMPLE BASIC Program to download a PCX file to Expanded Memory Area 1, Storage Area 1 OPEN .C:\WIZARD\GRAPHICS\LION.PCX. FOR INPUT AS #2 DA$ = INPUT$(3800,#2) C$ = CHR$(27) WIDTH .LPT1:.
Unit 5: Optional Command Codes CUSTOM GRAPHICS, RECALL FUNCTION Use the Recall command any time you want to print a graphic image on a label along with other printed data. FORMAT GRaaa aaa = Storage number (001 to 999) The Recall command is sent in a secondary data stream to print the graphic, and follows any necessary position or size commands.
Unit 5: Optional Command Codes CUSTOM GRAPHICS, STORE FUNCTION To provide similar functionality to the G Custom Graphic command, but allows for the graphic image to be stored in Expanded Memory. Use the Store command to send the graphic data to the printer’s optional Expanded Memory.
Unit 5: Optional Command Codes CHARACTER, CUSTOM DESIGNED FUNCTION To allow for the creation, storage, and printing of custom characters, such as special fonts or logos. Up to 50 individual characters may be stored in the custom character volatile memory.
Unit 5: Optional Command Codes This page is left blank intentionally SATO GL4xxe SBPL Programming Reference Page 5-24
BI-DIRECTIONAL COMMUNICATIONS • • SATO GL4xxe SBPL Programming Reference Introduction Enquire & Response Page 6-1
Unit 6: Bi-Directional Communications INTRODUCTION Bi-Directional communications is a two-way communications protocol between the host and the printer enabling the host to monitor and control the printer’s operational status. The Bi-Com 5 protocol only works in the Multi-Job Buffer mode. GENERAL CONFIGURATION Refer to Appendix: Reference Table 40 for printer configuration commands.
Unit 6: Bi-Directional Communications ENQUIRE & RESPONSE ENQUIRE (SOH + ENQ) Upon receipt of an ENQ command, the printer responds with status information bounded by an STX/ETX pair. The status information is defined as follows: { # Byte ID }{ # Status Byte }{ # Byte Label Remaining }{ # Byte Job Name } ID Identifies the current print job ID. Is defined using the Job ID (ID) command transmitted with the print job. Status Defines the current status of the printer.
Unit 6: Bi-Directional Communications PRINT START (SOH + DC1) This command enables the printer to exit the pause mode by the request command to resume printing. The host also sends an ENQ command to confirm execution. Execution should be avoided while sending print or other data. Upon receipt of this command, an ACK is returned if an error condition does not exist and a NAK if one does.
Unit 6: Bi-Directional Communications COUNTER STATUS (SOH + ME) Receipt of SOH followed by ME causes the printer to return information bounded by an STX-ETX pair that reports the operating status of the printer’s life counters. SENSOR STATUS (SOH + SG) Receipt of SOH followed by SG causes the printer to return information bounded by an STX-ETX pair that reports the current operating status of the printer’s sensors.
Unit 6: Bi-Directional Communications ITEM NUMBER CHECK The printer checks the item number of received print data whether the number is increasing one (1) to every item. If an error is detected, the printer activates “ITEM NUMBER ERROR” at the beginning of that item’s print operation ceases printing. The item number error can only be detected if the Check of Item Number is enabled. In addition to various printer keypad functions, a BCC error may be released by either sending a SUB command or a CAN command.
Unit 6: Bi-Directional Communications DESIGNATION OF SWITCHING STATUS 5 RETURN (ESC + PL) This command switching the communication protocol. Avoid the inclusion and use of this command in the print data (A - Z). The specified contents are still in effect after the printer is powered off. This command is not available for the protocol that is not supported by the current interface. If using LAN interface or changing from driver protocol (or vice versa), repower on the printer.
Unit 6: Bi-Directional Communications This page is left blank intentionally SATO GL4xxe SBPL Programming Reference Page 6-8
APPENDIX • • • SATO GL4xxe SBPL Programming Reference Custom Characters/Graphics Custom Protocol Codes Reference Tables Page 7-1
Unit 7: Appendix CUSTOM CHARACTERS/GRAPHICS CUSTOM DESIGNED CHARACTER EXAMPLE The following example is presented to help understand the use of the Custom Designed Characters command. It demonstrates the design and printing of an “arrow” in a 16 x 16 matrix. 1. Determine which matrix size to use • 16 dot x 16 dots • 24 dots by 24 dots 2. Lay out a grid and draw the image on the grid. • Each square represents one dot • Blacken squares for each printed dot 3.
Unit 7: Appendix ROW BIT MAP HEX 1 0000 0001 0000 0000 01 00 2 0000 0011 1000 0000 03 80 3 0000 0111 1100 0000 07 C0 4 0000 1111 1110 0000 0F E0 5 0001 1111 1111 0000 1F F0 6 0011 1111 1111 1000 3F F8 7 0111 1111 1111 1100 7F FC 8 1111 1111 1111 1110 FF FE 9 0000 0111 1100 0000 07 C0 10 0000 0111 1100 0000 07 C0 11 0000 0111 1100 0000 07 C0 12 0000 0111 1100 0000 07 C0 13 0000 0111 1100 0000 07 C0 14 0000 0111
Unit 7: Appendix A L505H0150V100K1B903F L505H0600V100K1B903F L0303H0125V0250XMTHISSIDE UP ! Q1 Z The printer output for both the hexadecimal and binary format examples is. CUSTOM GRAPHICS EXAMPLE The following example is presented to help you understand the use of the Custom Graphics command. It demonstrates the design and printing of a diskette in a 48 x 48 matrix. 1. Determine the matrix size for the graphic.
Unit 7: Appendix 1 11111111 11111111 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11000000 11111111 11111111 2 11111111 11111111 00000000 00000000 00000000 00000000 000
Unit 7: Appendix CLS OPEN .COM2:9600,N,8,1,CS,DS. FOR OUTPUT AS #1E$ = CHR$(27) PRINT #1,CHR$(2); E$; .A.; E$; .V0100"; E$; .H0100"; E$; .
Unit 7: Appendix The printer output for both the hexadecimal and binary format example is: PCX GRAPHICS EXAMPLE A graphics file in a PCX format may also be transmitted to the printer. The file must not be larger than 32K bytes (DOS file size reported in a DIR listing). For example, the WIZ.PCX image shown below has a file size of 15076 bytes. The uncompressed size (PCX is a compressed file) of the file must not be greater than 64K bytes.
Unit 7: Appendix SATO GL4xxe SBPL Programming Reference Page 7-8
Unit 7: Appendix CUSTOM PROTOCOL CODES This chapter contains information on creating custom Protocol Command Codes. The Protocol Command Codes tell the printer that a specific type of information is being transmitted to it. As an example, the Standard Protocol Command Code specifies the use of an character to tell the printer that the following character(s) will represent a specific command.
Unit 7: Appendix REFERENCE TABLES TABLE 1: VALID COMMANDS (L) Font Modification Graphic Memory Card TABLE 2: VALID COMMANDS (P) Font Barcode Modification <$=>
Unit 7: Appendix TABLE 7: VALID COMMANDS (&) Print Position Font Barcode <$=> <$=> 2D Code Modification <(> Graphic TABLE 8: VALID COMMANDS (/ Print Position Font Ba
Unit 7: Appendix TABLE 12: CHARACTER FONT SET (XU) W5 X H9 CHARACTER SIZE, 12 DOTS/MM HEAD DENSITY, THREE-FOLD HEIGHT/WIDTH TABLE 13: CHARACTER FONT SET (XS) W17 X H17 CHARACTER SIZE, 12 DOTS/MM HEAD DENSITY, TWO-FOLD HEIGHT/WIDTH SATO GL4xxe SBPL Programming Reference Page 7-12
Unit 7: Appendix TABLE 14: CHARACTER FONT SET (XM) W24 X H24 CHARACTER SIZE, 12 DOTS/MM HEAD DENSITY, ONE-FOLD HEIGHT/WIDTH TABLE 15: CHARACTER FONT SET (XB) W48 X H48 CHARACTER SIZE, 12 DOTS/MM HEAD DENSITY, ONE-FOLD HEIGHT/WIDTH SATO GL4xxe SBPL Programming Reference Page 7-13
Unit 7: Appendix TABLE 16: CHARACTER FONT SET (XL) W48 X H48 CHARACTER SIZE, 12 DOTS/MM HEAD DENSITY, ONE-FOLD HEIGHT/WIDTH TABLE 17: VALID COMMANDS (OA, OB) Print Position Modification Barcode Calendar <%> SATO GL4xxe SBPL Programming Reference <&> Page 7-14
Unit 7: Appendix TABLE 18: CHARACTER FONT SET (OA) W24 X H24 CHARACTER SIZE, 12 DOTS/MM HEAD DENSITY, ONE-FOLD HEIGHT/WIDTH TABLE 19: CHARACTER FONT SET (OB) W24 X H24 CHARACTER SIZE, 12 DOTS/MM HEAD DENSITY, ONE-FOLD HEIGHT/WIDTH SATO GL4xxe SBPL Programming Reference Page 7-15
Unit 7: Appendix TABLE 20: VALID COMMANDS (RD) Print Position Modification <%> TABLE 21: VALID COMMANDS ($) Modification <$=> TABLE 22: VALID COMMANDS ($=) Print Position Modification <%> Calendar <$> TABLE 23: BARCODE TYPE (B) A 0 BARCODE NW-7 (Codabar) DESCRIPTION Set print data including the Start/Stop characters. A, B, C, D, E, N, T, a, b, c, d, e, n, t. When the specify [A123A]. Barcode character pitch is enabled.
Unit 7: Appendix TABLE 24: BARCODE TYPE (BD) A BARCODE DESCRIPTION Set print data including the Start/Stop characters. A, B, C, D, E, N, T, a, b, c, d, e, n, t. When the specify [A123A]. Barcode character pitch is enabled. For print data, refer to the NW-7 code table. RATIO barcode print data is [123], 0 NW-7 (Codabar) 1 CODE39 2 Interleaved 2 of 5 Specify the print data in even-numbered digits. If specifying an odd-numbered digit, “0” will be added to the head of the print data.
Unit 7: Appendix TABLE 26: CODE128 DATA VALUES (BG) VALUE SUBSET A SUBSET B SUBSET C VALUE SUBSET A SUBSET B SUBSET C 0 SP SP 00 36 D D 36 1 ! ! 01 37 E E 37 2 “ “ 02 38 F F 38 3 # # 03 39 G G 39 40 4 $ $ 04 40 H H 5 % % 05 41 I I 41 6 & & 06 42 J J 42 7 ‘ ‘ 07 43 K K 43 8 . .
Unit 7: Appendix TABLE 26: CODE128 DATA VALUES (BG) VALUE SUBSET A SUBSET B SUBSET C 82 83 VALUE SUBSET A SUBSET B DC2 >2 r >2 DC3 >3 s >3 SUBSET C 82 99 Subset C >C Subset C >C 99 83 100 Subset B >D FNC4 >D Subset B >D 84 DC4 >4 t >4 84 101 FNC4 >E Subset A >E Subset A >E 85 NAK >5 u >5 85 102 FNC1 >F FNC1 >F FNC1 >F 86 SYN >6 v >6 86 103 SUBSET A START CODE >G 87 ETB >7 w >7 87 104 SUBSET B START CODE .
Unit 7: Appendix TABLE 28: PARAMETERS (PG) # ITEM DESCRIPTION h Print Darkness Level 00H 01H 02H 03H 04H 05H 06H 07H 08H 09H 0AH 0BH 0CH 0DH 0EH 0FH Darkness 0 Darkness 1 Darkness 2 Darkness 3 Darkness 4 Darkness 5 (Initial Value) Darkness 6 Darkness 7 Darkness 8 Darkness 9 Darkness 10 Darkness 11 Darkness 12 Darkness 13 Darkness 14 Darkness 15 i Sensor Type 00H Reflective Sensor 1 01H See-through Sensor 02H Sensor - Ignoring type j Zero Slash 00H Disable 01H Enable (Initial Value) k Kan
Unit 7: Appendix TABLE 29: PARAMETERS (PC) # ITEM # ITEM DESCRIPTION b 1 Not used. 0 Fixed c 2 Not used. 0 Fixed d 3 Print Speed: 8 dots/mm Initial Value: 2 (4 inch/s) Range: 2 to 10 inch/s Print Speed: 12 dots/mm Initial Value: 2 (4 inch/s) Range: 2 to 10 inch/s 0 1 2 3 4 5 6 7 8 Not used. 0 Fixed e 4 2 inch/s 3 inch/s 4 inch/s 5 inch/s 6 inch/s 7 inch/s 8 inch/s 9 inch/s 10 inch/s f 5 Not used. 0 Fixed g 6 Not used. 0 Fixed h 7 Not used.
Unit 7: Appendix TABLE 29: PARAMETERS (PC) # ITEM # z 26 ITEM DESCRIPTION Buzzer sound setting 0 Yes 1 No (Initial value : 0) TABLE 30: PARAMETERS (LD) FUNCTION Proto Code PARAMETER CONTENT STANDARD DEFAULT NON-STANDARD DEFAULT a (Hex) STX 02H { (7BH) b (Hex) ETX 03H } (7DH) c (Hex) ESC 1BH ^ (5EH) d (Hex) ENQ 05H @ (5EH) e (Hex) CAN 18H ! (21H) f (Hex) NULL 00H - (7EH) g (Hex) Offline 40H ] (5DH) Auto Online h (ASCII) 0: Yes, 1: No 0 (30H) 0 (30H)
Unit 7: Appendix TABLE 32: INVALID COMMANDS (YS) CLASS COMMAND System COMMAND NAME CS Print Speed #E Print Darkness ~ Cut, Job C Reprint * Clear (Memory Card) @ Offline OL Online BJF Card Format GI Memory Card Graphic, Store GT BMP File, Store PI PCX File, Store /D Field, Recall BJS Print Memory Card Status EX Print Length Expansion TABLE 33: VALID COMMANDS (&R) Print Position Font
Unit 7: Appendix TABLE 35: ERROR COMMANDS (&S) COMMAND DESCRIPTION COMMAND DESCRIPTION CC Card Slot for Use EX Print Length Expansion BJS Print Memory Card Status GT BMP File, Store ~ Cut, Job F Sequential Numbering TABLE 36: VALID COMMANDS (/N) Font Barcode <$=>
Unit 7: Appendix TABLE 38: ITEM STATUS IN PROCESS DIGIT 2 2 DESCRIPTION ASCII HEX No Error. 0 30 Ribbon Near End. 1 31 Buffer Near Full.
Unit 7: Appendix This page is left blank intentionally SATO GL4xxe SBPL Programming Reference Page 7-26
1SATO CONTACTS 2 3 4
6 SATO GROUP OF COMPANIES International Headquarters American Region SATO INTERNATIONAL PTE. LTD. SATO INTERNATIONAL AMERICA, INC. 438A Alexandra Road #05-01/04, Alexandra Technopark, Singapore 119967 Phone: 65-6271-2122 Fax: 65-6271-2151 Email: sales@sato-int.com Website: www.satoworldwide.com (Regional Headquarters) 10350-A Nations Ford Road, Charlotte, NC 28273, U.S.A. Phone: 1-704-644-1650 Fax: 1-704-644-1662 Email: satosales@satoamerica.com Website: www.satoworldwide.com, www.satoamerica.