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.
NOTE: Provides helpful hints to assist in performing the tasks at hand.
LCD DISPLAY: Provides the specific display that should be visible on the
LCD at that point.
A comprehensive Table Of Contents provided at the front of this manual facilitates rapid
movement within. The contents identify the different Units, Chapters, and Sections. Each
references the page number of their commencement.
The pages of this manual have embedded headers and footers to assist the user in identifying
his or her exact position within the manual. The header provides the unit number followed by its
name. The footer identifies the product on the left and the page number to the right side of the
page.
Page enumeration is two-part with each separated by a hyphen. The first character set
references the Unit and the second identifies the page number. Page numbers begin with the
numeral (1) one at the commencement of a new unit and ascends sequentially.
SATO GL4xxe SBPL Programming ReferencePage 1-2
Page 11
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. The vertical axis is the label length from the front to its rear.
This juncture point of the horizontal and vertical axis is referred to as the Base Reference Point
(or zero point) and all measurement is incremental along those axis’ from there. The allowable
ranges for these references is dependent on the particular printer to accommodate different print
widths and resolutions.
A1 COMMAND
The A1 command is the preferred method of configuring the printer for media size. If using media
smaller than the print head width, use this command to specify the media size and adjust the
start position corresponding to that. The backing paper must be included in media size
considerations. This command would be as follows:
<A1>aaaaabbbb
a = Height of Label
b = Width of Label
NOTE: The valid ranges for each of the above may be found in the product
manuals.
A3 COMMAND
Before beginning to send code, one must perform some simple calculations to determine print
positioning. Firstly, determine the print resolution and maximum print width of the printer. This
information is provided in the Technical Data unit of the Operator Manual and Service Manuals.
The print resolution of the print head has a direct bearing on the “dots per inch” (DPI) of print
density. The corresponding formula for a 203 Resolution print head on a printer with 4.1
Maximum Print Width would be:
Resolution (DPI) x Maximum Printable Width (Linear Inches) =
Maximum Printable Width (Linear Dots)
203 (DPI) x 4.1 (Linear Inches) = 832 (Linear Dots)
Once this is done, one must calculate the label width in linear dots. That formula would be as
follows for a 2 inch wide label:
Resolution (DPI) x Label Width (Linear Inches) =
Label Width (Linear Dots)
203 (DPI) x 2.0 (Linear Inches) = 406 (Linear Dots)
SATO GL4xxe SBPL Programming ReferencePage 1-3
Page 12
Unit 1: Introduction
POWER
ON LINE
STATUS LABEL RIBBON
LINE
FEED
Print Head
LABEL
LABEL
Label Width
Label Length
Maximum Printable Width
Initial Base Reference Point
Print Offset
New Base Reference Point
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. That formula
would be as follows using the above examples:
In the above example, 426 would be the required command entry to reset the initial base
reference point (or zero point) to the new base reference point (or zero point) based on the
label’s width.
Note that with each additional horizontal or vertical adjustment, the New Base Reference Point
will always be positioned relative to the last base reference point - not the Initial Base Reference
Point. In other words, the only way to return to the Initial Base Reference Point is to either
commands to reverse the prior commands or to delete all positioning commands to return the
printer to its default state.
Figure 1-1, Print Area Calculation
SATO GL4xxe SBPL Programming ReferencePage 1-4
Page 13
PROGRAMMING
CONCEPTS
•Programming Language
•Selecting Protocol Codes
•Using Basic
•Print Position Commands
•GL-specific Commands
SATO GL4xxe SBPL Programming ReferencePage 2-1
Page 14
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
<STX>, <ETX>, <ESC>) and printable characters. These commands must be assembled into an
organized block of code to be sent as one data stream to the printer, which in turn interprets the
command codes and generates the desired label output. The programmer is free to use any
programming language available to send the desired data to the printer.
The printer command codes used are based upon “Escape” (1B hexadecimal) sequences.
Typically there are four types of command sequences:
<ESC>{Command}
These commands generally tell the printer to perform a specific action, like “clear the memory.”
<ESC>{Command} {Data}
Commands with this format tell the printer to perform a specific action which is dependent upon
the following data, like “print X labels”, where the value for X is contained in the data.
<ESC>{Command} {Parameter}
These commands set the operational parameters of the printer, like “set the print speed to 3.”
<ESC>{Command} {Parameter} {Data}
Some commands can contain both Parameter and Data elements, such as “print a Code 39
symbol containing the data.”
SATO GL4xxe SBPL Programming ReferencePage 2-2
Page 15
Unit 2: Programming Concepts
SELECTING PROTOCOL CODES
Protocol codes are the special control characters that prepare the printer to receive instructions.
For example, the <ESC> character tells the printer that a command code will follow and the
<ENQ> 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. The Standard Protocol Control codes are non-printable
characters, and the Non-Standard Protocol Control codes are printable characters. The NonStandard set may be useful on host computers using protocol converters or in an application
where non-printable ASCII characters cannot be sent from the host.
This manual uses the Standard Protocol Control codes for all of the
examples. Alternately, the user may define and download a set of custom
Protocol Control Codes (see Appendix D).
PROTOCOL CODES
CONTROL
CHARACTER
STX02 HexData start
ETX03 HexData end
ESC1B HexCommand Code to follow
ENQ05 HexGet printer status, Bi-Com Mode
CAN18 HexCancel print job, Bi-Com mode
Off-Line40 HexTake printer Off-Line
STANDARD
DSW2-7 OFF
DESCRIPTION
SATO GL4xxe SBPL Programming ReferencePage 2-3
Page 16
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 <CR> and
<LF> characters after every line. The command string should be continuous and uninterrupted
by <CR> and/or <LF> commands. The examples given in this manual are printed on separate
lines because they will not fit on a single line and do not contain <CR> and/or <LF> characters. If
these characters are needed, they are explicitly noted by the inclusion of <CR> and <LF>
notations.
If using the printer’s RS232C interface, it is necessary to set the computer COM portion so the
CTS and DSR signals are ignored. Send OPEN “COM” statements as follows:
OPEN “COM1:9600,E,8,1,CS,DS”AS #1
This sets the host computer’s COM1 port RS232C communication parameters for 9600 baud,
Even parity, 8 Data bits, 1 Stop bit and directs the port to ignore the CTS and DSR control
signals.
It may be desirable to assign the <ESC> character to a string variable to reduce keystrokes since
this character is often used.
The following two examples use Standard Protocol codes in BASIC.
PRINTING WITH THE PARALLEL PORT
5 REM CL612 Parallel ExampleIdentifies the program as a CL612 parallel port
print label. The “REM” prevents this data from
being sent to the printer and is only displayed on
the screen.
10 E$=CHR$(27)Sets the “E$” string as an <ESC> character
20 WIDTH “LPT1”,255Sets the width of the output to 255 characters
30 LPRINT E$;"A";Sends an “<ESC>A” command code to the LPT1
parallel port
40 LPRINT E$;"H400";E$;"V100";E$;"XL1SATO";Sends the data “SATO” to be to be placed 400
dots horizontally and 100 dots vertically on the
label and printed in the “XL” font.
50 LPRINT E$;"Q1"; Instructs the printer to print one label.
60 LPRINT E$; “Z”;Tells the printer that the last command has been
sent. The printer can now create and print the job.
SATO GL4xxe SBPL Programming ReferencePage 2-4
Page 17
Unit 2: Programming Concepts
PRINTING WITH THE RS232C PORT
5 REM CL612 Parallel ExampleIdentifies 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 <ESC>character.
OPEN “COM1:9600,N,8,1,CS,DS”AS #1Opens 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.
30 PRINT #1,CHR$ (2);Sends an <STX> (ASCII Code a decimal “2”) to
the printer instructing it to prepare to receive a
message.
50 PRINT #1,E$;"A";Sends an “<ESC>A” command code to Print Port
#1 opened by statement 20 above.
60 PRINT#1, E$; "H400"; E$; "V100"; E$;
"XL1SATO"
50 PRINT #1, E$;"Q1";Instructs the printer to print a quantity of one
60 PRINT #1, E$; “Z”;Informs the printer that the last command has
70 PRINT #1,CHR$ (3);Sends an <ETX> (ASCII Code decimal “3”)
Sends the data “SATO” to be placed 400 dots
horizontally and 100 dots vertically on the label
and printed in the “XL” auto smoothed font.
label.
been sent and printing can occur.
informs the printer of message end.
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.
SATO GL4xxe SBPL Programming ReferencePage 2-5
Page 18
Unit 2: Programming Concepts
LABEL
Label Width
Label Length
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 (<ESC>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.
Example:<ESC>A1aaaaabbbb
a = Label Length
b = Label Width
Figure 2-1, Media Measurement
BASE REFERENCE POINT COMMAND
The Base Reference Point Command (<ESC>A3) establishes the zero point of
the Horizontal and Vertical axis so the distance may be calculated in dots from
that point to the label’s edge. This command immediately follows the Data Start
Command.
Example:Label Width = total dots - = 406 dots
New Base Ref Point = Max Print Width - Label Width
= (dot quantity) - (406 dots) = 426 dots
Issue Base Reference Point command <ESC>A3 after the data Start command.
<ESC>A<ESC>A3H0426V0001. . . . . .
HORIZONTAL OFFSET COMMAND
Allows print image orientation by combining a part of both methods above by
establishing the media size and then orienting it through base reference point
adjustment.
Example:A Printer with 8-dpmm:
Label Width = 2" x 25.4 mm/in x 8 dpmm = 406 dots
New Base Reference Point = Maximum Print Width - Label Width
= (832 dots) - (406 dots) = 426 dots
Each <ESC>H command would have the value “426” added to it to correctly
SATO GL4xxe SBPL Programming ReferencePage 2-6
position each field.
Page 19
Unit 2: Programming Concepts
NOTE: The <ESC>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.
If you want to test any of the sample label outputs and are using labels less than five inches in
width, it is recommended that the Base Reference Point command be added to the data stream
to print the image onto the label.
The addition of the Base Reference Point command to the data stream will help adjust the print.
See the following two examples or refer to the Base Reference Point command description.
If using a 2 inch wide label, the entire image may not appear on the label. By adding the following
Base Reference Point command to the second line of the data stream, the base reference point
will be changed, causing the image to shift toward the inside of the printer where it can be printed
on the narrower label.
Example:M8400RVe data stream results in a 2 inch wide label:
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.
SATO GL4xxe SBPL Programming ReferencePage 2-7
Page 20
Unit 2: Programming Concepts
This page is left blank intentionally
SATO GL4xxe SBPL Programming ReferencePage 2-8
Page 21
COMMAND QUICK
REFERENCE
•A through Z (all commands)
SATO GL4xxe SBPL Programming ReferencePage 3-1
Page 22
Unit 3: Command Quick Reference
COMMAND QUICK REFERENCE
INSTRUCTIONDESCRIPTION
AStart Code. Begins all print jobs
~AaaaaCut, Label. Specifies the number of labels to print between each cut. It is
independent of the Quantity command.
aaaa=Number of labels between each cut
~aaaaCut, 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.
aaaa=Number of labels between each cut (0001 to 9999)
~BCut, Last. Cuts any printed labels that remain in the printer.
AOaAuto Online. Allows the automatic online on power up setting to be
enabled or disabled.
a=0: Powers up in the online mode
1: Powers up in the offline mode
A1aaaabbbbMedia Size. Specifies the label size.
aaaa=Label height in dots (0 to Vmax)
bbbb=Label width in dots (0 to Hmax)
&Store Form Overlay. Stores a specified label image in the printer’s volatile
form overlay memory.
ARNormal Print Length. This command resets the printer to the Standard
print length (7 inches).
&RaaForm Overlay, Recall. Recalls a label image previously stored in
Expanded Memory.
aa=Storage number (00 to 99)
&S,aa,bbbb,ccccForm Overlay, Store. Stores a label image in Expanded Memory.
aa=Storage number (00 to 99)
bbbb=Horizontal size of window to be stored (50 to Hmax)
cccc=Vertical size of window to be stored (50 to Vmax)
SATO GL4xxe SBPL Programming ReferencePage 3-2
Page 23
Unit 3: Command Quick Reference
COMMAND QUICK REFERENCE
INSTRUCTIONDESCRIPTION
*a,bbbClear 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)
@,nn...nOffline/Pause. Signals the printer to go offline after upon job completion.
nn...n=Optional message to be displayed on the LCD (max 32
characters).
A3H-aaaa-VbbbbBase Reference Point. Establishes a new base reference point position
for the current label. Units of measurement are dots.
- =Optional character.If included, will shift reference point in
negative direction.
aaaa=Horizontal reference point
bbbb=Vertical reference point
AXPrint Area Enlargement. This command sets the printer to the Expanded
print length (14 inches). <ESC>EX0 is the recommended replacement.
GIabbbcccdddee...eGraphic, Store. Stores a graphic image in the memory card to be called
later for printing on a label.
a=Specifies format of data stream to follow
B: Binary
H: Hexadecimal
bbb=Number of horizontal 8 x 8 blocks
ccc=Number of vertical 8 x 8 blocks
ddd=Graphics storage number (001 to 999)
ee...e=Data to describe the graphic image
GMaaaaaBMPFile. Downloads BMP file to the internal graphics image memory.
aaaaa=Quantity of bytes to download (max DOS file size is 32K).
GPaaaaaPCXFile. Downloads PCX file to the internal graphics image memory.
aaaaa=Quantity of bytes to download (max DOS file size is 32K).
SATO GL4xxe SBPL Programming ReferencePage 3-12
Page 33
Unit 3: Command Quick Reference
COMMAND QUICK REFERENCE
INSTRUCTIONDESCRIPTION
GRcccGraphic, Recall. Recalls for printing the graphic image stored by the GI
command.
ccc=Storage number (001 to 999)
GTaaa,bbbbb, nn. . . nBMP 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
HaaaaHorizontalPosition. Specifies a field’s horizontal location across the width
of the label from the current base reference point. The units of
measurement are dots.
IDaaJobID Store. Stores the Job ID number.
aa=Job ID number assigned (01 to 99)
JJournalPrint. Provides the ability to print text line by line. Fixed spacing
between lines and characters.
Kab90ccCustom Designed Characters, Recall. Recalls for printing a custom
character stored by the Tabcc(data) command.
a=1: 16 x 16 matrix
2: 24 x 24 matrix
b=Indicates the format that data stream was stored
B: Binary
H: Hexadecimal
cc=Memory location where the character was stored. Valid
locations are 21 to 52 or “!” to “R” in hex values.
LaabbCharacter, Expansion. Expands characters in both directions.
aa=Multiple to expand horizontally (01 to 12)
bb=Multiple to expand vertically (01 to 12)
LAaLanguage. Specifies the display language for the LCD.
a=0: English
1: French
2: German
3: Spanish
4: Italian
5: Portugese
6: Extensible language (Japanese, etc)
SATO GL4xxe SBPL Programming ReferencePage 3-13
Page 34
Unit 3: Command Quick Reference
COMMAND QUICK REFERENCE
INSTRUCTIONDESCRIPTION
LDa,b,c,d,e,f,g,i,jjUser Download. Downloads a user defined set of Alternate Protocol
Command Codes. See Appendix E for details on the proper usage of this
command.
LFaOnline Feed. To enable or disable online label feed.
a=0: Enables label feed when online
1: Disables label feed when online
LHaZero Slash. Allows printing zeroes with or without a slash.
a=0: Prints zeroes without a slash
1: Prints zeroes with a slash
MFont type. Specifies the 13W x 20H dot matrix font (includes descenders).
NCCutting Operation. Specifies the movement of cutting.
OAFont type. Specifies the OCR-A font.
OBFont type. Specifies the OCR-B font dot matrix.
OLOnline. Changes the printer status from offline to online.
PaaCharacter Pitch. Designates the number of dots between characters.
aa=Number of dots between characters (01 to 99)
(aaaa,bbbbReverse Image. Reverse image from black to white and vice versa. The
units of measure are dots.
aaaa=Horizontal length in dots of area to be reversed.
bbbb=Vertical height in dots of area to be reversed.
PCaa,bbPCF,a,........zFlash ROM Setup. Sets the default printer configuration in Flash ROM.
#EaPrint Darkness. Specifies a new print darkness setting.
%aRotate, Fixed Base Reference Point.
a=0: Sets print to normal direction.
1: Sets print to 90 degrees counter-clockwise.
2: Sets print to 180 degrees rotated (upside down)
3: Sets print to 270 degrees counter-clockwise (90x CW).
PGEEPROM Setup. Sets the default printer configuration in EEPROM.
PIaaa,bbbbb,cc...cPCX File, Store. Stores a PCX graphic file.
aaa=Storage number (001 to 999)
bbbbb=Number of bytes in the file to be stored.
cc...c=
PRFixed Font Spacing. Returns the printer to fixed character spacing mode.
SATO GL4xxe SBPL Programming ReferencePage 3-14
Page 35
Unit 3: Command Quick Reference
COMMAND QUICK REFERENCE
INSTRUCTIONDESCRIPTION
PSProportional Font Spacing. Places the printer in the proportional
character spacing mode. Will not work with U Font.
PYaaaPCX File, Recall. Recalls a PCX graphics file.
aaa=The storage number assigned to the file (001 to 999)
QaaaaaaPrint Quantity. Specifies the total number of labels to print.
aaaaaa=Total quantity of labels to print for the job (000001-999999)
RDabb,ccc,ddd,nn...nFont Type. Specifies the internal AGFA raster fonts.
a=F: Specifies Futura font
P: Specifies CG Palcio font
S: CG Century Schoolbook font
G: CG Triumvirate Condenced font
V: CG Univers font
t: CG Times font
bb=0: No character set
1: ISO 8859/1 Latin1
2: ISO 8859/2 Latin2
3: ISO 8859/9 Latin5
4: CP-737 DOSGreek
5: CP-885 DOS Cirillic
6: CP-864 DOSArabic
8: PC-850 Multilingal
ccc=Horizontal Size (16 to 999 dots or P08 to P72 point size)
ddd=Vertical Size (16 to 999 dots or P08 to P72 point size)
nn..n=Data to be printed
RFRecall and Print of Font & Logo. Calls and prints font and logo
downloaded with Label Gallery’s “GalleryMemMaster”.
a=Font ID number (01 to 99)
b=Print digit (1 to 9999)
n=Print data
RMaaaa,bbbbMirror Image. Prints mirror image of data. Must be preceded by an
<ESC>A1 Media Size command.
SFont type. Specifies the 8W x 15H dot matrix font (includes descenders).
/Form Overlay, Recall. Recalls the label image from the printer’s form
overlay memory for printing.
SATO GL4xxe SBPL Programming ReferencePage 3-15
Page 36
Unit 3: Command Quick Reference
COMMAND QUICK REFERENCE
INSTRUCTIONDESCRIPTION
/DField, 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.
/NField, Store. To store a field in the memory card.
bb=Field number (01 to 99).
cc=Quantity of characters in the field.
Tabcc(data)Store Custom Designed Characters. To create and store custom
characters or images in the printer’s volatile memory. See Kab90cc to
recall the character for printing.
a=1: 16 x 16 matrix
2: 24 x 24 matrix
b=Specifies data stream format to follow
B: Binary
H: Hexadecimal
cc=Memory location to store the character. Valid locations are
21 to 52 or “!” to “R” in hex values.
(data)=Data to describe the character.
UFont type. Specifies a 5W x 9L dot matrix font (includes descenders).
VbbbbVertical Position. Specifies a field’s vertical location down the length of the
label from the current base reference point. Units of measurement are
dots.
WA (elements)Calendar Print. Prints the date and/or time field (up to 16 characters) from
the printer’s internal clock. Use slash to separate date elements and colon
to separate time elements. The calendar feature is a purchase option and
will only be applicable to those printers so ordered.
Elements=YY: 2 digit Year (00 to 99)
YYYY: 4 digit Year (1981 to 2080)
MM: Month (01 to 12)
DD: Day (01 to 31)
HH: 12 Hour (00 to 11)
hh: 24 Hour Clock (00 to 23)
mm: Minutes (00 to 59)
ss: Seconds (00 to 59)
TT: AM or PM
JJJ: Julian Date (000 to 366)
WW: Week (00 to 53)
ww: Week (01 to 54)
SATO GL4xxe SBPL Programming ReferencePage 3-16
Page 37
Unit 3: Command Quick Reference
COMMAND QUICK REFERENCE
INSTRUCTIONDESCRIPTION
WBFont Type. Specifies the 18W x 30L dot matrix font (includes descenders).
a=0: Disables auto-smoothing of font
1: Enables auto-smoothing if expansion is greater than 3
WDHaaaaVbbbbXccccYd
ddd
WKnn...nJob Name. Stores the job name.
WLaFont type. Specifies the 28W x 52L dot matrix font (including decenders).
WPabbbCalendar Increment. To add a value to the printer’s current date and/or
Copy Image Area (Partial Copy). To copy an image to another location of
the label.
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
nn..n=Job name, up to 16 ASCII characters
a=0: Disables auto-smoothing of font
1: Enables auto-smoothing if expansion is greater than 3
time. Does not change the printerís internal time setting. The calendar
feature is a purchase option and will only be applicable to those printers so
ordered.
a=Y: Years
M: Months
D: Days
h: Hours
bbb=Numeric data, Week (00-99), Years (1-9), Months (01-99),
Days (001-999), Hours (001-999).
WTaabbccddeeCalendar Set. To set the time and date of the printer’s internal clock.
aa=Year (00-99)
bb=Month (01-12)
cc=Day (01-31)
dd=Hour (00-23)
ee=Minute (00-59)
XBaFont Type. Specifies 48W x 48L dot matrix font (includes descenders).
a=0: Disables auto-smoothing of font
1: Enables auto-smoothing if expansion is greater than 3.
n=Print data
SATO GL4xxe SBPL Programming ReferencePage 3-17
Page 38
Unit 3: Command Quick Reference
COMMAND QUICK REFERENCE
INSTRUCTIONDESCRIPTION
XLFont Type. Specifies the 48W x 48H dot matrix font (includes descenders).
a=Smoothing specification
0: Smoothing disabled
1: Smoothing enabled
n=Print data
XMFont type. Specifies the 24W x 24H dot matrix font (includes descenders).
XSFont type. Specifies the 17W x 17H dot matrix font (includes descenders).
XUFont type. Specifies the 5W x 9L dot matrix font (includes descenders).
YR,aaa/D,bb,cc...cRecall Format/Field. To recall a field from a format previously stored in the
memory card.
aaa=Number of format to be recalled (001 to 999)
bb=Number of field to be recalled (01-99)
cc...c=Data to be placed in field.
YS,aaa/Nbb,ccStore Format/Field. To store a field in a format in the memory card.
aaa=Format number (001 -999)
bb=Field number (01-99)
cc=Number of characters in the field
ZStop Code. Ends all print jobs.
0 (zero)Replace Data (Partial Edit). Provides the ability to replace a specified
area of the previous label with new data.
SATO GL4xxe SBPL Programming ReferencePage 3-18
Page 39
STANDARD
COMMAND CODES
•Control Commands
•Modification Commands
•Print Position Commands
•Font Commands
•Barcode Commands
•2D Code Commands
•System Commands
•Graphic Commands
SATO GL4xxe SBPL Programming ReferencePage 4-1
Page 40
CONTROL COMMANDS
START/STOP LABEL
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
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.
There is no output for these commands they are not accompanied by other label
printing commands. However, these commands must precede and follow each print
job sent to the printer.
SATO GL4xxe SBPL Programming ReferencePage 4-2
Page 41
Unit 4: Standard Command Codes
PRINT QUANTITY
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
To specify the total quantity of labels to print for a given print job.
<ESC>Qaaaaaa
aaaaaa= Total number of labels to print (1 to 999999)
Place just preceding <ESC>Z, unless <ESC>~ exists, then preceding that. This
command must be present in every print job.
Three labels containing the data “SATO” will be printed.
To cancel a print job, turn off the printer or send the <ESC>CAN code if using the BiCom mode. Multi-Buffer jobs can be cleared with the Clear Print Job (<ESC>*) and
Memory command.
When used with the Sequential Numbering (<ESC>F) command, the Print Quantity
value should be equal to the total number of labels to be printed.
If a Print Quantity is not specified, the printer will not print a label.
For this command, leading zeroes do not have to be entered. The command “Q1” is
equivalent to “Q000001”.
SATO GL4xxe SBPL Programming ReferencePage 4-3
Page 42
JOB ID, STORE
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
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.
<ESC>IDaa
aa= Job ID assigned (01 to 99)
Place immediately following the <ESC>A in the job data stream.
<ESC>A
<ESC>ID02
. . . Job . . .
<ESC>Z
This command does not result in printer output.
Works only in Bi-Communications modes. The Job ID number must be stored before
Bi-Com status mode can be used.
If more than one ID number is sent in a single job, i.e.
<ESC>A
<ESC>ID01
. . . . . . . . . .
<ESC>ID02
. . . . . . . . .
The last number transmitted will be used.
SATO GL4xxe SBPL Programming ReferencePage 4-4
Page 43
Unit 4: Standard Command Codes
JOB NAME
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
This command is to identify a particular job using a descriptive name.
<ESC>WKnnn. . . n
nn..n = Job Name assigned, up to 16 ASCII characters
Place immediately following the <ESC>A in the job data stream.
<ESC>A
<ESC>WKSATO
. . . Job . . .
<ESC>Z
This command does not result in printer output. The information is returned to the
host upon receipt of a Bi-Com status request.
Works only in Bi-Com 4 mode. The Job Name must be stored before Bi-Com status
mode can be used.
If more than one Job Name is sent in a single job, i.e.
<ESC>A
<ESC>WKSATO
. . . . . . . . . .
<ESC>WKSATO AMERICA
. . . . . . . . .
The last name transmitted will be used.
SATO GL4xxe SBPL Programming ReferencePage 4-5
Page 44
MODIFICATION COMMANDS
CHARACTER, EXPANSION
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
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.
Expanded characters are typically used with this command for added emphasis or for
long distance readability. This command will expand the following fonts: Fonts U, S,
M, XU, XS, XM, OA & OB and fonts WB, WL, XB and XL.
This command will also affect the following commands: Character Pitch Characters,
Custom-Designed
The Character Expansion value is in effect for the current print job until a new
expansion command is specified.
The Line and Box command, if used within the data stream, may return all
subsequent text to the default expansion of 1 x 1. Therefore, either send the
Character Expansion command before all printed data, or send Line and Box
commands last, preceding the Quantity (<ESC>Q) command.
Refer to Appendix: Reference Table 1 for additional information.
Page 45
Unit 4: Standard Command Codes
CHARACTER, PITCH
FUNCTION
FORMAT
EXAMPLE
OUTPUT
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.
This command is affected by the <ESC>L Character Expansion command. The
character pitch is actually the product of the current horizontal expansion multiple and
the designated pitch value.
Example:
<ESC>L0304
<ESC>P03
Pitch = (03) x (03) = 9 dots
To avoid confusion, you may want to include the <ESC>L Character Expansion
command and this command together in your program.
This command affects fonts U, S, M, XU, XS, XM, OA & OB, WB, WL, XB and XL,
and the vector font.
Character Pitch will always revert to the default value unless it is specified before
each new font command in the data stream.
This command also affects Codabar, Code 39 and Industrial 2 of 5 bar codes.
Refer to Appendix: Reference Table 2 for additional information.
Page 46
CHARACTER, FIXED SPACING
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
To reset proportional spacing and place the printer back to fixed spacing.
Once this command is sent in the data stream, it is in effect until the end of the print
job unless a reset command is sent.
Refer to Appendix: Reference Table 4 for additional information.
SATO GL4xxe SBPL Programming ReferencePage 4-8
Page 47
Unit 4: Standard Command Codes
ROTATE, FIXED BASE REFERENCE POINT
FUNCTION
FORMAT
EXAMPLE
OUTPUT
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 (<ESC>%)
command. Note that the entire print area is shown, but your label will probably not be
as large as the entire area.
<ESC>%a
a = 0: Sets print to normal direction
1: Sets print to 90°CCW
2: Sets print to 180° rotated (upside down)
3: Sets print to 270° CCW
Place preceding any printed data to be rotated.
<ESC>A
<ESC>%0<ESC>L0202<ESC>H0200<ESC>V0100<ESC>MNORMAL DIRECTION
<ESC>%1<ESC>H0200<ESC>V0300<ESC>MONE
<ESC>%2<ESC>H0200<ESC>V0400<ESC>MTWO
<ESC>%3<ESC H0200<ESC>V0500<ESC>MTHREE
<ESC>Q1
<ESC>Z
(4-5a)
NOTES
SATO GL4xxe SBPL Programming ReferencePage 4-9
The specified values are valid until another Rotate (<ESC>%) command is received.
Receipt of a Stop Print (<ESC>Z) command will reset the setting to the default value.
(4-5b)
Refer to Appendix: Reference Table 5 for additional information.
Page 48
SEQUENTIAL NUMBERING
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
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.
<ESC>Faaaabcccc,dd,ee,g
aaaa= Number of times to repeat the same data (0001 to 9999)
b = Plus or minus symbol (+ for increments; - for decrements)
cccc= Value of step for sequence (0001 to 9999)
dd = Sequential numbering digit quantity (01 to 99). The first character
starts after those exempted in ee. If digits are omitted, 8 is default
ee= Number of digits free from sequential numbering (0 to 99) starting
with the right most position. If digits are left out, the default is 0.
g= Count base 1 Decimal Count 2 Hexadecimal Base
Place preceding the starting value to be incremented or decremented.
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 numbers 1001-1025 on separate labels, we need 50 total labels.
It is necessary to specify the print position for each sequential field on a label. Up to
eight different sequential fields can be specified per label. Alpha characters are ignore
Refer to Appendix: Reference Table 6 for additional information.
This command sets the base reference point to the apex of the triangle and can be
registered to the format.
(4-8)
NOTES
SATO GL4xxe SBPL Programming ReferencePage 4-12
This command is only enabled while online.
The value for the base length can be omitted and its value will be equal to the length
of sides.
The key buffer size is 1KB. One key entry information requires 2 bytes and up to 512
information entries are available.
The key buffer acts as ring buffer. When the key entry exceeds the maximum entry
capacity, the oldest entry information will be overwritten.
When the exclusive use of key is initiated, the key buffer is initialized and vice-versa
when it is terminated. As a result, key entry information is obtainable following this
operation.
Label printing or label error detection will be performed as usual even when the
exclusive use of key is activated. Error occurrence while the exclusive use of key is
activated will release the exclusive state. After recovering from the error and going
back online, the exclusive use of key will be active again.
Exclusive use of key is initially off when powering on the printer.
Key Entry <IZ> is invalid when the exclusive use of key is activated.
Page 51
Unit 4: Standard Command Codes
PRINT, LINES & BOXES
FUNCTION
FORMAT
EXAMPLE
To print horizontal lines, vertical lines, and boxes as images on the label.
Line: <ESC>FWaabcccc
aa=Width of horizontal line in dots (01 to 99)
b=Line orientation H Horizontal line V Vertical Line
cccc =Length of line in dots
Box: <ESC>FWaabbVccccHdddd
aa=Width of horizontal side in dots (01 to 99)
bb=Width of vertical side in dots (01 to 99)
cccc =Length of vertical side in dots
dddd=Length of horizontal side in dots
Place following the necessary positioning commands.
It is recommended that all lines and boxes be specified in the normal print direction.
Use the <ESC>EX0 Expanded Print Length command for maximum label length.
SATO GL4xxe SBPL Programming ReferencePage 4-13
Page 52
REVERSE IMAGE
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
To reverse an image area from black to white and vice versa. Use the Print Position
commands (<ESC>H and <ESC>V) to locate the top left corner of the reverse image
area.
<ESC>(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 <ESC>Q.
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.
If using reverse images with the form overlay, place this command before the Form
Overlay command in the data stream.
If the height and width to be reversed contains anything other than alphanumeric
data, the area is not printed.
If the values specified exceed the maximum ranges, the reverse image is not created.
Page 53
Unit 4: Standard Command Codes
FORM OVERLAY, STORE
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
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.
<ESC>&
Must be preceded by all other data and placed just before Stop (<ESC>Z) command.
<ESC>A
<ESC>H0100<ESC>V0125
<ESC>STHIS IS THE STORED IMAGE WITH A BARCODE
<ESC>H0100<ESC>V0165<ESC>B103100*12345*
<ESC>
<ESC>Z
This command does not result in printer output. It stores the label image in the
overlay buffer.
Remember that this storage is volatile. Therefore, if the printer loses power, the
overlay must be sent again.
The overlay is recalled using the Form Overlay Recall (<ESC>/) command.
Form overlays do not have to be recompiled each time they are called to be printed
and therefore may result in much faster print output.
Refer to Appendix: Reference Table 7 for additional information.
&
SATO GL4xxe SBPL Programming ReferencePage 4-15
Page 54
FORM OVERLAY, RECALL
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
To recall the label image from the form overlay memory for printing. Additional or
different data can be printed with the recalled image.
<ESC>/
Must be preceded by all other data and placed just before Print Quantity (<ESC>Q)
command.
<ESC>A
<ESC>H01000<ESC>V0125
<ESC>STHIS IS THE STORED IMAGE WITH A BARCODE
<ESC>H0100<ESC>V0165<ESC>B103100*12345*
<ESC>&<ESC>Z
<ESC>A<ESC>H0100<ESC>V0050
<ESC>STHIS IS RECALLING AND ADDING TO THE STORED IMAGE<ESC>/
<ESC>Q1
<ESC>Z
(4-11)
NOTES
The overlay is stored using the Form Overlay Store (<ESC>&) command.
If this command is used with the Expanded Print Length (<ESC>EX0) command the
Form Overlay length cannot exceed 9999 dots.
Refer to Appendix: Reference Table 8 for additional information.
SATO GL4xxe SBPL Programming ReferencePage 4-16
Page 55
Unit 4: Standard Command Codes
REPLACE DATA (PARTIAL EDIT)
FUNCTION
FORMAT
EXAMPLE
OUTPUT
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.
<ESC>0 (<ESC>zero)
Must follow <ESC>A and precede all other print data
<ESC>A
<ESC>H0025<ESC>V0020<ESC>WB0Company Name
<ESC>H0025<ESC>V0085<ESC>WB1SATO
<ESC>H0025<ESC>V0150<ESC>WL0SATO
<ESC>H0025<ESC>V0215<ESC>WL1SATO
<ESC>Q1<ESC>Z
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 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.
This command will not function if the power has been cycled off and back on since the
last label was printed.
Proportional Pitch text cannot be used with this command.
Page 56
COPY IMAGE AREA (PARTIAL COPY)
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
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.
<ESC>WDHaaaaVbbbbXccccYdddd
aaaa= Horizontal position of the top left corner of the area
bbbb= Vertical position of the top left corner of the area
cccc = Horizontal length of the image area to be copied
dddd = Vertical length of the image area to be copied
Place anywhere within the data stream after specifying the location of the duplicate
image.
Use the Print Position (V and H) commands to locate the new area for the duplicate
image.
Position of the new target area must not be inside the original image.
If you use the Rotate command; the V, H, X, and Y axis will be reversed.
If the reference area of the target image exceeds the print area, it will not be printed.
Page 57
Unit 4: Standard Command Codes
JOURNAL PRINTING
FUNCTION
FORMAT
EXAMPLE
OUTPUT
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 <CR> at the end of each text line.
<ESC>J
Place immediately following <ESC>A.
<ESC>A
<ESC>J WITH THE JOURNAL FEATURE YOU CAN PRINT TEXT WITHOUT
USING ANY FONT COMMANDS
OR POSITION COMMANDS
<ESC>Q1
<ESC>Z
(4-14)
NOTES
Journal mode assumes a maximum label width. Otherwise, you may print where
there is no label and damage your print head.
It is effective only for the current print job.
SATO GL4xxe SBPL Programming ReferencePage 4-19
Page 58
RECALL AND PRINT OF FONT & LOGO
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
Calls and prints fonts and logos downloaded with the exclusive tool.
The <ESC>A1 Media defines the area to be mirrored.
This command can be used with the Rotate Fixed Base Reference Point (<ESC>%)
command. Note that the reference point rotation is dependent upon the location of
the <ESC>% command in the data stream.
This command should not be specified more than once in any single job.
This command cannot be used with commands requiring re-editing of the print area,
such as Sequential Numbering, Real time clock or Copy Image Area.
Any data outside the area defined by the Media Size (<ESC>A1) command is not
mirrored the command is treated as a command error. Any print job containing the
<ESC>RM command and without any print data will be treated as a command error.
SATO GL4xxe SBPL Programming ReferencePage 4-21
Page 60
PRINT POSITION COMMANDS
MEDIA SIZE
Unit 4: Standard Command Codes
FUNCTION
FORMAT
INPUT
OUTPUT
NOTES
To set the size of the media.
<ESC>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.
<ESC>A
<ESC>A108321424
<ESC>Z
This command does not result in printer output. It is used to automatically adjust the
offset values for the size of label being used. The sample command stream specifies
a label 832 dots wide by 1424 dots long.
The Base Reference point is always the on the right (looking at the front of the printer)
side of the print head. This command adjusts the Base Reference Point to correspond
with the right edge of the loaded media.
If the label size is changed, then this command must be re-specified to center the print
image on the label.
All eight variables “aaaa” and “bbbb” must be included in this command.
SATO GL4xxe SBPL Programming ReferencePage 4-22
Page 61
Unit 4: Standard Command Codes
PRINT POSITION
FUNCTION
FORMAT
EXAMPLE
OUTPUT
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.
Horizontal Position: <ESC>Haaaa
Vertical Position: <ESC>Vbbbb
aaaa= Number of horizontal dots from base reference point (1 to Hmax)
bbbb = Number of vertical dots from base reference point (1 to Vmax)
Place preceding any print field description of lines/boxes, fonts, bar codes, or
graphics.
To expand the print length to the maximum limit, the Expanded Print Length
(<ESC>EX0) command must be used. If any part of an image is placed past
maximum allowable dots across the label, that part of the image will be lost.
Leading zeroes do not have to be entered - command “V1” is equivalent to “V0001”.
Refer to Appendix: Reference Tables 9 & 10 for additional information.
Page 62
Unit 4: Standard Command Codes
FONT COMMANDS
FONTS: S, M, U, OA, OB, XB, XL, XS, XM, XU
FUNCTION
FORMAT
EXAMPLE
OUTPUT(4-18)
To print text images on a label. These are eight of the built-in fonts available on the
NOTESCharacters may be enlarged through the use of the Character Expansion command
and character spacing may be altered through the use of the Character Pitch
command. The default is 2 dots between characters. Custom characters or fonts may
also be created - refer to Custom-Designed Characters (<ESC>T) command.
It is recommended to use a spacing of 5 dots for OCR-A and 1 dot for OCR-B. The
matrices for the OA and OB fonts are scaled so that they will remain a constant size
according to the OCR-A and OCR-B specifications when printed on different
resolution printers.
The proportionally spaced fonts XU, XS, XM, XL and XA can be printed with fixed
spacing using the Proportional Space (<ESC>PS) command.
Refer to Appendix: Reference Tables 11 through 19 for additional information.
SATO GL4xxe SBPL Programming ReferencePage 4-24
Page 63
Unit 4: Standard Command Codes
SMOOTHING FONTS: WB, WL, XB, XL
FUNCTION
FORMAT
EXAMPLE
OUTPUT
To print text images on a label. These are the four auto-smoothing fonts available on
the printer.
Font WB: <ESC>WBaFont XB: <ESC>XBa
Font WL: <ESC>WLaFont XL: <ESC>XLa
a = 0: Disables auto-smoothing of font
1: Enables auto-smoothing of font (see notes below)
1: ISO 8859/1 Latin1
2: ISO 8859/2 Latin2
3: ISO 8859/9 Latin5
4: CP-737 DOSGreek
5: CP-885 DOSCyrillic
6: CP-864 DOSArabic
7: CP-874 Thai
8: CP850 Multilingal
EXAMPLE
ccc= 0: No character set
ddd= Horizontal size (4 - 999 dots or P02 - P99)
eee = Vertical size (4 - 999 dots or P02 - P99)
nn..n = Data to be printed.
Place within the normal command stream.
<ESC>A
<ESC>V0100<ESC>H0100
<ESC>RDA00,P28,P28,CG Times
<ESC>V0200<ESC>H0100
<ESC>RDB00,075,075,CG Triumvirate
<ESC>Q1
<ESC>Z
SATO GL4xxe SBPL Programming ReferencePage 4-26
Page 65
Unit 4: Standard Command Codes
FONT, RASTER
OUTPUT
NOTES
(4-20)
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.
SATO GL4xxe SBPL Programming ReferencePage 4-27
Page 66
FONT, VECTOR
Unit 4: Standard Command Codes
FUNCTION
FORMAT
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.
Specify Vector Font: <ESC>$a,b,c,d
Data for Vector Font: <ESC>$=(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, shadow
Place immediately preceding the data to be printed.
EXAMPLE
OUTPUT
NOTES
<ESC>A
<ESC>H0100<ESC>V0100<ESC>$A,100,100,0
<ESC>$=SATO AMERICA
<ESC>H0100<ESC>V0200<ESC>$=VECTOR FONT
<ESC>H0100<ESC>V0350<ESC>$A,200,300,8<ESC>$=SATO
<ESC>Q1<ESC>Z
(4-21)
The Pitch command can be used with Vector fonts. If the font size designation is out
of the specified range, a default value of 50 is used.
The font width and height values include ascenders, descenders, and other space. A
font must be defined for each field to be printed. There is not a default font.
Refer to Appendix: Reference Tables 22 & 23 for additional information.
UPC and EAN bar codes are not affected by the different types of narrow to wide
ratios. Instead, the <ESC>D command adds descender bars to these codes where
needed to meet UPC specifications. The <ESC>BD command puts desender bars
and human readable text below the symbol.
The Code 128, UCC 128, MSI, and Code 93 bar codes are not affected by the narrow
to wide ratios.
The Codabar, Code 39, Industrial 2 of 5, and Matrix 2 of 5 bar codes are affected by
the Character Pitch command. This command must be placed before the Bar Code
command.
Because of their unique characteristics, two-dimensional (2D) symbols are covered
separately.
For UCC128, the FNC1 code is automatically inserted and the Mod 10 and Mod 103
check digits are automatically calculated. For the MSI bar code, the check digit is not
automatically calculated.
The <ESC>D and <ESC>BD commands are not valid for the MSI, Code 128, Code
93, UPC-E, Bookland, UCC128 and Postnet symbologies.
Refer to Appendix: Reference Tables 24 through 26 for additional information.
Page 70
Unit 4: Standard Command Codes
BARCODE, HUMAN READABLE INFORMATION (HRI)
FUNCTION
FORMAT
EXAMPLE
OUTPUT
Specifies the character type of human readable information (HRI) for barcode.
<ESC>da
a= Barcode type
3: JAN/EAN13
4: JAN/EAN8
H: UPC-A
b= Narrow Bar Width (01 to 12 dots)
c= Barcode Height (001 to 999 dots)
n= Print Data (barcode data)
d= Character Type Specification (XU,XS, XM, XB, XL, OA, OB)
Adds HRI with a specified character type. If data with other than the specified value is
set, printing will not be performed. When the barcode enlargement ratio and character
type is large, HRI may be overlapping each other.
The printer will properly lay out HRI.
HRI for JAN/WAN13 and UPC-A requires the following items:
8 dots/mm (203 dpi), “02” and “03” is the proper value for narrow bar width.
12 dots/mm (305 dpi), “03” and “04” is the proper value for narrow bar width.
24 dots/mm (309 dpi), “06”, “07”, and “08” is the proper value for narrow bar width.
Page 71
Unit 4: Standard Command Codes
EAN/UCC COMPOSITE SYMBOL
FUNCTION
FORMAT 1
Specifies the composite symbol of EAN/UCC.
<ESC>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 <ESC>V but before <ESC>Q.
FORMAT 2
EXAMPLE
NOTES
<ESC>EUaabbcccn~n
a= 1D barcode symbology
a= 11 : UCC/EAN128 with CC-A/B
12 : UCC/EAN128 with CC-C
b= Minimum Bar Width (01 to 12 dots)
c= Height of Barcode (001 to 500 dots)
*Specify the value of [Height of barcode] when setting [Minimum
bar width] to [01]. For instance, if setting [Minimum bar width] is
[03] / [Height of barcode] is [100], [Height of barcode] will be 300
dots.
n= Print Data (Sum of 1D and 2D codes up to 120-digit)
This command does not support RSS Expand. Print of HRI cannot be designated with
this command. If the value in 1D barcode symbology is not set to the data portion,
composite symbol will not be printed.
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 <ESC>BG to specify print data with application identification or
separator that matches each specification.
Start character code, function character, end character code, and identification code
(corresponds only to “00”) are added automatically.
Modulus 10 check character and modulus 103 check character are automatically
generated.
Sequential number of barcode data is available.
Line pitch between barcode and expository font is fixed at 10 dots.
If the width of expository font is wider than that of the barcode, it starts printing from
the print start position of barcode.
If the width of expository font is narrower than that of the barcode, expository font will
be aligned to the center of barcode for printing.
Prints expository font in OCR-B.
If the expository font is outside of the print area, it will not be printed. When HRI is
available, specify Vertical Print Position (<ESC>V) and Horizontal Print Position
(<ESC>H) in consideration of print of expository font.
If the number of data digits does not match those listed, the command is ignored.
Only numeric data will be accepted.
SATO GL4xxe SBPL Programming ReferencePage 4-39
Page 78
VARIABLE RATIO BARCODES
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
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.
<ESC>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 to 99)
cc = Wide space in dots (01 to 99)
dd= Narrow bar in dots (01 to 99)
ee = Wide bar in dots (01 to 99)
Place following the print position commands and preceding <ESC>BW.
The minimum module width can be set to 01 and 02; however, it may not read
properly. 01, 02, and 03 are designable for minimum module height and may cause a
reading problem.
If specifying “00” for Number of Data Code Words per Digit and Digit Number per
Symbol, the size of height to width (aspect ratio) will be at 1:2 based on the number of
print data.
If increasing the security level, it is necessary to specify a higher value for Digit
Number per Symbol or Number of Data Code Words per Digit.
The maximum Digit Number of Data is 2681; however, it may vary depending on the
specification of minimum module size, security level, and print data type.
If the specification of parameter or number of data is not matching, printing will not be
properly performed.
SATO GL4xxe SBPL Programming ReferencePage 4-42
Page 81
Unit 4: Standard Command Codes
QR CODE
FUNCTION
FORMAT
Specifies QR Code of 2D code.
<ESC>BQ (Manual setting)
<ESC>BQ (Auto setting)
a= Error correction level
1: 7% high density
2: 15% standard
3: 30% high reliability
4: 25%
b= Concentration mode
0: Normal mode
1: Concentration mode
c= Cell size (01 to 32)
d= Number of partitions by concentration mode (01 to 16)
e= Sequential number partitioned by concentration mode (01 to 16)
f= Concentration mode parity data (00 to ff)
g= Character mode
1: Number mode
2: Alphanumeric mode
3: Binary mode
Carry out XOR logic operation of all the partitioned print data of the QR code and
then, specify this operation data in hexadecimal character. This is referred to as
“Parity Data”.
When the character mode is set to other than binary mode, it is not necessary to set
the data number parameter.
SATO GL4xxe SBPL Programming ReferencePage 4-43
Page 82
MAXI CODE
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
Specifies Maxi code of 2D code.
<ESC>BVa, b, c, ddddddddd, eee, fff, n~n
a= Symbol Number (1 to 8)
b= Symbol Digit Number (1 to 8)
c=Mode
2: for delivery
3: for delivery
4: standard symbol
6: for reader
For mode 2, specify up to 9 numeric digits; and for mode 3, specify fixed 6 digits
(alphanumeric - use English capital letters). “00H” cannot be specified for print data.
This code must be placed before the <ESC>BX command.
Page 86
SYSTEM COMMANDS
PRINT SPEED
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
GL
SPECIFIC
DATA
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.
<ESC>CSa
a = Designates the speed selection in ips
Place immediately after <ESC>A and immediately before <ESC>Z in a separate data
stream.
Refer to the product manual for specific print speed increments.
<ESC>A <ESC>CS6 <ESC>Z
This command does not result in printer output.
This becomes the new setting for all subsequent print jobs, unless changed. All
subsequent labels will print at this speed unless the speed is changed with this
command or through the Operator Panel.
The setting is stored in non-volatile memory and is not affected by cycling the power.
The GL4xxe can be operated at either 8 dots/mm or 12 dots/mm, depending on the
print head installed.
The parameter range is 1 through 9 for both print resolutions, as follows:
1: 2 ips (50 mm/s)
2: 3 ips (75 mm/s)
3: 4 ips (100 mm/s)
4: 5 ips (125 mm/s)
5: 6 ips (150 mm/s)
6: 7 ips (175 mm/s)
7: 8 ips (200 mm/s)
8: 9 ips (225 mm/s)
9: 10 ips (250 mm/s)
SATO GL4xxe SBPL Programming ReferencePage 4-48
Page 87
Unit 4: Standard Command Codes
PRINT DARKNESS
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
GL
SPECIFIC
DATA
To specify a new print darkness setting through software control for unique media and
ribbon combinations.
<ESC>#Ea
a= Print Darkness Value
Must be placed immediately after <ESC>A and immediately before <ESC>Z in its
own separate data stream.
Refer to the product manual for specific print speed increments.
<ESC>A
<ESC>#E2
<ESC>Z
This command does not result in printer output.
This becomes the new setting in the printer configuration for all subsequent print jobs
unless changed. The setting is stored in non-volatile memory and is not affected by
cycling power. The lightest setting is the smallest value and the darkest setting is the
largest value.
The format for GL4xxe is <#E>ab, where
a [Print darkness level specification] =
1: -15 (Lightest)
2: -7 (Light)
3: 0 (Normal)(Initial value)
4: +7 (Dark)
5: +15 (Darkest)
b [Print darkness specification] = A ~ F (Omissible)
The initial value is 3, and the valid parameter range is 1 - 5 for 8 dots/mm and 12 dots/
mm print head configurations.
SATO GL4xxe SBPL Programming ReferencePage 4-49
Page 88
CUTTING OPERATION
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
To specify the movement of cutting.
<ESC>NC
<ESC>A
<ESC>NC
<ESC>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. Delimit Start of Data Transmission <A> and End of
Transmission <Z> with this command for use. This command cannot be used in
combination with other commands. This command is valid when printer is in standby
state after the completion of print.
SATO GL4xxe SBPL Programming ReferencePage 4-50
Page 89
Unit 4: Standard Command Codes
BASE REFERENCE POINT
FUNCTION
FORMAT
EXAMPLE
OUTPUT
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.
<ESC>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.
aaaa = Horizontal Print Offset (-Hmax to +Hmax)
bbbb = Vertical Print Offset (-Vmax to +Vmax)
Place preceding all images based on the new base reference point.
<ESC>A
<ESC>L0202
<ESC>H0025<ESC>V0025<ESC>WB0MNORMAL REFERENCE POINT
<ESC>A3H0300V0075
<ESC>H0100<ESC>V0050<ESC>WB0MNEW REFERENCE POINT
<ESC>Q1
<ESC>Z
(4-36)
NOTES
SATO GL4xxe SBPL Programming ReferencePage 4-51
Use of this command will set the printer’s Vertical/Horizontal Offset configuration until
a new Base Reference Point command is issued or the setting is changed from the
operator panel.
This command may be used more than once in a print job.
An alternative to using this command is to make changes to your current Horizontal
and Vertical Print Position commands.
Example: If the current base reference point is H=1, V=1 and you wish to move all the
fields on your label downward vertically by 150 dots. You could either, (1) add the
Base Reference Point command or, (2) change all the vertical position commands by
an additional 150 dots.
For a more detailed example of the Base Reference Point command, refer to the
Introduction unit.
The printer will not “wrap” if any part of a character or image extends beyond the last
print dot position. It will disappear and not be visible on any part of the label.
Page 90
PRINT AREA, ENLARGEMENT
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
Specifies the print area to be standard height of 178 mm or enlarged to 356 mm.
<ESC>ARStandard print area
<ESC>AXEnlarged print area
Place after <ESC>A within the data stream.
<ESC>A
<ESC>AR
<ESC>Z
(4-37)
NOTES
This command changes the print area of pitch direction.
Insert this command after Start of Data Transmission (<ESC>A). To return to the
standard print area, power off the printer to cancel the command.
PRINT END POSITION
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
Changes the label stop position in the sensor invalid mode.
<ESC>EP
Place after <ESC>A within the data stream.
<ESC>A
<ESC>EP
<ESC>Z
This command does not result in printer output.
None.
SATO GL4xxe SBPL Programming ReferencePage 4-52
Page 91
Unit 4: Standard Command Codes
CUT, JOB
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
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.
<ESC>~aaaa
aaaa= Number of labels to print between each cut (1 to 9999)
Place following the Print Quantity command <ESC>Q.
This set of commands will print 6 labels (3 x 2) with two labels between each cut.
(4-38)
The optional label cutter must be installed and the printer configured for its use for this
function to be valid. If the cut value is (a = 0), the cutter is inactive.
A “~” (tilde) character or <NUL> (ASCII 00 Hex) character can be used in this
command. It is recommended that the “~” be used whenever possible.
When using the Cutter command, the total number of labels printed is the product of
the cut value and the print quantity.
SATO GL4xxe SBPL Programming ReferencePage 4-53
Page 92
CUT, LABEL
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
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 <ESC>~ Cut Job command in that it does not interact with the
quantity command.
ESC>~Aaaaa
aaaa = Number of labels to print between each cut (1 to 9999)
Place preceding the <ESC>Q Print Quantity command.
This set of commands will print seven labels with two labels between each cut. One
label will be cut separately.
(4-39)
The optional cutter assembly must be installed and enabled to use this function.
If the cutter option has been enabled in the printer configuration and the cut value is
(a = 0), the cutter is inactive.
This command is independent of the <ESC>Q Quantity command. It will cut the
specified number of labels.
SATO GL4xxe SBPL Programming ReferencePage 4-54
Page 93
Unit 4: Standard Command Codes
CUT, LAST
FUNCTION
FORMAT
EXAMPLE
OUTPUT
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.
<ESC>~B
Place in a separate data stream sent to the printer.
<ESC>A
<ESC>~B
<ESC>Z
This command will feed the last printed label to the cut position, cut the label and then
back feed to the head position in preparation for printing the next job.
(4-40)
NOTES
SATO GL4xxe SBPL Programming ReferencePage 4-55
The optional cutter assembly must be installed and enabled to use this function.
Page 94
CLEAR PRINT JOBS & MEMORY
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
To clear individual memory or buffer areas of the printer.
<ESC>*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. To clear the custom character
memory & To clear the form overlay memory X To clear all
internal memory
This command should be sent to the printer as an independent data stream.
<ESC>A
<ESC>*
<ESC>Z
This command does not result in printer output. The current print job in the buffer will
be terminated and all other print jobs in the buffer cleared.
See Expanded Memory Functions for variations of this command used to clear data
from the optional Expanded Memory.
It is not necessary to clear the printer’s memory between each print job.
The primary purpose of this command is to clear all print jobs in the multi-buffer
mode. The “a” parameter can be used in either the multi-buffer or single job mode to
clear specific parts of the memory.
When the “a” parameter is used, the section of memory specified will not be cleared
until the label is printed.
SATO GL4xxe SBPL Programming ReferencePage 4-56
Page 95
Unit 4: Standard Command Codes
OFFLINE/PAUSE
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
ONLINE
FUNCTION
FORMAT
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.
<ESC>@,nn . . . n
nn...n= Optional display message on the LCD (32 characters max.)
Place anywhere between <ESC>A and <ESC>Z.
<ESC>A
<ESC>@, LOAD BLUE LABELS AND PLACE PRINTER ON-LINE
...Job...
<ESC>Z
This command does not result in printer output. The printer is placed in the Off-Line
mode as soon as the current print job is finished.
When using this command and the print job specifies <ESC>Q10, all ten labels will
print before the printer goes off-line. Press the LINE key to return the printer to an online status.
Changes the printer from offline to online status.
<ESC>OL
EXAMPLE
OUTPUT
NOTES
Place anywhere between <ESC>A and <ESC>Z.
<ESC>A
<ESC>OL
<ESC>Z
This command does not result in printer output.
Up to 32 characters are available for LCD messages.
In the printer’s Receive Mode, specify the single-item buffer mode. This command is
not disclosed to users.
SATO GL4xxe SBPL Programming ReferencePage 4-57
Page 96
REPEAT LABEL
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
To print a duplicate of the last label printed.
<ESC>C
Place immediately after <ESC>A and immediately before <ESC>Z in a separate data
stream.
<ESC>A
<ESC>C
<ESC>Z
A duplicate of the previous label will be printed.
This command will not have an effect if the printer’s power is cycled off and back on
since printing the previous label.
SATO GL4xxe SBPL Programming ReferencePage 4-58
Page 97
Unit 4: Standard Command Codes
EEPROM SETUP
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
Registers the operation of the printer in EEPROM.
<ESC>PG
Place immediately after <ESC>A.
<ESC>A
<ESC>PG
<ESC>Z
This command does not result in printer output.
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.
FLASH ROM SETUP
FUNCTION
FORMAT
Registers the operation of the printer in EEPROM.
<ESC>PC
Place immediately after <ESC>A.
EXAMPLE
OUTPUT
NOTES
<ESC>A
<ESC>PC26,1
<ESC>Z
This command does not result in printer output.
Go to the Advanced Mode or Service Mode for configuration. These command setting
will remain in effect after powering off the printer.
The entire or partial parameter entries is omissible by using commas for total settings.
Any commas that are omitted will result in those settings remaining as default.
Refer to Appendix: Reference Table 30 for additional information.
SATO GL4xxe SBPL Programming ReferencePage 4-59
Page 98
SERIAL INTERFACE, CONFIGURATION
Unit 4: Standard Command Codes
FUNCTION
FORMAT
Specifies the programming configuration of the serial interface.
<ESC>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: Single item buffer
1: Multi item buffer
2: X-On/X-Off Flow control
3: Bi-Com 4
4: Bi-Com 3
EXAMPLE
OUTPUT
NOTES
Place in separate data stream sent to the printer.
<ESC>A
<ESC>I230011
<ESC>Z
This command does not result in printer output.
The settings are stored in the EEPROM by this command and they will remain in
effect until a new <ESC>I2 command is received. Cycling power will not have an
effect on these settings.
To change the value stored in the EEPROM, use the <ESC>PC Printer Setting
command or use the Printer Setting Utility program contained on the CDROM shipped
with the printer.
All command parameters must be present in the data stream sent to the printer.
Selecting X-On/X-Off, Bi-Com3 or Bi-Com4 will automatically place the printer in the
Multi Buffer mode.
SATO GL4xxe SBPL Programming ReferencePage 4-60
Page 99
Unit 4: Standard Command Codes
SENSOR TYPE
FUNCTION
FORMAT
EXAMPLE
OUTPUT
NOTES
To select a label sensing method for a print job.
<ESC>IGa
a= 0: Reflective (Eye-Mark) sensor
1: Gap (transmissive) sensor
2: Sensor not used.
Place in separate data stream sent to the printer.
<ESC>A
<ESC>IG1
<ESC>Z
This command does not result in printer output.
When the power is cycled, the value set by this command is lost and replaced by the
default value stored in the EEPROM.
To change the value stored in the EEPROM, use the Printer Setting (<ESC>PC)
command or use the Printer Setting Utility program contained on the CD-ROM shipped
with the printer.
SATO GL4xxe SBPL Programming ReferencePage 4-61
Page 100
LINE FEED
Unit 4: Standard Command Codes
FUNCTION
FORMAT
EXAMPLE
OUTPUT
To print multiple lines of the same character size without specifying a new print
position for each line.
<ESC>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.
<ESC>A
<ESC>E010<ESC>H0050<ESC>V0050<ESC>L0202<ESC>S
THIS IS THE 1ST LINE<CR>
THIS IS THE 2ND LINE<CR>
THIS IS THE 3RD LINE<CR>
<ESC>Q1<ESC>Z
(4-41)
NOTES
With the Line Feed (<ESC>E) command, specify the number of dots you want
between each line. Then, send an ASCII <ESC>CR at the end of each line of text. The
printer automatically identifies the size of the last character, moves down the number
of dots specified, and begins printing the next line.
It is effective only for the current data stream.
When printing lines or boxes in the same data stream with the Line Feed command,
the Lines and Boxes command should be specified last, preceding Quantity
(<ESC>Q) command.
This command is invalid only if the value specified is zero.
Following this command with a <ESC>CR character will allow printing with auto line
feed. The print position will be determined from the value specified and the H value set
in the printer. If several “H” values are specified after this command, the print position
will be determined by the “H” value last specified. The font to be used must be
redefined after each “H” command.
SATO GL4xxe SBPL Programming ReferencePage 4-62
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.