advertisement
“e” AND PRO SERIES
PRINTERS
PROGRAMMING
REFERENCE
SATO America, Inc.
10350A Nations Ford Road
Charlotte, NC 28273
Main Phone: (704)644-1650
Tech Support Hotline: (704)644-1660
Fax: (707)644-1662
E-Mail: [email protected]
www.satoamerica.com
© Copyright 2003
SATO America, Inc.
All rights reserved. No part of this document may be reproduced or issued to third parties in any form whatsoever without the express permission of SATO America, Inc. The materials in this document is provided for general information and is subject to change without notice. SATO
America, Inc. assumes no responsibilities for any errors that may appear.
Preliminary 11/01/02
TABLE OF CONTENTS
SECTION 1. PROGRAMMING CONCEPTS
The SATO Programming Language ............................................................................................. 1-1
Selecting Protocol Control Codes ................................................................................................. 1-2
Using Basic ................................................................................................................................... 1-2
The Print Area............................................................................................................................... 1-4
Rotated Fields ............................................................................................................................... 1-8
Command Default Settings ........................................................................................................... 1-9
Opposite Hand “Se” Printers....................................................................................................... 1-10
SECTION 2. COMMAND CODES
Bar Codes...................................................................................................................................... 2-2
Bar Codes, Expansion ................................................................................................................... 2-7
Bar Codes, Variable Ratio ........................................................................................................... 2-8
Base Reference Point ................................................................................................................. 2-10
Characters,Custom-Designed...................................................................................................... 2-12
Character Expansion ................................................................................................................... 2-14
Character, Fixed Spacing ............................................................................................................ 2-15
Character Pitch ........................................................................................................................... 2-16
Character, Proportional Spacing ................................................................................................ 2-18
Clear Print Job(s) & Memory ..................................................................................................... 2-19
Continuous Forms Printing ........................................................................................................ 2-20
Copy Image Area ....................................................................................................................... 2-21
Cut .............................................................................................................................................. 2-23
Cut Job ....................................................................................................................................... 2-24
Cut Last ...................................................................................................................................... 2-25
Fonts U, S, M, OA, OB, XU, XS & XM ................................................................................... 2-26
Font, Raster ................................................................................................................................. 2-28
Font, Vector ................................................................................................................................ 2-29
Fonts WB, WL, XB & XL .......................................................................................................... 2-31
Form Feed .................................................................................................................................. 2-33
Form Overlay, Recall.................................................................................................................. 2-34
Form Overlay, Store ................................................................................................................... 2-35
SATO Programming Reference PN 9001096 Preliminary Page iii
Table of Contents
Graphics, Custom ....................................................................................................................... 2-36
Graphics, BMP............................................................................................................................ 2-38
Graphics, PCX............................................................................................................................. 2-39
Job ID Store................................................................................................................................. 2-40
Job Name .................................................................................................................................... 2-41
Journal Print ............................................................................................................................... 2-42
Lines and Boxes ......................................................................................................................... 2-43
Line Feed .................................................................................................................................... 2-45
Media Size................................................................................................................................... 2-46
Mirror Image .............................................................................................................................. 2-47
Off-Line/Pause ........................................................................................................................... 2-48
Postnet ........................................................................................................................................ 2-49
Print Darkness ............................................................................................................................ 2-50
Print Length, Expanded .............................................................................................................. 2-51
Print Position............................................................................................................................... 2-53
Print Quantity ............................................................................................................................. 2-55
Print Speed .................................................................................................................................. 2-56
Repeat Label................................................................................................................................ 2-57
Replace Data (Partial Edit) ......................................................................................................... 2-58
Reverse Image ............................................................................................................................ 2-60
Rotate, Fixed Base Reference Point ........................................................................................... 2-62
Sequential Numbering ................................................................................................................ 2-64
Start/Stop Label........................................................................................................................... 2-66
SECTION 3. CALENDAR COMMANDS
Calendar Increment ....................................................................................................................... 3-2
Calendar Print ............................................................................................................................... 3-4
Calendar Set ................................................................................................................................. 3-6
SECTION 4. EXPANDED MEMORY
Expanded Memory Clear Expanded Memory............................................................................... 4-2
Expanded Memory Fonts, TrueType Recall ................................................................................. 4-3
Expanded Memory Fonts, TrueType Store .................................................................................. 4-4
Expanded Memory Format/Field Recall....................................................................................... 4-5
Expanded Memory Format/Field Store ........................................................................................ 4-6
Expanded MemoryForm Overlay Recall ..................................................................................... 4-7
Page iv PN 9001096 Preliminary SATO Programming Reference
Table of Contents
Expanded Memory Form Overlay Store ...................................................................................... 4-8
Expanded Memory BMP Graphics Recall.................................................................................... 4-9
Expanded Memory BMP Graphics Store ................................................................................... 4-10
Expanded Memory Graphics, Custom Recall............................................................................. 4-11
Expanded Memory Graphics, Custom Store .............................................................................. 4-12
Expanded Memory Graphics, PCX Recall ................................................................................. 4-14
Expanded Memory Graphics, PCX Store ................................................................................... 4-15
Expanded Memory Initialize ...................................................................................................... 4-16
Expanded Memory Memory Area Select.................................................................................... 4-17
Expanded Memory Status .......................................................................................................... 4-18
SECTION 5. TWO-DIMENSIONAL SYMBOLS
Two-Dimensional Bar Codes Data Matrix, Data Format ............................................................. 5-2
Two-Dimensional Bar Codes Data Matrix, Print Data ................................................................. 5-5
Two-Dimensional Bar Codes Data Matrix, Sequential Numbering ............................................. 5-6
Two-Dimensional Bar Codes Maxicode....................................................................................... 5-8
Two-Dimensional Bar Codes PDF417 ....................................................................................... 5-10
QR Code...................................................................................................................................... 5-12
SECTION 6. CONFIGURATION COMMANDS
Custom Protocol Command Codes Download ............................................................................. 6-2
Printer Setting .............................................................................................................................. 6-4
Pitch Offset ................................................................................................................................... 6-7
Print Mode .................................................................................................................................... 6-8
Print Type ..................................................................................................................................... 6-9
Sensor Type ................................................................................................................................ 6-10
Serial Interface Parameters ........................................................................................................ 6-11
SECTION 7. BI-DIRECTIONAL COMMUNICATIONS
ENQUIRE/ACK/NAK.................................................................................................................. 7-2
Status Response............................................................................................................................. 7-2
COMMAND CODE QUICK REFERENCE
Basic Commands.......................................................................................................................... A-1
Calendar Commands .................................................................................................................. A-10
Expanded Memory Commands.................................................................................................. A-11
SATO Programming Reference PN 9001096 Preliminary Page v
Table of Contents
Configuration Commands .......................................................................................................... A-14
Legacy Commands..................................................................................................................... A-15
APPENDIX B. BAR CODE SPECIFICATIONS
Codabar .........................................................................................................................................B-2
Code 39 .........................................................................................................................................B-3
Interleaved Two of Five (I 2/5).....................................................................................................B-4
UPC-A/EAN-13 ............................................................................................................................B-5
EAN-8 ...........................................................................................................................................B-7
Industrial Two of Five...................................................................................................................B-8
Matrix Two of Five .......................................................................................................................B-9
Code 128 .....................................................................................................................................B-10
MSI..............................................................................................................................................B-11
Code 93 .......................................................................................................................................B-12
UPC-E .........................................................................................................................................B-13
Bookland (UPC/EAN Supplements)...........................................................................................B-14
UCC-128 .....................................................................................................................................B-15
Postnet .........................................................................................................................................B-17
Data Matrix .................................................................................................................................B-18
Maxicode.....................................................................................................................................B-20
PDF417 .......................................................................................................................................B-22
Code 128 Character Table...........................................................................................................B-23
APPENDIX C. CUSTOM CHARACTERS AND GRAPHICS
Custom Designed Character Example ..........................................................................................C-1
Custom Designed Graphics Example............................................................................................C-4
PCX Graphics Example ................................................................................................................C-8
APPENDIX D. CUSTOM PROTOCOL COMMAND CODES
Description ................................................................................................................................... D-1
Download Command Structure.................................................................................................... D-2
Reset............................................................................................................................................. D-2
Download Procedure.................................................................................................................... D-3
Page vi PN 9001096 Preliminary SATO Programming Reference
SECTION 1.
PROGRAMMING CONCEPTS
INTRODUCTION
This section presents the commands that are used with the SATO Series “e”printers to produce labels with logos, bar codes and alphanumeric data. All of the SATO Programming Language commands use the same syntax. Some commands reference a physical point on the label using horizontal and vertical dot reference numbers. The allowable range for these references is dependent upon the particular printer to accomodate different print widths and resolutions.
These differences are noted in tables under the commandsaffected
The following information is presented in this section:
• The SATO Programming Language
• Selecting Protocol Control Codes
• Using Basic
• The Print Area
• Command Codes
THE SATO 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 SATO Series
“e” printer.
The command codes used by the SATO Series “e” Printers 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.”
SATO Programming Reference PN 9001096 Preliminary Page 1-1
SECTION 1. PROGRAMMING CONCEPTS
<ESC> {Command} {Parameter} {Data}
Some commands can contain both Parameter and Data elements, such as “print a Code 39 symbol containing the data.”
SELECTING PROTOCOL CONTROL CODES
Protocol codes are the special control characters that prepare the printer to receive instructions.
For example, 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 Non-Standard 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 E).
The Protocol Control codes are selected by a DIP switch DSW2-7 on the front panel.
CONTROL
CHARACTER
STX
ETX
ESC
ESC
ENQ
CAN
STANDARD
DSW2-7 OFF
02 Hex
03 Hex
1B Hex 5
1B Hex
05 Hex
18 Hex
NON-STANDARD
DSW2-7 ON
7 B Hex = {
7 D Hex= }
5 E Hex =
5E Hex = ^
40 Hex = @
21 Hex = !
DESCRIPTION
Start of Data
End of Data
Command code to follow
Command code to follow
Get printer status, Bi-Com mode
Cancel print job, Bi-Com mode
Take printer Off-Line
USING BASIC
It may be useful to test your “e” printer using a BASIC program on a PC. You may also write your actual production programs in BASIC. Whatever the reason, if you will be working in
BASIC, some of the following hints may help you get started:
1. 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 one line and do not contain any
<CR> and/or <LF> characters. If these characters are needed, they are explicitly noted by the inclusion of <CR> and<LF> notations.
2. If you are using the printer’s RS232C interface, it is necessary to set the COM porton on the PC such that the CTS and DSR signals will be ignored. Send your OPEN “COM” statement in the following way:
Page 1-2 PN 9001096 Preliminary SATO Programming Reference
SECTION 1. PROGRAMMING CONCEPTS
OPEN “COM1:9600,E,8,1,CS,DS”AS #1
This sets the RS232C communication parameters of the host PC’s COM1 port for 9600 baud, Even parity, 8 Data bits, 1 Stop bit and directing the port to ignore the CTS and DSR control signals.
3. You may want to minimize keystrokes and program size by assigning the <ESC>character to a string variable since this character is used quite often.
The following two examples in BASIC show a typical example using thesehints. Both of these examples use the Standard Protocol codes.
PRINTING WITH THE PARALLEL PORT
5 REM CL612 Parallel Example
10 E$=CHR$(27)
20 WIDTH “LPT1”255
30 LPRINT E$;"A";
40
LPRINTE$;"H400";E$;"V100";E$;"XL1SATO";
50 LPRINT E$;"Q1";
60 LPRINT E$; “Z”;
Identifies the program as a CL612 parallel port print label. The “REM” prevents this data from being sent to theprinter and displays it only on thescreen.
Sets the”E$” string as an
<ESC>character
Sets the width of the output to
255characters
Sends an”<ESC>A” command code tothe LPT1 parallel port
Sends the data “SATO”to be to beplaced 400 dots horizontally and
100dots vertically on the label and printed inthe “XL” font.
Instructs the printer to print one label.
Tells the printer that the last commandhas been sent. The printer can nowcreate and print the job.
PRINTING WITH THE RS232C PORT
REM CL612 RS232 Example
10 E$=CHR$(27)
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.
Sets the”E$”string as an
<ESC>character.
SATO Programming Reference PN 9001096 Preliminary Page 1-3
SECTION 1. PROGRAMMING CONCEPTS
OPEN COM1:9600,N,8,1,CS,DS AS #1
30 PRINT #1,CHR$ (2);
50 PRINT #1,E$;"A";
60 PRINT #1,
E$;"H400";E$;"V100";E$;"XL1SATO";
50 PRINT #1, E$;"Q1";
60 PRINT #1, E$; ìZî;
70 PRINT #1,CHR$ (3);
Opens the COM1 port for output andsets the parameters as 9600 baud,
Noparity, 8 Data bits, 1 Stop bit andinstructs the port to ignore the CTS and DSR control signals.
Sends an <STX> (ASCII Code a decimal “2”) to the printer instructing it toprepare to receive a message.
Sends an “<ESC>A” command code toPrint Port #1 opened by statement 20 above.
Sends the data “SATO” to be placed
400 dots horizontally and 100 dots vertically on the label and printed in the“XL” autosmoothed font.
Instructs the printer to print a quantity ofone label.
Tells the printer that the last commandhas been sent. The printer can nowcreate and print the job.
Sends an <ETX> (ASCII Code decimalì3î) to the printer telling it that this is the end of the message.
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.
THE PRINT AREA
The maximum print area for the different “e” printer models is listed in Table1. Many of your label applications may not require labels that fill the entireprint area, therefore it is important to understand how to work with labelsthat do not use the entire print area. The goal is to help you avoid printing where no label exists, which may lead to print head damage, not to mentionfrustration when you cannot see the printed output.
The diagram below illustrates the maximum print area and a sample 2 inchwide by 3 inch long label placed within this area. As can be seen, your label will be oriented against the inside left edge of the printer as viewed from the front of the printer. The normal reference point is located at the H1, V1 position of the print area in the normal print orientation (no rotation).
Page 1-4 PN 9001096 Preliminary SATO Programming Reference
l
SECTION 1. PROGRAMMING CONCEPTS
Table 1: Print Area
Resolution dpi/dpmm
Max Print Width
(Hmax) dots/inches/mm
Std Print Length
(Vmax) dots/inches/mm
Expanded Print
Length
(Vmax Expanded) dots/inches/mm
305
12
1248
4.1
104
2136
7.0
178
9999
32.8
833
305
12
1984
6.5
165
2136
7.0
178
9999
32.8
833
305
12
6400
10.5
266.7
3600
11.8
300
10080
16.5
420
305
12
1344
4.4
112
2136
7.0
178
9999
32.8
833
609
24
2496
4.1
104
4272
7.0
178
9999
16.4
416
2136
7.0
178
9999
49.2
1249
203
8
896
4.4
112
203
8
1024
5.0
128
1424
7.0
178
9999
49.2
1249
203
8
1216
6.0
152
1424
7.0
178
9999
49.2
1249
1424
7.0
178
9999
49.2
1249
203
8
832
4.1
104
There are three methods available to make sure your printed output will appear correctly on your label. They are as follows:
1. Media Size Command. Use the <ESC>A1 Media Size Command. This command specifies the width and length of the label. The printer will automatically calculate the correct
SATO Programming Reference PN 9001096 Preliminary Page 1-5
SECTION 1. PROGRAMMING CONCEPTS offsets for printing labels of that size. However, if you specify a label size with this command, the labels loaded should match thesize specified to correctly position the label.
2. Base Reference Point Command. Send the <ESC>A3 Base Reference Point command as part of your data to the printer to set a new base reference point for your label.
Calculate the distance (in dots) from the normal base reference point to the closest edge of the label.
For an M-8400RVe 8 dpmm printer , this would be:
LABEL WIDTH = 2" X 25.4 MM/IN X 8 DPMM = 406 DOTS
The new Base Reference Point then becomes:
NEW BASE REFERENCE POINT = MAXIMUM PRINT WIDTH - LABEL WIDTH
= (832 DOTS) - (406 DOTS) = 426 DOTS
Issue the Base Reference Point command <ESC>A3 after the Start command inyour data stream.
<ESC>A<ESC>A3H0426V0001. . . . . .
This resets the reference point for all the following data.
3. Add the correct offset to all horizontal commands. Use the normal base reference point from the print area and use the horizontal position for each field to properly locate it on the label.
Calculate the distance (in dots) from the normal base reference point to the closest edge of the label.
For an M-8400RVe 8 dpmm printer:
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 position each field.
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 five inch wide label. If you want to test any of the sample label outputs and are using labels less than five inches in width, we suggest that you add the Base Reference Point command to the data stream in order for the images to print on your labels.
You must be careful not to print off the label surface as the label provides a heat sink for the print head elements. Doing so will cause irreparable damageto the head. This damage is not covered under the print head warranty. The addition of the Base Reference Point command to the sample data stream may help to adjust the print for your labels. See the following two examples or refer to the Base Reference Point command description.
Page 1-6 PN 9001096 Preliminary SATO Programming Reference
SECTION 1. PROGRAMMING CONCEPTS
For example, the following illustrates a sample data stream for a M-8400RVe printer and the resulting label assuming a 4 inch wide label:
<ESC>A
<ESC>H0050<ESC>V0100<ESC>L0303<ESC>XMSATO
<ESC>H0050<ESC>V0200<ESC>B103100*SATO*
<ESC>H0070<ESC>V0310<ESC>L0101<ESC>XUSATO
<ESC>Q1<ESC>Z
If you are using a 2 inch wide label, the entire image may not appear on your 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 theimage to be shifted over toward the inside of the printer where it can beprinted on the narrower label.
<ESC>A
<ESC>A3H0406V0001
<ESC>H0050<ESC>V0100<ESC>L0303<ESC>XMSATO
<ESC>H0050<ESC>V0200<ESC>B103100*SATO*
<ESC>H0170<ESC>V0310<ESC>L0101<ESC>XUSATO
<ESC>Q1
<ESC>Z
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 Programming Reference PN 9001096 Preliminary Page 1-7
SECTION 1. PROGRAMMING CONCEPTS
ROTATED FIELDS
The M-8400RVe printer can rotate each print field in 90° increments using the Rotate command.
• <ESC>% - The field rotates, but the base reference point for the fieldremains the same.
The following data stream will rotate the print field but will not change the base reference point of the field:
<ESC>A<ESC>%1<ESC>V800<ESC>H200<ESC>L0202<ESC>XB1E<ESC>Q1<ESC>Z
Page 1-8 PN 9001096 Preliminary SATO Programming Reference
SECTION 1. PROGRAMMING CONCEPTS
COMMAND DEFAULT SETTINGS
There are some types of commands that must have a value specified before a label can be printed. If the data stream does not contain these commands, a default value is assumed. The commands and the corresponding default values are:
COMMAND
Print Rotation
Vertical Reference Point
Horizontal Reference Point
Character Pitch
Base Reference Point
Character Expansion
Print Darkness
Print Speed (DSW2-8 = On)
Print Speed (DSW2-8 = Off)
Proportional Spacing
Cutter Command
DEFAULT
0°
0
0
2 (
H=0, V=0
1
Enabled
Disabled
NOTE
(1)
(1)
(1)
1)
(2)
(1)
(1)(3)
(2)(3)
(2)(3)
(1)
(1)
SATO Programming Reference PN 9001096 Preliminary Page 1-9
SECTION 1. PROGRAMMING CONCEPTS
NOTES:
1. The settings for these commands will revert to the default value when the printer receives an <ESC>Z or an <ESC>*.
2. The values transmitted with these commands will remain in effect until a newcommand is received.
3. This default setting is printer dependent.
OPPOSITE HAND”SE” PRINTERS
The standard “Se” print engine is referred to as a“right-hand”printer (i.e., when facing the
Control Panel, the label comes out from left to right). The M-8485Se, M-8460Se and M-
8490Se are also available in a “left-hand” (i.e., the label comes outright to left) version. The
M-8459Se is only available in the standard Right-Hand configuation.
The only difference in the print area is the horizontal base reference point for the label.With the standard “Se” printer, the reference point is the first print position nearest the inside frame.
With the “left-hand” version, the reference point is the first print position away from the frame. The same command stream sent to both printers should print an identical label except the image may be shifted because of the relative positioning of the label under the print head.
Page 1-10 PN 9001096 Preliminary SATO Programming Reference
SECTION 2.
COMMAND CODES
This section contains the basic Command Codes for the SATO “e” and PRO Series printers.
Commands for the oprions and specialized functions are provided in the following sections.
Commands must be sent to the printer in an organized fashion in order for the label(s) to print.
The purpose of this section is to:
• Explain the different commands and provide examples of their usage.
• To provide a detailed reference for programming the printers.
Each command begins on a separate page with its own heading. A uniform layout is used to help you find key information about each command. For each Command Code in this section, there will be a sample data input stream to the printer and the expected print output. By studying the examples, you can learn how to use the particular command within a whole block of printer code. Pay particular attention to the “Special Notes” with each command to learn other important information.
The subject commands are highlighted in bold letters in the Reference Sheets. There are two parts of most, but not all, commands. The first is the command character which immediately follows the <ESC> code. It is always an upper case alpha or a special character (such as an
“&” or a “%”). It is never a lower case alpha character. If the command requires additional variable information, it is represented by a group of lower case alpha characters immediately following the command character. For example, if an aaaabb is listed following the basic command, the printer will look for six characters immediately following the command. The first four would represent the value of aaaa and the next two the value of bb.
The maximum number of characters defined in a parameter is represented by the number of characters shown in the command structure. For example, a command followed by an aaaa can have up to four characters. In general, commands with only one parameter following the command can be entered without the leading zeroes. However, certain commands require the exact number of matching characters. A command with two parameters listed following the command code without a comma delimiter, such as aaaabbbb require the exact number of digits to be entered. If the value of aaaa is “800” and the value of bbbb is “300”, then the parameters must be entered as “08000300”. It is recommended that you make it a practice to always enter leading zeros to prevent any mistakes.
NOTE: These examples assume the use of the Standard Protocol
Command Codes, a parallel interface and a 5 inch wide label in a
M-8400RVe printer. The labels for all other printers will be similar, but, because of different resolutions and print widths may be larger or scaled differently.
An alphabetical listing of the command codes is contained in Appendix A:Command Code
Quick Reference.
SATO Programming Reference PN 9001096 Preliminary Page 2-1
Section 2: Command Codes
Bar Codes
Command Structure
Command Function
1:3 narrow/wide bar ratio: <ESC>Babbcccd
2:5 narrow/wide ratio: <ESC>BDabbcccd
1:2 narrow/wide bar ratio: <ESC>Dabbcccd a = 0 Codabar
1 Code 39
2 Interleaved 2 of 5 (I 2/5)
3 UPC-A / EAN-13
4 EAN-
5 Industial 2 of 5
6 Matrix 2 of 5
7 reserved
8 reserved
9 reserved
A MSI
B reserved
C Code 93
D reserved
E UPC-E
F Bookland
G Code 128
I UCC 128 bb = Number of dots (01-12) for narrow bar and narrow space ccc = Bar height in dots (001-600) d = UCC 128 only. Not used for other bar code types
0 No human readable text
1 Human readable at top
2 Human readable at bottom
Example: <ESC>BD103200
Placement: Immediately preceding data to be encoded
Default: None
To print bar code images on a label. With this command, there are 14 standard bar code symbologies available to be printed and three two dimensional symbols (see Section 5. Two Dimensional Symbols). Each of the bar code symbologies are unique, and it is important to know the differences. See Appendix B for specific information on using each individual bar code symbol.
Page 2-2 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Input to Printer <ESC>A
<ESC>H0025<ESC>V0025<ESC>B103100*CODE 39*
<ESC>H0155<ESC>V0130<ESC>XS*CODE 39*
<ESC>H0025<ESC>V0200<ESC>BD20210045676567
<ESC>H0075<ESC>V0310<ESC>XM45676567
<ESC>H0025<ESC>V0375<ESC>BD30215001234567890
<ESC>H0025<ESC>V0600<ESC>BD50210012345
<ESC>H0175<ESC>V0710<ESC>XS12345
<ESC>H0025<ESC>V0775<ESC>BD60210012345
<ESC>H0105<ESC>V0885<ESC>XS12345
<ESC>H0025<ESC>V0950<ESC>BA03100123455
<ESC>H0095<ESC>V1060<ESC>XS12345
<ESC>H0025<ESC>V1125<ESC>BC03100081234ABCD
<ESC>H0080<ESC>V1240<ESC>XS1234ABCD
<ESC>H0525<ESC>V0025<ESC>B002100A12345B
<ESC>H0565<ESC>V0135<ESC>XS12345
<ESC>H0475<ESC>V0200<ESC>BD303100123456789012
<ESC>H0525<ESC>V0375<ESC>BD4031001234567
<ESC>H0525<ESC>V0550<ESC>DE03100123456
<ESC>H0500<ESC>V0600<ESC>OB0
<ESC>H0533<ESC>V0655<ESC>OB123456
<ESC>H0350<ESC>V0725<ESC>D30315009827721123
<ESC>L0101<ESC>H0320<ESC>V0800<ESC>OB0
<ESC>H0365<ESC>V0878<ESC>OB98277
<ESC>H0505<ESC>V0878<ESC>OB21123
<ESC>H0665<ESC>V0760<ESC>BF0313021826
<ESC>H0680<ESC>V0730<ESC>OB21826
<ESC>H0425<ESC>V1125<ESC>D30315000633895260
<ESC>L0101<ESC>H0395<ESC>V1200<ESC>OB0
<ESC>H0440<ESC>V1278<ESC>OB06338
<ESC>H0580<ESC>V1278<ESC>OB95260
<ESC>H0730<ESC>V1155<ESC>BF0314024
<ESC>H0745<ESC>V1125<ESC>OB24
<ESC>H0325<ESC>V0950<ESC>BG03100>GAB>B789>C123456
<ESC>H0435<ESC>V1055<ESC>XSAB789123456 <ESC>Q1<ESC>Z
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.
SATO Programming Reference PN 9001096 Preliminary Page 2-3
Printer Output
Section 2: Command Codes
Page 2-4 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
UCC-128 Without Incrementing
<EXC>A<EXC>H0100<EXC>V0100
<EXC>B107150101234567000000001
<ESC>Q2<ESC>Z
With Incrementing
<ESC>A<ESC>H0100<ESC>V0100
<ESC?F001+001<ESC>B107150101234567000000001
<ESC>Q2<ESC>Z
SATO Programming Reference PN 9001096 Preliminary Page 2-5
Special Notes
Section 2: Command Codes
1. 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.
2. The Code 128, UCC 128, MSI, and Code 93 bar codes are not affected by the narrow to wide ratios.
3. 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.
4. Because of their unique characteristics, two-dimensional (2D) symbols are covered separately.
5. 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.
6. The <ESC>D and <ESC>BD commands are not valid for the MSI,
Code 128, Code 93, UPC-E, Bookland, UCC128 and Postnet symbologies.
Page 2-6 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Bar Codes, Expansion
Command Structure
Command Function
Input to Printer
<ESC>BWaabbb aa = Expansion factor by which the width of all bars and spaces will be increased (01-12) bbb = Bar height by dot (004-600 dots)
Example: <ESC>BW02100
Placement: Immediately follows the <ESC>BT command and precedes data to be encoded.
Default: None
This command works together with the <ESC>BT command to specify an expansion factor and the bar code height for the particular symbol being printed.
<ESC>A
<ESC>H0050<ESC>V0050<ESC>BT101030103
<ESC>BW04100*1234*
<ESC>Q1<ESC>Z
Printer Output
Special Notes 1. This command must be preceded by the Variable Ratio Bar Codes
<ESC>BT command.
2. The following bar codes will be affected by the Character Pitch command: Codabar, Code 39, Interleaved 2 of 5, Matrix 2 of 5.
SATO Programming Reference PN 9001096 Preliminary Page 2-7
Section 2: Command Codes
Bar Codes, Variable Ratio
Command Structure
Command Function
Input to Printer
<ESC>BTabbccddee a = Bar Code Symbol:
0 Codabar
2 Interleaved 2 of 5
5 Industrial 2 of 5
6 Matrix 2 of 5 bb = Narrow space in dots (01-99) cc = Wide space in dots (01-99) dd = Narrow bar in dots (01-99) ee = Wide bar in dots (01-99)
Example: <ESC>BT101030103
Placement: Following print position commands and preceding
<ESC>BW
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>A
<ESC>H0050<ESC>V0050<ESC>BT101030103
<ESC>BW03100*1234*
<ESC>Q1<ESC>Z
Printer Output
Page 2-8 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Special Notes 1. This command must be immediately followed by the <ESC>BW Bar
Code Expansion command.
2. You may use only one variable ratio bar code per label.
3. If the data specified in this command is incorrect, the command is ignored and the ratio used will be based on the previous setting.
SATO Programming Reference PN 9001096 Preliminary Page 2-9
Section 2: Command Codes
Base Reference Point
Command Structure
Command Function
Input to Printer
<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 bbbb
= Horizontal Print Offset (-Hmax to +Hmax)
= Vertical Print Offset (-Vmax to +Vmax)
Example: <ESC>A3H100V0050
Placement:
Default:
Preceding all images that are based on the new base reference point
Current V and H offset setting in the printer configuration
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>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
Printer Output
Page 2-10 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Special Notes 1. Use of this command will set the Vertical/Horizontal Offset setting of the printer configuration until a new Base Reference Point command is issued or the setting is changed from the operator panel.
2. This command may be used more than once in a print job.
3. An alternative to using this command is to make changes to your current Horizontal and Vertical Print Position commands.
Example: Let us say 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.
4. For a more detailed example of the Base Reference Point command, see”Print Area” in Section 1.
5. The "Se" print engines can print as close as 2 mm to the inside edge of the label.
6. The printers will not “wrap” (i.e. 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).
7. See Table 1, Print Area in Section 1 for values of Hmax and Vmax.
SATO Programming Reference PN 9001096 Preliminary Page 2-11
Section 2: Command Codes
Characters,Custom-Designed
Command Structure
Command Function
Printer Input
Store Command: <ESC>Tabcc
Recall Command: <ESC>Kab90cc a = 1 16x16 matrix
2 24x24 matrix b cc
=
=
Specifies the character encoding method for the data stream
H Hexadecimal characters
B Binary characters
Memory location to store/recall the character. Valid memory locations are 21 to 52 (counting in Hex) or”!” or “R” in Binary.
(data) = Data to describe the character
Example: <ESC>T1H3F
<ESC>K1H903F
See Appendix C for a more detailed explanation
Placement: The Store command is typically sent in its own data stream to the printer, between the Start/Stop commands. The Recall command is sent in a secondary data stream to print the character, and follows any necessary position or size commands.
Default: None
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.
See Appendix C for a detailed explanation.
<ESC>A <ESC>T1H3F0100038007C00FE01FF03FF87FFCFFFE
07C007C007C007C007C007C007C007C0
<ESC>Z
<ESC>A <ESC>H150<ESC>V100<ESC>L0505<ESC>K1H903F
<ESC>H350<ESC>V100<ESC>L1010<E SC>K1H903F <ESC>Q1
<ESC>Z
Page 2-12 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Printer Output
Special Notes 1. When printing the custom character using the Recall command, the character is affected by the following commands: Character Expansion
Character Pitch Line Feed Rotate, Fixed Base Reference Point
2. The characters are stored in volatile memory and must be reloaded if the printer power is lost.
3. Do not use ASCII <CR> or <LF> characters (carriage return or line feed) as line delimiters within the graphic data or the actual image will not be printed as specified.
SATO Programming Reference PN 9001096 Preliminary Page 2-13
Section 2: Command Codes
Character Expansion
Command Structure
Command Function
Input to Printer
<ESC>Laabb aa = Multiple to expand horizontally (01-12) bb = Multiple to expand vertically (01-12)
Example: <ESC>L0305
Placement:
Default:
Preceding the data to be expanded
<ESC>L0101
To expand characters independently in both the horizontal and vertical directions. The command allows you to enlarge the base size of each font (except the vector font) up to 12 times in either direction. Expanded characters are typically used for added emphasis or for long distance readability.
<ESC>A<ESC>H0100<ESC>V0100<ESC>XMSATO
<ESC>H0100<ESC>V0200<ESC>L0402<ESC>XMSATO
<ESC>H0100<ESC>V0300<ESC>L0204<ESC>XMSATO
<ESC>Q1<ESC>Z
Printer Output
Special Notes
Page 2-14
1. This command will expand the following fonts: Fonts U, S, M, XU,
XS, XM, OA & OB and fonts WB, WL, XB and XL.
2. This command will also affect the following commands: Character
Pitch Characters, Custom-Designed
3. The Character Expansion value is in effect for the current print job until a new expansion command is specified.
4. 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
<ESC>Q Quantity command.
PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Character, Fixed Spacing
Command Structure
Command Function
Printer Input
<ESC>PR
Placement:
Default:
Preceding the data
The default is Proportional Spacing.
To reset proportional spacing and place the printer back to fixed spacing.
<ESC>A
<ESC>H0100<ESC>V0050<ESC>PS
<ESC>L0404<ESC>XMPROPORTIONAL SPACING
<ESC>H0100<ESC>V0180<ESC>PR
<ESC>L0404<ESC>XMFIXED SPACING
<ESC>Q1<ESC>Z
Printer Output
Special Notes 1. This command only works with the proportionally spaced fonts XU,
XM, XS, XL and XB.
SATO Programming Reference PN 9001096 Preliminary Page 2-15
Character Pitch
Section 2: Command Codes
Command Structure
Command Function
Input to Printer
<ESC>Paa aa = Number of dots between characters (00-99)
Example: <ESC>P03
Placement: Preceding the text to be printed
Default: <ESC>P02
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.
ESC>A
<ESC>H0025<ESC>V0025<ESC>L0202<ESC>XB1SATO
<ESC>H0025<ESC>V0125<ESC>L0202<ESC>P20<ESC>XB1SATO
<ESC>H0025<ESC>V0225<ESC>L0202<ESC>P40<ESC>XB1SATO
<ESC>Q1<ESC>Z
Printer Output
Page 2-16 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Special Notes 1. 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
2. To avoid confusion, you may want to include the <ESC>L Character
Expansion command and this command together in your program.
3. This command affects fonts U, S, M, XU, XS, XM, OA & OB, WB, WL,
XB and XL, and the vector font.
4. Character Pitch will always revert to the default value unless it is specified before each new font command in the data stream.
5. This command also affects Codabar, Code 39 and Industrial 2 of 5 bar codes.
SATO Programming Reference PN 9001096 Preliminary Page 2-17
Section 2: Command Codes
Character, Proportional Spacing
Command Structure
Command Function
Printer Input
<ESC>PS
<ESC>PR
Set to proportional spacing Reset to fixed spacing
Placement: Preceding the data to be proportional spaced
Default: <ESC>PS
To specify the printing of proportional or fixed spacing for proportionally spaced fonts.
<ESC>A
<ESC>H0025<ESC>V0050<ESC>PS
<ESC>L0202<ESC>XMPROPORTIONAL SPACING
<ESC>H0025<ESC>V0130<ESC>PR
<ESC>L0202<ESC>XMFIXED SPACING
<ESC>Q1<ESC>Z
Printer Output
Special Notes 1. 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.
Page 2-18 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Clear Print Job(s) & Memory
Command Structure
Command Function
Input to Printer:
Printer Output:
Special Note
<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. T To clear the custom character memory & To clear the form overlay memory X To clear all internal memory
Example:
Placement:
<ESC>*
<ESC>*&
This command should be sent to the printer as an independent data stream.
Default: None
To clear individual memory or buffer areas of the printer.
<ESC>A
<ESC>*
<ESC>Z
There is no printer output as a result of this command. The current print job in the buffer will be terminated and all other print jobs in the buffer cleared.
1. See Expanded Memory Functions for variations of this command used to clear data from the optional Expanded Memory.
2. It is not necessary to clear the printer’s memory between each print job.
3. 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 multibuffer or single job mode to clear specific parts of the memory.
4. When the "a" parameter is used, the section of memory specified will not be cleared until the label is printed.
SATO Programming Reference PN 9001096 Preliminary Page 2-19
Section 2: Command Codes
Continuous Forms Printing
Command Structure None
The printer locates the end of an adhesive label by sensing the backing between labels or through the use of an eye-mark (black rectangle on the reverse side of the backing). It locates the end of a tag from a notch, eyemark, or a hole between tags. Both sensors should be disabled when printing continuous forms by placing the Label Sensor Selection switch
(DSW3-3) in the ON position. See the specific printer Operator Manual for instructions on configuring the printer using the DIP switch array.
If you will be using continuous labels or tags, the printer must be told to stop feeding in another manner. The length is determined by the position of the last printed image on the label or tag. The printer will stop feeding when this last field is finished printing. The length may be increased with printed spaces (20 hexadecimal) if necessary. There is no command code to control label length.
Page 2-20 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Copy Image Area
Command Structure
Command Function
Input to Printer
<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
Example: <ESC>WDH0100V0050X0600Y0400
Placement: Anywhere within the data stream, after specifying the location of the duplicate image.
Default: None
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>A
<ESC>H0050<ESC>V0050<ESC>E010<ESC>XM
SATOSATOSATOSATOSATOSATOSATO
SATOSATOSATOSATOSATOSATOSATO
SATOSATOSATOSATOSATOSATOSATO
SATOSATOSATOSATOSATOSATOSATO
<ESC>H0180<ESC>V0250<ESC>WDH0130V0050X0400Y0200
<ESC>Q1<ESC>Z
Printer Output
SATO Programming Reference PN 9001096 Preliminary Page 2-21
Special Notes
Section 2: Command Codes
1. Use the Print Position commands (V and H) to locate the new area for the duplicate image.
2. Position of the new target area must not be inside the original image.
3. If you use the Rotate command, V, H, X and Y axis will be reversed.
4. If the reference area of the target image exceeds the print area, it will not be printed.
5. See Section 1 Table 1 for values of Hmax and Vmax.
Page 2-22 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Cut
Command Structure
Command Function
Input to Printer
Printer Output
ESC>~Aaaaa aaaa = Number of labels to print between each cut (1-9999)
Example:
Placement:
<ESC>~A2
Preceding the <ESC>Q Print Quantity command.
Default: <ESC>~A1 (if cutter enabled)
To control the cutting of labels when using a SATO cutter unit with the printer printer. This command allows the cutting of a multi-part tag or label at a specified interval within a print job. It differs from the <ESC>~ Cut Job command in that it does not interact with the quantity command.
<ESC>A
<ESC>H0020<ESC>V0020<ESC>XB1ABC<ESC>~A0002
<ESC>Q7<ESC>Z
This set of commands will print seven labels with two labels between each cut. One label will e cut separately.
Special Notes
1. You must have the optional printer Cutter to use this function. Contact your SATO representative for more information.
2. To use this command, the printer configuration must have the cutter option enabled. See Configuration Commands in this section of the manual.
3. If the cutter option has been enabled in the printer configuration and the cut value (a = 0), the cutter is inactive.
4.
This command is independent of the <ESC>Q Quantity command. It will cut the specified number of labels.
SATO Programming Reference PN 9001096 Preliminary Page 2-23
Section 2: Command Codes
Cut Job
Command Structure
Command Function
Input to Printer
Printer Output
<ESC>~aaaa aaaa = Number of labels to print between each cut (1-9999)
Example:
Placement:
<ESC>~2
Following the Print Quantity command <ESC>Q
Default: <ESC>~1 (if cutter enabled)
To control the cutting of labels when using a SATO cutter unit with the printer. This command allows the cutting of a multi-part tag or label at a specified interval within a print job.
<ESC>A
<ESC>H0020<ESC>V0020<ESC>XB1ABC<ESC>Q3
<ESC>~0002
<ESC>Z
This set of commands will print 6 labels (3 x 2) with two labels between each cut.
Special Notes
Page 2-24
1. You must have the optional printer Cutter to use this function. Contact your SATO representative for more information.
2. To use this command, the printer configuration must have the cutter option enabled. See Printer Configuration commands in this section manual.
3. If the cutter option has been enabled in the printer configuration and the cut value (a = 0), the cutter is inactive.
4. A”~” (tilde) character or <NUL> (ASCII 00 Hex) character can be can be used in this command. It is recommended that the ”~” be used whenever possible.
5. 5. When using the Cutter command, the total number of labels printed is the product of the cut value and the print quantity.
PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Cut Last
Command Structure
Command Function
Input to Printer
Printer Output
<ESC>~B
Example: <ESC>~B
Placement: Separate data stream sent to the printer
Default: None
To control the cutting of labels when using a SATO cutter unit with the printer. This command allows the cutting of a printed multi-part tag or label that is left in the printer after a job is cut.
<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.
Special Notes 1. You must have the optional printer Cutter to use this function. Contact your SATO representative for more information.
SATO Programming Reference PN 9001096 Preliminary Page 2-25
Section 2: Command Codes
Fonts U, S, M, OA, OB, XU, XS & XM
Command Structure
Command Function
Input to Printer
Font XU: <ESC>XU
Font XS: <ESC>XS
Font XM: <ESC>XM
Font OA: <ESC>OA
Font U: <ESC>U
Font S: <ESC>S
Font M: <ESC>M
Font OB: <ESC>OB
Example: See above
Placement: Preceding the data to be printed
Default: None
To print text images on a label. These are eight of the built-in fonts available on the printer. All matrices include descenders.
U
S
M
OA
OB
Non-Proportional
5W x 9H dot matrix
8W x 15H dot matrix
13W x 20H dot matrix
OCR-A font (see note 7 for matrix)
OCR-B font (see note 7 for matrix)
XU
XS
XM
Proportional(1)
5W x 9H dot matrix
17W x 17H dot matrix
24W x 24H dot matrix
(1) These fonts will be printed with proportional spacing only if preceded by an <ESC>PS command.
<ESC>A<ESC>PS
<ESC>H0001<ESC>V0100<ESC>L0202<ESC>XUSATO
<ESC>H0001<ESC>V0175<ESC>L0202<ESC>XSSATO
<ESC>H0001<ESC>V0250<ESC>L0202<ESC>XMSATO
<ESC>H0001<ESC>V0325<ESC>L0101<ESC>OASATO
<ESC>H0001<ESC>V0400<ESC>L0101<ESC>OBSATO
<ESC>H0300<ESC>V0100<ESC>L0202<ESC>USATO
<ESC>H0300<ESC>V0175<ESC>L0202<ESC>SSATO
<ESC>H0300<ESC>V0250<ESC>L0202<ESC>MSATO
<ESC>Q1<ESC>Z
Page 2-26 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Printer Output
Special Notes 1. Characters may be enlarged through the use of the Character Expansion command.
2. Character spacing may be altered through the use of the Character
Pitch command. The default is 2 dots between characters. It is recommended to use a spacing of 5 dots for OCR-A and 1 dot for OCR-B.
3. You may also create custom characters or fonts. See the <ESC>T
Custom-Designed Characters command.
4. A font must be defined for each field to be printed. There is no default font.
5. Fonts U, S, M, OA and OB are identical to fonts U, S, M, OA and OB on the SATO M-8400 printer. (Note: These fonts, except the OA and
OB fonts which are fixed in size, will be 33% smaller on a 300 dpi printer and 67% smaller on a 600 dpi printer)
6. The proportionally spaced fonts XU, XS, XM, XL and XA can be printed with fixed spacing using the <ESC>PS Proportional Space command.
7. 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.
203 dpi (8 dpm)
OA Font 15 dots W x 22 dots H
OB Font 20 dots W x 24 dots H
305 dpi (12 dpmm)
22 dots W x 33 dots H
30 dots W x 36 dots H
609 dpi (24 dpmm)
44 dots W x 66 dots H
60 dots W x 72 dots H
SATO Programming Reference PN 9001096 Preliminary Page 2-27
Section 2: Command Codes
Font, Raster
Command Structure
Command Function
Input to Printer
<ESC>A<ESC>RDabb,ccc,ddd,nn. . .n a = A CG Times font style
B CG Triumvirate font style.
bb = Always 00 ccc = Horizontal size (16 - 999 dots or P08 - P72) ddd = Vertical size (16 - 999 dots or P08 - P72) nn..n
= Data to be printed.
Example: <ESC>RDA00,014,018ABCD
Placement: Within normal command stream.
Default: None
To print point size characters created using font definitions.
<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
Printer Output
Special Notes 1. 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”.
Page 2-28 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Font, Vector
Command Structure
Command Function
Input to Printer
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
Example: <ESC>$A,100,200,0<ESC>$=123456
Placement: Immediately preceding data to be printed.
Default: None
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.
<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
SATO Programming Reference PN 9001096 Preliminary Page 2-29
Section 2: Command Codes
Printer Output
Special Notes 1. The Pitch command can be used with Vector fonts.
2. If the font size designation is out of the specified range, a default value of 50 is used.
3. The font width and height values include ascenders, descenders, and other space.
4. A font must be defined for each field to be printed. There is no default font.
Page 2-30 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Fonts WB, WL, XB & XL
Command Structure
Command Function
Input to Printer
Font WB: <ESC>WBa
Font WL: <ESC>WLa
Font XB: <ESC>XBa
Font XL: <ESC>XLa a = 0 Disables auto-smoothing of font
1 Enables auto-smoothing of font (see notes below)
Example: <ESC>WB1123456
Placement: Preceding the data to be printed
Default: None
To print text images on a label. These are the four auto-smoothing fonts available on the printer.
WB
Non-Proportional
18W x 30H dot matrix
Proportional
(1)
XB 48W x 48H dot matrix
WL 28W x 52H dot matrix XL 48W x 48H dot matrix
(1) These fonts will be printed with proportional spacing only if preceded by an
<ESC>PS command.
<ESC>A<ESC>PS
<ESC>H0001<ESC>V0100<ESC>WB0SATO
<ESC>H0001<ESC>V0185<ESC>WB1SATO
<ESC>H0001<ESC>V0270<ESC>WL0SATO
<ESC>H0001<ESC>V0355<ESC>WL1SATO
<ESC>H0300<ESC>V0100<ESC>XB0SATO
<ESC>H0300<ESC>V0185<ESC>XB1SATO
<ESC>H0300<ESC>V0270<ESC>XL0SATO
<ESC>H0300<ESC>V0355<ESC>XL1SATO
<ESC>Q1<ESC>Z
SATO Programming Reference PN 9001096 Preliminary Page 2-31
Section 2: Command Codes
Printer Output
Special Notes 1. Auto-smoothing (when enabled) is only effective if the character expansion rate is at least (3) times in each direction.
2. Characters may be enlarged through the use of the <ESC>L Character
Expansion command.
3. Character spacing may be altered through the use of the <ESC>A Character Pitch command.
4. A font must be defined for each field to be printed. There is no default font.
5. The proportionally spaced fonts XU, XS, XM, XL and XB can be printed with fixed spacing using the <ESC>PS Proportional Space command.
Page 2-32 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Form Feed
Command Structure
Command Function
Input to Printer
Printer Output
<ESC>A(space)<ESC>Z
Placement: Separate data stream sent to printer
Default: None
To feed a blank tag or label, which is the equivalent of a “form feed.”
<ESC>A(space) <ESC>Z
Blank label or tag
SATO Programming Reference PN 9001096 Preliminary Page 2-33
Section 2: Command Codes
Form Overlay, Recall
Command Structure
Command Function
Input to Printer
<ESC>/
Placement: Must be preceded by all other data and placed just before the Print Quantity command (<ESC>Q)
Default: None
To recall the label image from the form overlay memory for printing. This command recalls a stored image from the overlay memory. Additional or different data can be printed with the recalled image.
<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
Printer Output
Special Notes 1. The overlay is stored using the <ESC>& Form Overlay Store command.
2. If the this command is used with the <ESC>EX0 Expanded Print
Length command the Form Overlay length cannot exceed 9999 dots.
Page 2-34 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Form Overlay, Store
Command Structure
Command Function
Input to Printer
Printer Output
Special Notes
<ESC>&
Example: See above
Placement: Must be preceded by all other data and placed just before the Stop command (<ESC>Z)
Default: None
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>A
<ESC>H0100<ESC>V0125
<ESC>STHIS IS THE STORED IMAGE WITH A BARCODE
<ESC>H0100<ESC>V0165<ESC>B103100*12345*
<ESC> &
<ESC>Z
There is no output from this command. It stores the label image in the overlay buffer.
1. Remember that this storage is volatile. Therefore, if the printer loses power, the overlay must be sent again.
2. The overlay is recalled using the <ESC>/ Form Overlay Recall command.
3. 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.
SATO Programming Reference PN 9001096 Preliminary Page 2-35
Section 2: Command Codes
Graphics, Custom
Command Structure
Command Function
Printer Input
<ESC>Gabbbccc(data) a = Specifies format of data stream to follow B Binary format H Hexadecimal format bbb = Number of horizontal 8 x 8 blocks (see note 7 for allowable range) ccc = Number of vertical 8 x 8 blocks (see note 7 for allowable range)
(data) = Hex data to describe the graphic image
Example: <ESC>GH006006 See Appendix C for a detailed example
Placement: May be placed anywhere within the data stream after the necessary position commands.
Default: None
To create and print custom graphics (logos, pictures, etc.) on a label.
The graphic image may be printed along with other printed data to enhance label appearance or eliminate the need for preprinted label stock. Using a dot-addressable matrix, design the graphic image in 8 dot by 8 dot blocks, then send it in a binary format to the printer.
<ESC>A
<ESC>H0100<ESC>V0100<ESC>GH006006
FFFFFFFFFFFFFFFFFFFFFFFFC00000000003
C00000000003C000FFFFFFF3C00080000013
C00080000013C0009FFFFF13C00080000013
C00080000013C0009FFFFF13C00080000013
C00080000013C000FFFFFFF3C00000000003
C00000000003C00000000003C00000000003
C00000000003C00000000003C00003C00003
C00007E00003C0000FF00003C0000FF00003
C0000FF00003C0000FF00003C00007E00003
C00003C00003C00003C00003C00003C00003
C00003C00003C00003C00003C00003C00003
C00003C00003C00003C00003C00003C00003
C00003C00003C00001800003C00000000003
C00000000003FFFFFFFFFFFFFFFFFFFFFFFF
<ESC>H0300<ESC>V0100<ESC>XSPLEASE PLACE YOUR DISK
<ESC>H0300<ESC>V0150<ESC>XSIN A SAFE PLACE
<ESC>Q1<ESC>Z
See Appendix C for a details on the data format.
Page 2-36 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Printer Output
Special Notes 1. Do not use ASCII <CR> or <LF> characters (carriage return or line feed) as line delimiters within the graphic data or the actual image will not be printed as specified.
2. A custom graphic cannot be enlarged by the <ESC>L Character
Expansion command.
3. A custom graphic is not affected by either of the Rotation commands. Therefore, always design and locate your graphic image to print in the appropriate orientation.
4. To store graphic images in optional Expanded Memory, see the
Expanded Memory Functions section.
5. The binary format reduces the transmission time by 50%.
6. See Section 1 Table 1 for values of Hmax and Vmax.
7. Use the <ESC>E0 Expanded Print Length command to get the maximum label length.
SATO Programming Reference PN 9001096 Preliminary Page 2-37
Graphics, BMP
Section 2: Command Codes
Command Structure
Command Function
Printer Input
<ESC>GMaaaaa,(data) aaaaa = Number of bytes to be downloaded
Example: <ESC>GM32000, ... data...
Placement: Anywhere within the job data stream
Default: None
To allow the creation and printing of graphic images using a BMP file format.
See Appendix Appendix C for a detailed example
<ESC>A
<ESC>V0100<ESC>H0100<ESC>GM03800,(...Data...)
<ESC>Q1
<ESC>Z
Printer Output
Special Notes 1. The maximum number of bytes that can be downloaded is 32K
(compressed). The number specified by this command includes the
BMP header information. The maximum size of the uncompressed
BMP file is 64K. If the uncompressed file exceeds 64K, the graphic will not print.
2. Only black and white BMP files can be downloaded.
3. The file size specified by this command is the DOS file size in bytes.
Page 2-38 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Graphics, PCX
Command
Structure
Command Function
Printer Input
<ESC>GPaaaaa,(data) aaaaa = Number of bytes to be downloaded
Example: <ESC>GP32000, ... data...
Placement: Anywhere within the job data stream
Default: None
To allow the creation and printing of graphic images using a PCX file format.
See Appendix Appendix C for a detailed example
<ESC>A
<ESC>V0150<ESC>H0100<ESC>GP03800,(...Data...)
<ESC>Q1
<ESC>Z
Printer Output
Special Notes 1. The maximum number of bytes that can be downloaded is 32K (compressed). The number specified by this command includes the PCX header information. The maximum size of the uncompressed PCX file is 64K. If the uncompressed file exceeds 64K, the graphic will not print.
2. Only black and white PCX files can be downloaded.
3. The file size specified by this command is the DOS file size in bytes.
SATO Programming Reference PN 9001096 Preliminary Page 2-39
Section 2: Command Codes
Job ID Store
Command Structure
Command Function
Printer Input
Printer Output
Special Notes
<ESC>IDaa aa =
Example:
Job ID assigned (01 to 99)
<ESC>ID09
Placement:
Default:
Immediately following the <ESC>A in the job data stream.
None
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 (See
Operators Manual for the specific printer for more information).
<ESC>A
<ESC>ID02
. . . Job . . .
<ESC>Z
There is no printer output as a result of this command.
1. Works only in Bi-Communications modes. The Job ID number must be stored before Bi-Com status mode can be used.
2. 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.
Page 2-40 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Job Name
Command Structure
Command Function
Printer Input
Printer Output
Special Notes
<ESC>WKnnn. . . n nn..n
= Job Name assigned, up to 16 ASCII characters
Example: <ESC>WKSATO
Placement: Immediately following the <ESC>A in the job data stream.
Default: None
This command is to identify a particular job using a descriptive name
<ESC>A
<ESC>WKSATO
. . . Job . . .
<ESC>Z
There is no printer output as a result of this command. The information is returned to the host upon receipt of a Bi-Com status request.
1. Works only in Bi-Com 4 mode. The Job Name must be stored before
Bi-Com status mode can be used.
2. 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 Programming Reference PN 9001096 Preliminary Page 2-41
Section 2: Command Codes
Journal Print
Command Structure
Command Function
Input to Printer
<ESC>J
Example:
Placement:
See above
Immediately following <ESC>A
Default: None
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>A
<ESC>J WITH THE JOURNAL FEATURE
YOU CAN PRINT TEXT WITHOUT
USING ANY FONT COMMANDS
OR POSITION COMMANDS
<ESC>Q1<ESC>Z
Printer Output
Special Notes 1. Journal mode assumes a maximum label width . Otherwise, you may print where there is no label and damage your print head.
2. It is effective only for the current print job.
Page 2-42 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Lines and Boxes
Command Structure
Command Function
Input to Printer
Line: <ESC>FWaabcccc aa = Width of horizontal line in dots (01-99) b = Line orientation H Horizontal line V Vertical
Line cccc = Length of line in dots (see Section 1 Table 1 for max length)
Box: <ESC>FWaabbVccccHdddd aa = Width of horizontal side in dots (01-99) bb = Width of vertical side in dots (01-99) cccc = Length of vertical side in dots (see Section 1
Table 1 for max length) dddd = Length of horizontal side in dots (see Section 1
Table 1 for max length)
Example: <ESC>FW02H0200
Placement: Following the necessary positioning commands
Default: None
To print horizontal lines, vertical lines, and boxes as images on the label.
<ESC>A
<ESC>H0100<ESC>V0100<ESC>FW20H0200
<ESC>H0320<ESC>V0100<ESC>FW20V0200
<ESC>H0350<ESC>V0100<ESC>FW1010H0200V0200
<ESC>Q1<ESC>Z
Printer Output
SATO Programming Reference PN 9001096 Preliminary Page 2-43
Special Notes
Section 2: Command Codes
1. It is recommended that all lines and boxes be specified in the normal print direction.
2. See Section 1,Table 1 for values of Hmax and Vmax.
3. Use the <ESC>E0 Expanded Print Length command for maximum label length.
Page 2-44 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Line Feed
Command Structure
Command Function
Input to Printer
<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.
Example: <ESC>E010
Placement: Preceding the text that will use the line feed function
Default: None
To print multiple lines of the same character size without specifying a new print position for each line. With the Line Feed command, specify the number of dots you want between each line. Then, send an ASCII <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
<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
Printer Output
Special Notes 1. It is effective only for the current data stream.
2. 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 <ESC>Q Quantity command.
3. This command is invalid only if the value specified is zero.
4. Following this command with a <CR> character will allow you to print with auto line feed. The print position will be determined from the value specified and the H value set in the printer. If you specify several H values after this command, the print position will be determined by the H value last specified. You must redefine the font to be used after each H command.
SATO Programming Reference PN 9001096 Preliminary Page 2-45
Section 2: Command Codes
Media Size
Command Structure <ESC>A1aaaabbbb aaaa = Label Width in dots (0 to Hmax) bbbb = Label Length in dots (0 to Vmax)
Example: <ESC>A108323200
Placement: Separate data stream to the printer.
Default: <ESC>A108322136
COMMAND FUNCTION To set the size of the media.
INPUT TO PRINTER <ESC>A
<ESC>A108321424
<ESC>Z
PRINTER OUTPUT
SPECIAL NOTES
There is no printer output resulting from this command. 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.
1. 1. 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.
2. If the label size is changed, then this command must be respecified to center the print image on the label.
3. All eight variables “aaaa” and “bbbb” must be included in this command.
4. See Section 1 Table 1 for max length for values of Hmax and Vmax.
Page 2-46 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Mirror Image
Command Structure
Command Function
Input to Printer
<ESC>RM
Example:
Placement:
<ESC>A103000832<ESC>RM
After label data
Default None
To allow mirror image printing of data, such as on transparent labels to be applied to a glass or other transparent surface.
Label #1
<ESC>A
<ESC>A1<ESC>H0100<ESC>V0050<ESC>XL0ABCDEF
<ESC>RM
<ESC>Q1<ESC>Z
Printer Output
Special Notes 1. The <ESC>A1 Media defines the area to be mirrored.
2. This command can be used with the <ESC>% Rotate Fixed Base
Reference Point command. Please note that the reference point rotation is dependent upon the location of the <ESC>% command in the data stream
3. This command should not be specified more than once in any single job.
4. 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.
5. Any data outside the area defined by the <ESC>A1 Media Size 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 Programming Reference PN 9001096 Preliminary Page 2-47
Off-Line/Pause
Section 2: Command Codes
Command Structure
Command Function
Input to Printer
Printer Output
Special Notes
<ESC>@,nn . . . n nn...n
= Optional message to be displayed on the LCD.
Maximum of 32 characters.
Example: See above Placement: Anywhere in the print job between the <ESC>A and <ESC>Z
Default: None
To specify the printer to come to an off-line state. When used within a print job, the printer goes off-line after finishing the print job.
<ESC>A
<ESC>@, LOAD BLUE LABELS AND PLACE PRINTER ON-LINE
...Job...
<ESC>Z
There is no printer output for this command. The printer is placed in the
Off-Line mode as soon as the current print job is finished.
1. You must press the LINE key on the front panel to return the printer to an On-Line status
2. Remember, when using this command, that the print job specifies
<ESC>Q10, all ten labels will print before the printer goes off-line
Page 2-48 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Postnet
Command Structure
Command Function
Printer Input
<ESC>BPn...n n...n
= 5 digits (Postnet-32 format)
6 digits (Postnet-37 format)
9 digits (Postnet-52 format)
11 digits (Postnet-62, Delivery Point format)
Example: <ESC> BP12345678 9
Placement: Immediately preceding the data to be encoded
Default: None
To print Postnet bar codes
<ESC>A
<ESC>H0100<ESC>V0120<ESC>BP94089
<ESC>H0100<ESC>V0160<ESC>BP123456
<ESC>H0100<ESC>V0200<ESC>BP123456789
<ESC>H0100<ESC>V0240<ESC>BP12345678901
<ESC>Q1<ESC>Z
Printer Output
Special Notes 1. If the number of data digits does not match those listed, the command is ignored.
2. Only numeric data will be accepted.
SATO Programming Reference PN 9001096 Preliminary Page 2-49
Print Darkness
Section 2: Command Codes
COMMAND STRUCTURE <ESC>#Ea a = Print Darkness Value (see note 2 for allowable range)
Example: <ESC>#E2
COMMAND FUNCTION
INPUT TO PRINTER
PRINTER OUTPUT
SPECIAL NOTES
Placement: Must be placed immediately after <ESC>A and immediately before <ESC>Z in its own separate data stream
Default: See Operator Manual for the specific printer
To specify a new print darkness settings. This command allows software control of the darkness setting for unique media and ribbon combinations.
<ESC>A
<ESC>#E2
<ESC>Z
There is no printer output for this command.
1. 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.
2. See the specific printer Operator Manual for the valid head ranges.
3. The lighest setting is the smallest value and the darkest setting is the largest value.
Page 2-50 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Print Length, Expanded
Command Structure
Command Function
Input to Printer
<ESC>EX0
<ESC>AR
Example:
Placement:
Sets the print length to maximum
Resets the maximum print length to 7" (178 mm)
See above
Must follow the Start Code command and be in it is own separate data stream.
Default: <ESC>AR(7”)
To increase the maximum print length (in feed direction) for a label.
<ESC>A
<ESC>EX0
<ESC>Z
<ESC>A
<ESC>H0050<ESC>V0100<ESC>WB1EXPAND TO:
<ESC>H0050<ESC>V2700<ESC>WB149 INCHES
<ESC>Q1<ESC>Z
<ESC>A
<ESC>AR
<ESC>Z
Printer Output
SATO Programming Reference PN 9001096 Preliminary Page 2-51
SPECIAL NOTES
Section 2: Command Codes
1. EX0 is effective until AR is sent to reset the printer to its standard print length, or until the printer is re-powered.
2. See Section 1, Table 1 for values of Vmax.
3. When this command is used with the <ESC>& Store Form Overlay command the Form length cannot exceed the maximum specified.
4. If a job contains elements out of the memory range, it is ignored.
5. If the Forms Overlay command <ESC>& is used with Expanded
Memory to expand the print area, the Form Overlay length is still limited to the maximum.
Page 2-52 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Print Position
COMMAND STRUCTURE Horizontal Position <ESC>Haaaa
Vertical Position: <ESC>Vbbbb aaaa = Number of dots horizontally from the base reference point (1 to Hmax) See Note 2. bbbb = Number of dots vertically from the base reference point (1 to Vmax) See Note 2.
Example: <ESC>H0020<ESC>V0150
COMMAND FUNCTION
INPUT TO PRINTER
Default: boxes, fonts, bar codes or graphics.
<ESC>H0001
<ESC>V0001
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.
<ESC>A
<ESC>H0025<ESC>V0050<ESC>L0303<ESC>MSATO
<ESC>H0100<ESC>V0150<ESC>MSATO
<ESC>Q2<ESC>Z
Printer Output
SATO Programming Reference PN 9001096 Preliminary Page 2-53
SPECIAL NOTES
Section 2: Command Codes
1. To expand the print length to the maximum limit, the <ESC>EX0
Expanded Print Length command must be used.
2. See Section 1, Table 1 for values of Hmax and Vmax.
3. If any part of an image is placed past the maximum number of dots, that part of the image will be lost.
4. If any part of an image is placed past maximum allowable dots across the label, that part of the image will be lost.
5. If you attempt to print where there is no paper, you may damage the print head.
6. For these commands, the leading zeroes do not have to be entered.
The command “V1” is equivalent to “V0001”.
Page 2-54 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Print Quantity
Command Structure
Command Function
Input to Printer
Printer Output
Special Notes
<
<ESC>Qaaaaaa aaaaaa = Total number of labels to print (1-999999)
Example: <ESC>Q500 preceding that. This command must be present in every print job.
Default: None
To specify the total number of labels to print for a given print job.
ESC>A
<ESC>H0100<ESC>V0100<ESC>WB1M-8485S
<ESC>Q3
<ESC>Z
Three labels containing the data“M-8485S” will be printed.
1. 1. To pause during a print job, you must press the LINE key on the
Operator Panel.
2. 2. To cancel a print job, you must turn off the printer, or you may send the <CAN> code if using the Bi-Com mode. Multi-Buffer jobs can be cleared with the <ESC>* Clear Print Job(s) and Memory command.
3. 3. When used with the <ESC>F Sequential Numbering command, the
Print Quantity value should be equal to the total number of labels to be printed.
4. 4. If you do not specify a Print Quantity, the printer will not print a label.
5. For this command, leading zeroes do not have to be entered. The command “Q1” is equivalent to “Q000001”.
SATO Programming Reference PN 9001096 Preliminary Page 2-55
Command Structure
Command Function
Input to Printer
Printer Output
Special Notes
Section 2: Command Codes
Print Speed
<ESC>CSa a = Designates the speed selection in ips
Example: <ESC>CS6
Placement: Must be placed immediately after <ESC>A and immediately before <ESC>Z in a separate data stream
Default: As previously set in the printer configuration
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. All subsequent labels will print at this speed unless the speed is changed with this command or through the Operator Panel.
<ESC>A <ESC>CS6 <ESC>Z
There is no printer output for this command. It sets the print speed of the printer.
This becomes the new setting for all subsequent print jobs, unless changed. The setting is stored in non-volatile memory and is not affected by cycling the power. The allowable speed ranges are:
Page 2-56
2 ips
50 mm/s
3 ips
75 mm/s
4 ips
100 mm/s
5 ips
125 mm/s
6 ips
150 mm/s
8 ips
200 mm/s
10 ips
250 mm/
12 ips
300 mm/s
X
X
X
X
X X X X
X
X
X
X X
X
X
X
X X
X
X
X
X
X
X
X
X
X
X
X
PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Repeat Label
Command Structure
Command Function
Input to Printer
Printer Output
Special Notes
<ESC>C
Example: See above
Placement: Must be placed immediately after <ESC>A and immediately before <ESC>Z in a separate data stream
Default: None
To print duplicate of the last label printed
<ESC>A
<ESC>C
<ESC>Z
A duplicate of the previous label will be printed.
1. This command will have no effect if the power to the printer was cycled off and back on since printing the previous label.
SATO Programming Reference PN 9001096 Preliminary Page 2-57
Section 2: Command Codes
Replace Data (Partial Edit)
Command Structure
Command Function
Input to Printer
<ESC>
0
(<ESC>zero)
Placement: Must follow <ESC>A and precede all other print data
Default: None
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>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
<ESC>A<ESC>0<ESC>H0025<ESC>V0020<ESC>WB0SATO
<ESC>Q1<ESC>Z
Printer Output
Page 2-58 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Special Notes 1. Specify the exact same parameters for the image to be replaced as were specified in the original data stream, including rotation, expansion, pitch, etc. This will ensure that the new data will exactly replace the old image. If the replacement data contains fewer characters than the old data, then the characters not replaced will still be printed.
2. This command will not function if the power has been cycled off and back on since the last label was printed.
3. Proportional Pitch text cannot be used with this command.
SATO Programming Reference PN 9001096 Preliminary Page 2-59
Reverse Image
Section 2: Command Codes
Command Structure
Command Function
Input to Printer
<ESC>(aaaa,bbbb a = Horizontal length in dots of reverse image area b = Vertical height in dots of reverse image area. See
Section 1 Table 1 for maximum field ranges.
Example: <ESC>(100,50
Placement: This command must be preceded by all other data and be placed just before <ESC>Q
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>A
<ESC>H0050<ESC>V0120<ESC>L0202<ESC>WB1REVERSE
<ESC>H0250<ESC>V0300<ES C>L0202<ESC>WB1HALF
<ESC>H0040<ESC>V0110<ESC>(370,100
<ESC>H0240<ESC>V0290<ESC>(220,47
<ESC>Q1<ESC>Z
Printer Output
Page 2-60 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Special Notes 1. A reverse image area is affected by the rotate commands. Therefore, always assume the printer is in the normal print orientation when designing and sending the Reverse Image command.
2. If using reverse images with the form overlay, place this command before the Form Overlay command in the data stream.
3. If the height and width to be reversed contain other than alphanumeric data, the area is not printed.
4. If the values specified exceed the maximum ranges, the reverse image is not created.
5. See Section 1, Table 1 for values of Hmax and Vmax.
SATO Programming Reference PN 9001096 Preliminary Page 2-61
Section 2: Command Codes
Rotate, Fixed Base Reference Point
Command Structure
Command Function
Input to Printer
<ESC>%a a = 0 Sets print to normal direction
1 Sets print to 90 ° CCW
2 Sets print to 180 ° rotated (upside down)
3 Sets print to 270 ° CCW
Example: <ESC>%3
Placement: Preceding any printed data to be rotated
Default: <ESC>%0
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
<ESC>% Rotate command. Note that the entire print area is shown, but your label will probably not be as large as the entire area.
<ESC>A
<ESC>%0<ESC>L202<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
Printer Output
Page 2-62 PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Special Notes 1. The specified values are valid until another Rotate (<ESC>%) command is received.
2. Receipt of a Stop Print (<ESC>Z) command will reset the setting to the default value.
SATO Programming Reference PN 9001096 Preliminary Page 2-63
Command Structure
Section 2: Command Codes
Sequential Numbering
<ESC>Faaaabcccc,dd,ee,g aaaa = Number of times to repeat the same data (0001-
9999) b = Plus or minus symbol (+ for increments; - for decrements) cccc = Value of step for sequence (0001-9999) , dd = Number of digits for sequential numbering (01-
99). The first incrementing character position starts after the positions exempted from sequential numbering as specified in ee. If these digits are left out, the default is 8. , ee = Number of digits free from sequential numbering
(00-99) starting with the right most position. If these digits are left out, the default is 0.
Example: g = Count base 1 Decimal Count 2 Hexadecimal
Base
<ESC>F001-001,04,03
Command Function
Input to Printer
Page 2-64
In this example, the right most (least significant) three digits would not decrement and the next four would decrement
Placement: Preceding the starting value to be incremented or decremented.
Default: None
To allow the ability 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>A<ESC>H0100<ESC>V0100<ESC>MSERIAL NUMBER:
<ESC>H0100<ESC>V0200
<ESC>F001+005
<ESC>L0202<ESC>M1000<ESC>Q2<ESC>Z1
PN9001096 Preliminary SATO Programming Reference
Section 2: Command Codes
Printer Output
Special Notes 1. The value specified for Print Quantity should be equal to the number of different sequential values desired multiplied by the number of repeats specified.
Example:
To print 2 sets each of the numbers 1001-1025 on separate labels, we need 50 total labels. The commands would be as follows:
<ESC>A
<ESC>H0100<ESC>V0100<ESC>F002+001<ESC>XM1001
<ESC>Q50 <ESC>Z
2. It is necessary to specify the print position for each sequential field on a label.
3. Up to eight different sequential fields can be specified per label.
4. This command ignores alpha characters in the sequential number field.
5. This command can not be used with the following commands:
Copy Image
Reverse Image
Line Feed
SATO Programming Reference PN 9001096 Preliminary Page 2-65
Start/Stop Label
Section 2: Command Codes
Command Structure
Command Function
Input to Printer
Printer Output
Start Command:
Stop Command:
<ESC>A
<ESC>Z
Placement: <ESC>A must precede data <ESC>Z must follow data
Default: None
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.
<ESC>A
<ESC>H0001<ESC>V0100<ESC>WB1SATO
<ESC>H0130<ESC>V0200<ESC>B103150*M-8485S*
<ESC>H0170<ESC>V0360<ESC>L0202<ESC>S*M-8485S*
<ESC>Q1<ESC>Z
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.
Page 2-66 PN9001096 Preliminary SATO Programming Reference
SECTION 3.
CALENDAR COMMANDS
The following commands in this section are used to control the Calendar Functions.The
Calendar Functions require the Calendar Option (except for the “Se” print engines which include it in the standard configuration).
SATO Programming Reference PN 9001096 Preliminary Page 3-1
Section 3. Calendar Commands
Calendar Increment
COMMAND STRUCTURE
COMMAND FUNCTION
INPUT TO PRINTER
<ESC>WPabbb a = Y Years
M Months
D Days h Hours
W Week Number bbb = Numeric data: Years (0-9), Months (01-99),
Days (001-999), Hours (000-999), Week (00-99)
Example:
Placement:
<ESC>WPM03
Anywhere within the data stream
Default: None
To add a value to the printer’s current date and/or time, which may then be printed on the label. This command does not change the printer’s internal clock setting.
<ESC>A
<ESC>H0100<ESC>V100<ESC>XB1Current Date:
<ESC>WAMM/DD/YY
<ESC>WPM06
<ESC>H0100<ESC>V0200<ESC>XB1Expiration Date:
<ESC>WAMM/DD/YY
<ESC>Q1<ESC>Z
PRINTER OUTPUT
Page 3-2 PN 9001096 Preliminary SATO Programming Reference
Special Notes:
Section 3. Calendar Commands
1. Once the year increments past “99” it will wrap back to “00”. 2.
This command can only be used once per data stream.
2. The printer’s internal clock may be set through the Calendar Set command.
3. Calendar Commands
4. If a print quantity of more than one label per job is used, the same time and date will be on each label of the entire print job.
5. Calendar Increment Example: 1998 January 15 (ww = 03) plus 48 weeks = week 51
6. The Week Calendar specification follows ISO8601. Days of the week are numbered 1 thru 7, beginning with Monday. The first week of the year is the week containing the first Thursday. If January 1st falls on Friday, it belongs to the last week of the previous year. If December 31st falls on a Wednesday, it belongs to the first week of the following year. If Calendar Increment calculation extends over the year, the result belongs to the week number of the following year.
SATO Programming Refernece PN 9001096 Preliminary Page 3-3
Section 3. Calendar Commands
Calendar Print
COMMAND STRUCTURE
COMMAND FUNCTION
INPUT TO PRINTER
<ESC>WA(elements)
(elements) = YYYY
YY
MM
HH hh mm ss
TT
JJJ
WW ww )
Example:
Placement:
4 digit Year (1981-2080)
2 digit Year (00-91)
Month (01-12) DD Day (01-31)
12 Hour Clock (00-11)
24 Hour Clock (00-23)
Minute (00-59)
Seconds (00-59)
AM or PM
Julian Date (001-366)
Week (00-53)
Week (01-54
<ESC>WAMM/DD/YY hh:mm
Anywhere within the data stream.
Default: None
To specify the printing of a date and/or time field from the printer’s internal clock. This may be used to date/time stamp your labels.
<ESC>A
<ESC>H0100<ESC>V0100<ESC>XB1The current date is:
<ESC>XB1<ESC>WAMM/DD/YY
<ESC>H0100<ESC>V0200<ESC>XB1The current time is:
<ESC>XB1<ESC>WAhh:mm
<ESC>Q1<ESC>Z
PRINTER OUTPUT
Page 3-4 PN 9001096 Preliminary SATO Programming Reference
SPECIAL NOTES
Section 3. Calendar Commands
1. The date and time elements may be placed in any order for printing.
2. Use a slash (/) to separate date elements and a colon (:) to separate time elements.
3. The font for the date/time elements must be specified before this command.
4. The printer’s internal clock may be set through the Calendar
Set command.
5. This command can be used up to six times per job.
6. The Copy (<ESC>WD), Mirror Image (<ESC>RM) or
Reverse Image (<ESC>/)commands cannot be used with this command.
7. Up to 16 characters can be used with this command.
8. Century ranges are: For Year = YY, any year equal to or greater than 80 and less than or equal to 99, then the century equals 19 For Year specified as YYYY=1999, and printed as
<ESC>WAYY, will be equal to 99.
9. The Julian date is the accumulated day from January 1st to the current date. The first day of the year is January 1st (001) and the last day of the year is December 31st (365 or 366 for leap years).
10. The TT command should not be specified for printing in numeric only bar codes.
SATO Programming Refernece PN 9001096 Preliminary Page 3-5
Section 3. Calendar Commands
Calendar Set
COMMAND STRUCTURE
COMMAND FUNCTION
INPUT TO PRINTER:
PRINTER OUTPUT
SPECIAL NOTES
<ESC>WTaabbccddee aa bb cc dd ee
=
=
=
=
=
Year (00-99)
Month (01-12)
Day (01-31)
Hour (00-23)
Minute (00-59)
Esample:
Placement:
<ESC>WT9101311200
This command must be sent in an independent data stream.
Default: None
To set the time and date of the printer’s internal clock.
<ESC>A
<ESC>WT9312251300
<ESC>Z
There is no printer output for this command. It sets the current date to December 25, 1993 and the current time to 1:00 PM in the printer.
None
Page 3-6 PN 9001096 Preliminary SATO Programming Reference
SECTION 4.
EXPANDED MEMORY OPTION COMMANDS
These commands require the optional Expanded Memory..
Note: Before Expanded Memory can be used for the first time, it must be initialized using the <ESC>BJF command. If it is not initialized, the printer will not recognize the memory and respond as if no expanded memory was installed.
SATO Programming Reference PN 9001096 Preliminary Page 4-1
Section 4: Expanded Memory Commands
Clear Expanded Memory
Command Structure
Command Function
Input to Printer
Printer Output
Special Notes
<ESC>*a,bbb a = Memory card section to be cleared
G To clear SATO graphic files from memory card
P To clear PCX graphic files
F To clear formats from the memory card
O To clear TrueType fonts
R To clear BMP graphic files bbb = Memory Card storage area to be cleared
001 to 999 for Graphics, PCX or Formats
000 to 099 for TrueType fonts
Example: <ESC>*G,01
Placement: This command should be sent to the printer immediately following the <ESC>CC Memory Area
Select command.
Default: None
To clear individual memory areas in the Expanded Memory.
<ESC>A
<ESC>CC1<ESC>*O,09
<ESC>Z
There is no printer output as a result of this command.
1. To clear everything in the Expanded Memory, use the
<ESC>BJF Expanded Memory Initialize command.
2. This command is ignored if there is no data to be cleared.
3. This command is ignored if Expanded Memory is not installed in the printer.
Page 4-2 PN 9001096 Preliminary SATO Programming Reference
Section 4: Expanded Memory Commands
Fonts, TrueType Recall
Command Structure
Command Function
Printer Input
Printer Output
<ESC>BJRabbccddeeffffgg...g
<ESC>BJTaa,bb,cc,dd,ee,ffff,gg...g dd ee f f f f gg..g
a aa bb cc
=
=
=
=
=
=
=
=
Font ID (0 thru 9)
Font ID (00 thru 99)
Horizontal Expansion (01 thru 12)
Vertical Expansion (01 thru 12)
Character Pitch (01 thru 99)
Reserved, always 00
Number of characters to be printed using the font
Data to be printed
Example: <ESC>BJR1020201000004SATO command.
Default: None
This command recalls previously stored bit mapped TrueType fonts from
Expanded Memory.
<ESC>A
<ESC>V0100<ESC>H0100<ESC>CC1<ESC>BJT1,02,02,01,00,0004,SATO
<ESC>Q1<ESC>Z
Special Notes 1. TrueType fonts are stored in a fixed size bit mapped format by this command.
SATO Programming Reference PN 9001096 Preliminary Page 4-3
Section 4: Expanded Memory Commands
Fonts, TrueType Store
Command Structure
Command Function
Printer Input
Printer Output
Special Notes
Begin Download
Download
End Download aa..a
bb..b
ccccc dddd ee...e
=
=
=
=
=
<ESC>BJ( aa...abb..b
< ESC>BJDcccccddddee...e
<ESC>
BJ)
40 byte font description
10 byte date information
Memory offset (hexadecimal)
Number of data bytes to be stored (0001-2000)
Font data to be downloaded
Example: <ESC>BJ({50 byte header}<ESC>BJD{5 byte hex
memory offset}{data}<ESC>BJ)
Placement: Immediately following the <ESC>CC Slot Select command.
Default: None
This command allows bit mapped TrueType fonts to be stored in a
Expanded Memory
The download data stream is very complex and it is recommended that the True Type Dowload utility program be used instead of manuallycreating the required command and data stream.
The is no printer output as a result of this comand. See <ESC>BJR True
Type Font Recall command.
1. This command requires the Expanded Memory option. See your
SATO representative for details.
2. The SATO True Type Download utility program can be used to automate the download process from a computer running Windows 3.1 or above. A copy of this utility program is included as a part of the
Expanded Memory Option.
Page 4-4 PN 9001096 Preliminary SATO Programming Reference
Section 4: Expanded Memory Commands
Format/Field Recall
Command Structure
Command Function
Printer Input
<ESC>YR,aa<ESC>/D,bb,cc....c aa bb cc...c
=
=
=
Format number to be recalled (01-99)
Field number to be recalled (01-99)
Data to be placed in the recalled field.
Example: <ESC>YR,01<ESC>/D,01,99 command.
Default: None
To recall a field from a stored format and place new data in the field.
<ESC>A
<ESC>CC1
<ESC>YR,02<ESC>/D,01,TWO FIELDS OF<ESC>/D,02,VARIABLE DATA
<ESC>Q1<ESC>Z
Printer Output
Special Notes 1. This command requires the Expanded Memory option. See your
SATO representative for details.
2. Only one format can be recalled at a time. However, multiple feilds can be recalled from the same format.
3. The number of data characters contained in the “cc...c” field cannot exceed the value designated in the <ESC>/N Field Store command.
If it does, the data will be truncated to fit the field length defined in the store command.
SATO Programming Reference PN 9001096 Preliminary Page 4-5
Section 4: Expanded Memory Commands
Format/Field Store
Command Structure
Command Function
Printer Input
Printer Output
Special Notes
<ESC>YS,aa<ESC>/N,bb,cc{.......} aa bb cc
{.....}
=
=
=
=
Format number to be stored (01-99)
Field number to be stored (01-99)
Length of field to be stored (01-99)
Command stream describing the field to be stored.
Example: <ESC>YS,01<ESC>/N,01,05
Placement: Immediately after <ESC>CC Memory Area Select command.
Default: None
To store a format field description in the memory card.
ESC>A
<ESC>CC1
<ESC>YS,02<ESC>/N,01,13<ESC>V0100<ESC>H0100<ESC>XB1
<ESC>/N,02,13<ESC>V0200<ESC>H0200<ESC>XB1
<ESC>Z
There is no printer output as a result of this command. See <ESC>YR
Format/Field Recall command.
1. This command requires the Expanded Memory option. See your SATO representative for details.
2. Each job should be sent individually. If more than one job is sent in a data stream, only the first one will be accepted and the remainder ignored.
3. The following commands cannot be stored in a format:
<ESC>CS Print Speed
<ESC>NULL Cut Label
<ESC>C
<ESC>Q
<ESC>/D Recall Field <ESC>EX
<ESC>T Custom <ESC>&
<ESC>@
<ESC>BJ
<ESC>G
<ESC>BT
Off Line
TrueType Fonts
Store Custom Graphics
Variable Ratio Bar Codes
<ESC>ID
<ESC>*
Repeat Label
Print Quantity
Expanded Label Storage
Store Form Overlay
Store Job ID
Clear Memory & Buffer
<ESC>PI Store PCX Graphics
Page 4-6 PN 9001096 Preliminary SATO Programming Reference
Section 4: Expanded Memory Commands
Form Overlay Recall
Command Structure
Command Function
Input to the Printer
Printer Output
Special Notes
<ESC>&R,aa aa = Storage Number (01 to 99)
Example: <ESC>&R,01
Placement: Following The <ESC>CC Memory Area Select
Command
To recall the label image from stored in the Expanded Memory.
<ESC>A
<ESC>CC1
<ESC>&R,01
<ESC>Q1<ESC>Z
To be added
1. The Expanded Memory option is required for this command. See your
SATO representative for details.
2. The <ESC>CC Memory Area Select Command must be sent prior to this command.
3. Several label images stored under different Storage Numbers can be printed with this command.
4. The Storage number must be specified.
5. A Read/Write error will occur if an unused Storage number is specified by this command.
6. The label image reference point will be V=1 H=1 if the window area has not been specified.
7. The label image can be moved by using the <ESC>V and <ESC>H commands when it is stored along with a window size. If it exceeds the printable area by being moved, the label image will be truncated.
SATO Programming Reference PN 9001096 Preliminary Page 4-7
Section 4: Expanded Memory Commands
Form Overlay Store
Command Structure
Command Function
Printer Input
Printer Output
Special Notes
<ESC>&S,aa,bbbb,cccc aa bbbb cccc
=
=
=
Store Number (01 to 99
Horizontal size of window (50 to H max)
Vertical size of window (50 to V max)
Example:
Placement:
<ESC>&S,01
Following the <ESC>CC Memory Area select
Command
Default: None
To store a label image in Expanded Memory
<ESC>A
<ESC>CC1
<ESC>&S,01
<ESC>Z
There is no printer output as a result of this command.
1. The <ESC>CC Memory Area Select command must be sent before this command.
2. The label image must be divided from other label images by the
<ESC>A and <ESC>Z bounding commands.
3. The parameters of “bbbb” and “cccc” may be omitted. By specifying them, the label image can be moved by using the <ESC>V and
<ESC>H position commands when recalling the label image. If the repositioned label image exceeds beyond the printable area, the image will be truncated. If an <ESC>A1 Media Size Command has been sent to the printer, the maximum size form that can be stored is the size of label defined by the command.
4. A label image cannot be stored in a location that already contains data.
5. Graphics, PCX and BMP files can be stored with this command.
6. As many as 99 Form Overlays can be stored, however their combined storage area cannot exceed the available memory.
7. The forms stored by this command are cleared by the <ESC>*R command.
Page 4-8 PN 9001096 Preliminary SATO Programming Reference
Command Structure
Command Function
Printer Input
Printer Output
Section 4: Expanded Memory Commands
BMP Graphics Recall
<ESC>GCaaa aaa = Storage Number (001 to 999)
Example:
Placement:
E <ESC>GC001
After the CC Memory Area Select command.
Default: None
To recall a previously stored BMP file stored in Expanded Memory
<ESC>A
<ESC>CC1<ESC>V100<ESC>H100
<ESC>GC001
<ESC>Q1<ESC>Z
Special Notes 1. The <ESC>CC Memory Area Select command must be sent before this command.
2. The printed image can be expanded or rotated.
SATO Programming Reference PN 9001096 Preliminary Page 4-9
Section 4: Expanded Memory Commands
BMP Graphics Store
Command Structure
Command Function
Printer Input
Printer Output
Special Notes
<ESC>GTaaa,bbbbb,nn...n aaa bbbbb nn..n +
=
=
=
Storage area number (001 thru 999)
Size of BMP file in bytes
Data
Example: <ESC>GT001
Placement: This command must be placed within its own data stream specifying the placement of the graphic.
Default: None
To store for printing a graphic file in a BMP format in the optional
Expanded Memory.
<ESC>A
<ESC>CC1<ESC>GT001, 12345, nn...n
<ESC>Q1<ESC>Z
There is no printer output as a result of this command.
1. This command requires the Expanded Memory Option. See your
SATO representative for details.
2. Data must be sent in binary format.
3. The Memory Area Select Command <ESC>CCa must be sent before this command.
4. The first 62 bytes of the stored file is used for the header and the remainder is the BMP image data.
5. The graphic will not be printed correctly if the specified size does not match the actual graphic size.
6. Only black and white non-compressed BMP files can be stored.
Color BMP files will cause an error.
7. If you try to store an image in a memory area that already contains data, an error will occur.
Page 4-10 PN 9001096 Preliminary SATO Programming Reference
Section 4: Expanded Memory Commands
Graphics, Custom Recall
Command Structure
Command Function pRINTER iNPUT
<ESC>GRaaa aaa = Graphics storage number (001-999)
Example: <ESC>GR111
Placement: The Recall command is sent in a secondary data stream to print the graphic, and follows any necessary position or size commands.
Default: None
Use the Recall command any time you want to print a graphic image on a label along with other printed data.
Non Rotated Graphic
<ESC>A<ESC>CC1
<ESC>V0100<ESC>H0080<ESC>L0505
<ESC>GR001
<ESC>Q1<ESC>Z
Graphic Rotated 180 °
<ESC>A<ESC>CC1<ESC>%1
<ESC>V0180<ESC>H0250<ESC>L0505
<ESC>GR001
<ESC>Q1<ESC>Z
Graphic Rotated 90 ° <
<ESC>A<ESC>CC1<ESC>%1
<ESC>V0180<ESC>H0250<ESC>L0505
<ESC>GR001
<ESC>Q1<ESC>Z
Graphic Rotated 270 °
<ESC>A<ESC>CC1<ESC>%3
<ESC>V0100<ESC>H0700<ESC>L0505
<ESC>GR001
<ESC>Q1<ESC>Z
Printer Output
Special Notes 1. The graphic image to be stored cannot be rotated before it is stored.
It can be rotated when it is recalled.
2. Graphic images cannot be stored as part of a label format.
3. See the <ESC>GI Custom Graphic Store command.
SATO Programming Reference PN 9001096 Preliminary Page 4-11
Section 4: Expanded Memory Commands
Custom Store
Command Structure
Command Function
Printer Input
Printer Output
<ESC>GIabbbcccddd{data} a bbb ccc ddd
{data}
=
=
=
=
=
Specifies character format of the data H Hex data B
Binary data
Number of horizontal 8 x 8 blocks (see Note 7 for range)
Number of vertical 8 x 8 blocks (see Note 7 for range)
Graphics storage number (001-099)
Hex or binary data to describe the graphic image
Example:
Placement:
See Appendix C for detailed information on creating
Hex and Binary graphic files.
Immediately following the <ESC>CC Memory Area
Select command.
None Default
To provide similar functionality to the <ESC>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, which is held in the optional Expanded Memory, even if printer power is lost.
<ESC>A
<ESC>CC1<ESC>GIH002002001
0100038007C00FE01FF03FF87FFCFFFE07C007
C007C007C007C007C007C007C0
<ESC>Z
Note: See Appendix C for detailed explanation on how to format a graphics data stream.
There is no printer output as a result of this command. See <ESC>GR
Recall Custom Graphics command.
Page 4-12 PN 9001096 Preliminary SATO Programming Reference
Special Notes
Section 4: Expanded Memory Commands
1. You must have the optional Expanded Memory to use this command. Call your SATO representative for details.
2. The maximum storage capacity is 999 graphics, up to the capacity of the memory card used.
3. If a data transmission error occurs, the printer will beep and the
ERROR LED will come on. You must then retransmit the image.
4. Each graphic to be stored must be sent in its own data stream.
Example of correct data stream:
<ESC>A
<ESC>GIHaaabbb001(DATA)
<ESC>Z
<ESC>A
<ESC>GIHaaabbb002(DATA)
<ESC>Z
Example of incorrect data stream:
<ESC>A
<ESC>GIHaaabbb001(DATA)
<ESC>GIHaaabbb002(DATA)
<ESC>Z
5. Do not use ASCII <CR> or <LF> characters (carriage return or line feed) as line delimiters within the graphic data or the actual image will not be printed as specified.
6. The graphics storage number (ddd) must be specified with this command.
7. See Section 1Table 1 for values of Hmax and Vmax. The number of allowable blocks is determined by dividing this number by 8
SATO Programming Reference PN 9001096 Preliminary Page 4-13
Section 4: Expanded Memory Commands
Graphics, PCX Recall
Command Structure
Command Function pRINTER iNPUT
<ESC>PYaaa aa = Storage area number (001 thru 999)
Example:
Placement:
<ESC>PY001
This command must be placed within its own data stream specifying the placement of the graphic.
None Default:
To recall for printing a graphic file previously stored in a PCX format in the
Memory Card.
Normal Rotation
<ESC>A<ESC>CC1
<ESC>V0100<ESC>H0050<ESC>PY001
<ESC>Q1<ESC>Z
2nd Rotation, Base Reference Point
<ESC>A<ESC>CC1<ESC>%2
<ESC>V0330<ESC>H0600<ESC>PY001
<ESC>Q1<ESC>Z
Rotate Base Reference Point
<ESC>A<ESC>CC1<ESC>%1
<ESC>V0330<ESC>H0160<ESC>PY001
<ESC>Q1<ESC>Z
3rd Rotation, Base Reference Point
<ESC>A<ESC>CC1<ESC>%3
<ESC>V0100<ESC>H0800<ESC>PY001
<ESC>Q1<ESC>Z
Printer Output
Special Notes 1. This command requires Expanded Memory option. See your SATO representative for details.
2. See the <ESC>PI Store PCX Graphics command.
Page 4-14 PN 9001096 Preliminary SATO Programming Reference
Command Structure
Command Function
Printer Input
Printer Output
Special Notes:
Section 4: Expanded Memory Commands
PCX Store
<ESC>PIaaa,bbbbb,{data} aaa bbbbb
{data}
=
=
=
Storage area number (001 thru 999)
Size of PCX file in bytes
Data
Example: <ESC>PI001,32000,{data}
Placement: This command must be placed within its own data stream
Default: None
To store for later printing a PCX graphic file in the Expanded
Memory.
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:.,255
LPRINT C$;"A";C$;"CC1";
LPRINT C$; .PI001,03800,.;DA$
LPRINT C$;"Z";
CLOSE #2
There is no printer output as a result of this command. See
<ESC>PY PCX Graphics Recall command.
1. This command requires Expanded Memory option. See your
SATO representative for details.
2. Graphics cannot be stored as part of a format.
3. Only black and white PCX files can be stored.
4. The file size specified by this command is the DOS file size in bytes.
SATO Programming Reference PN 9001096 Preliminary Page 4-15
Section 4: Expanded Memory Commands
Initialize
Command Structure
Command Function
Input to Printer
Printer Output
Special Notes
<ESC>BJFaaaaaaaa aaaaaaa = Eight character alphanumeric user ID
Example:
Placement:
<ESC>BJFsatocard
Immediately following the <ESC>CC Memory Area
Select command.
None Default:
This clears all of the data from Expanded Memory in the specified memory area and prepares the area to accept data.
<ESC>A
<ESC>CC2<ESC>BJFsatocard
<ESC>Z
There is no printer output as a result of this command.
1. You must have the optional Expanded Memory to use this command. Call your local SATO representative for information.
2. All Expanded Memory must be initialized before it can be used for the first time.
3. Care should be exercised when using this command as it destroys any data previously written to the card. It will clear all data from the card and assign the new ID (“satocard” in the above example).
Page 4-16 PN 9001096 Preliminary SATO Programming Reference
Command Structure
Command Function
Printer Input
Printer Output
Special Notes
Section 4: Expanded Memory Commands
Memory Area Select
<ESC>CCa a = Memory Area
1 Memory Area 1
2 Memory Area 2
Example:
Placement:
<ESC>CC1
Immediately following the <ESC>A Start Code.
Default: Last selected Memory Area.
Selects the Memory Area to be used for following Expanded Memory commands.
<ESC>A
<ESC>CC1
{commands}
<ESC>Z
There is no printer output as a result of this command.
1. This command requires the Expanded Memory option. See your
SATO representative for more information.
2. The Memory Areas specified by this command may be reversed using the LCD menu/configuration panel.
3. Unless otherwise modified via the LCD menu/configuration panel
(see the printerspecific Operational Manual), CC1 selects the
PCMCIA Expanded Memory and CC2 selects the internal
Expanded Memory.
SATO Programming Reference PN 9001096 Preliminary Page 4-17
Section 4: Expanded Memory Commands
Status
Command Structure
Command Function
Printer Input
Printer Output
<ESC>BJS
Example:
Placement:
<ESC>BJS
After the <ESC>CC Memory Area Select command.
Default: None
Casues the printer to print the card status.
<ESC>A
<ESC>CC1<ESC>BJS
<ESC>Z
Special Notes 1. This command requires the Expanded Memory option. See your
SATO representative for more information
2. The following information is provided on the status label:
Line 1: Memory size in Kbytes
Line 2: The ID number assigned with the <ESC>BJF command
Line 3: Number of formats stored and bytes used
Line 4: Number of graphics stored and bytes used
Line 5: Number of PCX files and bytes used
Line 6: Number of bit-mapped TT fonts stored and bytes used
Line 7: Number of BMP files stored and bytes used
Line 7: Remaining free memory
Line 8: Max expandable print length
Page 4-18 PN 9001096 Preliminary SATO Programming Reference
SECTION 5.
TWO-DIMENSIONAL SYMBOLS
The following commands are used to create the two-dimensional symbologies supported by the SATO “e” and PRO printers.
SATO Programming Reference PN 9001096 Preliminary Page 5-1
Section 5: Two-Dimensional Symbols
Data Matrix, Data Format
Command Structure
Command Function
Printer Input
Printer Output
Special Notes
Page 5-2
<ESC>BXaabbccddeeefffghh aa = Format ID. 01-06. If ECC200 is selected (bb=20), this field is ignored. bb = Error correction level. 00 ,05, 08, 10, 14 or 20. All other values will be processed as a 00.
cc = Horizontal cell size. 03 - 12 dots/cell.
Placement:
Default: dd = Vertical cell size. 03 - 12 dots/cell. eee = Number of cells in one line. Use 000 to optimize.
fff = Number of cell lines. Use 000 to optimize. g = Mirror Image (ignored for ECC200)
0 = Normal Print
1 = Reverse Print
Example: hh = Guide Cell Thickness. 01-15. 01 indicates normal type. Ignored for ECC200.
= <ESC>BX03080505000000001
Immediately preceding data to be encoded
None
To designate the format for a Data Matrix two-dimensional bar code image on a label.
<ESC>A
<ESC>%0<ESC>V0100<ESC>H0100<ESC>BX05051010000000001
<ESC>DCDATA MATRIX DATA MATRIX
<ESC>Q1<ESC>Z
There is no printer output as a result of this command. See the
<ESC>DC Print Data command for printer output.
1. If any of the parameters entered are outside the valid range, a symbol will not be printed when the <ESC>DC Print Data command is sent to the printer.
2. The number of cells per line (eee) and the number of cell lines (fff) should be specified as all zeroes, allowing the printer to automatically calculate the optimum configuration for the symbol.
3. The Reference Point for the Data Matrix symbol is the upper-left corner.
4. The Format ID specified for “aa” is defined by the following table.
The printer only supports the Format ID’s defined in the table.
PN 9001096 Preliminary SATO Programming Reference
Section 5: Two-Dimensional Symbols
ECC
Level
(bb)
00
(ECC000)
05
(ECC050)
01
500
457
02
452
333
IFormat ID (aa)
03
394
291
04
413
305
05
310
228
06
271
200
08
(ECC080)
10
(ECC100)
402
300
293
218
256
190
268
200
201
150
176
131
14
(ECC140)
20
(ECC200)
144 105 91
N UMERIC
A LPHANUMERIC
96 72
3116
2336
ISO 8BIT 01 H - FF H ) 1556
83
SATO Programming Reference PN 9001096 Preliminary Page 5-3
Section 5: Two-Dimensional Symbols
5. The character set or each Format ID is:
04
05
06
01
02
03
ID
Number
Character Set
Numeric, Space
16 Bit CRC
Upper Case Alpha, Space
Upper Case Alpha, Space,Comma,
Period, Slash, Minus
Upper Case Alphanumeric, Space
ASCII 7-bit, Full Keyboard (20 H -7F H )
ISO 8-bit, International (20 H -FF H )
Encoding
Scheme
Base 11
Base 27
Base 41
Base37
ACSCII
8-Bit
Page 5-4 PN 9001096 Preliminary SATO Programming Reference
Section 5: Two-Dimensional Symbols
Data Matrix, Print Data
Command Structure
Command Function
Printer Input
Printer Output
<ESC>DCxx...x xx...x
= Data to be encoded
Example:
Placement:
<ESC>DC00006000
Immediately following the <ESC>BC Data Format designation command or the <ESC>FX Sequential
Numbering command.
Default None
To print a Data Matrix two-dimensional bar code image on a label.
<ESC>A
<ESC>%0<ESC>V0100<ESC>H0100<ESC>BX05051010000000001
<ESC>DCDATA MATRIX DATA MATRIX
<ESC>Q1<ESC>Z
Special Notes 1. If an <ESC>BX Data Format designation command contains any parameters out of the valid range, no symbol will be printed when this command is sent.
SATO Programming Reference PN 9001096 Preliminary Page 5-5
Section 5: Two-Dimensional Symbols
Sequential Numbering
Command Structure
Command Function
Printer Input
Printer Output
<ESC>FXaaabcccdddeee aaa = Number of duplicate labels to be printed (001 -999) b = Increment or Decrement
+ = Increment
- = Decrement ccc = Increment/Decrement Steps (001 - 999) ddd = Sequential numbering start position (001 - 999)
Referenced to left side.
eee = Incremented data length measured from start position
(001 - 999)
Placement: Immediately following the <ESC>BX Data Format designation command and preceding the <ESC>DC
Print Data Command.
Default: None
To print sequential numbered Data Matrix symbols.
<ESC>A
<ESC>V0100<ESC>H0100
<ESC>BX03081010000000001
<ESC>FX002+001005003<ESC>DC000060000
<ESC>Q4<E SC>Z
Label Set #1
Page 5-6 PN 9001096 Preliminary SATO Programming Reference
Label Set #2
Section 5: Two-Dimensional Symbols
Special Notes 1. The maximum number of <ESC>FX Sequential Numbering commands that can be used in one job is eight.
2. In the example above four total labels will be printed
(<ESC>FX002+005003<ESC>DC00006000), the sequential numbering will start at position 5 and the three digits “600” will be incremented in steps of 1. A total of two sets of labels will be printed, the first set of two labels with the value “00006000” and the next two label set with the value “00006010”. Label Set #1 Label Set #2 1st Label 00006000 3rd
Label 00006010 2nd Label 00006000 4th Label 00006010
3. The <ESC>Q Label Quantity command must be set for the total number of labels to be printed. In the above example, the value for the <ESC>Q command should be 2 sets x 2 labels/set = 4. If, in the above example, it was set to a value of “1”, only the first label would be printed.
SATO Programming Reference PN 9001096 Preliminary Page 5-7
Section 5: Two-Dimensional Symbols
Maxicode
Command Structure <ESC>BVa,b,c,ddddddddd,eee,fff,gggg.....<ESC> a = Position of Maxicode symbol within the set, when used in a structured append format 1~8.
b = Total number of Maxicode symbols in the set, when used in a structured format 1~8.
c = 2 For Mode 2 Structured Carrier Message for
Domestic U.S. UPS shipments
3 For Mode 3 Structured Carrier Message for
International UPS shipments ddd..dd
= 9 digit numeric Postal Code eee = 3 digit numeric Country Code fff = 3 digit numeric Service Class
Example: gg..g
= Data, terminated by <ESC>
<ESC>BV1,2,3,123456789,222,333,MESSAGE<ESC>
Placement:
Default
Immediately preceding data to be encoded
None
Command Function To print a Maxicode two-dimensional bar code image on a label. See
Appendix B for specific information on using each individual bar code symbol.
Command Function To print a UPS Maxicode symbol.
<ESC>A<ESC>V0100<ESC>H0100
<ESC>BV1,1,2,123456789,840,001,[)><RS>01<GS>961Z01547089<GS>PSN
<GS>056872<GS>349<GS>99999999<GS>001/005<GS>029<GS>N<GS>
<GS>LENEXA<GS>KS<RS><EOT>
<ESC>Q001<ESC>Z
Page 5-8 PN 9001096 Preliminary SATO Programming Reference
Section 5: Two-Dimensional Symbols
Printer Output
Special Notes 1. <RS> represents Hex 1E, <GS> represents Hex 1D, <EOT> represents
Hex 04, <ESC> represents Hex 1B and <SP> represents Hex 20.
SATO Programming Reference PN 9001096 Preliminary Page 5-9
Section 5: Two-Dimensional Symbols
PDF417
Command Structure
Command Function
Printer Input
Printer Output
<ESC>BKaabbcddeeffffnn...n,g aa = Minimum module dimension (01-09 dots). Will not print if values of 01, 02 or greater than 10 are specified.
bb = Minimum module pitch dimension (01-24 dots). Will not print if values of 01, 02, 03 or greater than 25 are specified.
c = Security (error detection) Level (1-8).
dd = Code words per line (01-30). If 00 is specified for both dd and ee, the printer automatically optimizes the number of rows per symbol.
ee = Rows per symbol (00 or 03-40). If 00 is specified for both dd and ee, the printer automatically optimizes the number of rows per symbol.
ffff = Number of characters to be encoded (0001-2700).
nn...n
= Data to be printed. g = PDF417 type. If not specified, standard PDF417
T Truncated PDF417
M Micro PDF417
Example:
Placement:
<ESC>BK0304400000021
Immediately preceding data to be encoded.
Default: None
To print a PDF417 two-dimensional bar code image on a label.
<ESC>A
<ESC>V0100<ESC>H0100<ESC>BK0607400000021PDF417 PDF417 PDF417
<ESC>Q1<ESC>Z
Page 5-10 PN 9001096 Preliminary SATO Programming Reference
Special Notes
Section 5: Two-Dimensional Symbols
1. When the code words per line and the number of rows per symbol (“dd” and “ee”) are set to all zeroes, the printer will calculate the optimum configuration.
2. If the product of the values entered for”dd”and"ee"are not equal to or less than the value of “f f f f”(i.e.“f f f f” is greater than “dd“x“ee”, an error will occur and the symbol will not be printed. It is recommended that these values each be set to”000”and the printer be allowed to automatically calculate the optimum values.
3. The values for “dd” and“ee”need to be made larger if the security level is increased.
4. The maximum data length is 2700 characters, but may be less depending upon:
- the minimum module dimension (“aa”)
- the security level specified by “c”.
- the number of data characters
5. The Reference Point of the PDF417 symbol is the upper-left corner.
6. The <ESC>F Sequential Numbering command cannot be used with this command.
7. The <ESC>E Line Feed command cannot be used with this command.
8. The values 00 H thru 1F H can be specified as print data.
9. This command can be stored in a format.
10. The print height of the symbol will vary depending upon the data specified; numeric only, alpha only or alphanumeric.
11. For module dimensions less than “4”, symbol quality may be degraded.
SATO Programming Reference PN 9001096 Preliminary Page 5-11
Section 5: Two-Dimensional Symbols
QR Code
Command Structure <ESC>2D3m,a,bb,c,d (,ee,f f,gg)
<ESC>DSk,nn.......n
<ESC>DNIIII,xx.......x m = Model
0 = Model 2
1 Model 1
2 Micro QR Code a = rror Correction Level
L 7%
M 15%
Q 25%
H 30% bb = Cell Size (01 to 32 dots/cell) d = Connection Mode
0 Normal the file is split into several blocks as independent symbols) ee = Total Connection Number (01 - 16) ff = Connection number of each symbol encoded as an independent symbol (01 - 16) gg = Connection Mode Parity Data (00 H - FF H ) k = Input Data Type
1 Numeric
2 Alphanumeric
3 Kanji (shift JIS Code) nn...n
= Data xx...x
= Data Size. Used in Automatic or Manual mode with binary data (0001 - 2953 bytes)
Page 5-12 PN 9001096 Preliminary SATO Programming Reference
Special Notes
Section 5: Two-Dimensional Symbols
1. Contact SATO Technical Support for specific usage information.
2. Parameters “c”, “d”, “ee”, “f f” and “gg” are not used for Micro QR
Code.
3. Parameter “xx...x” is limited to 0001 to 0486 bytes for Model 1 and
Micro QR Code.
4. The data command should be used according to the input mode or data type.
5. In Automatic Mode, the data for 80 H to 9F H or E0 H to FF H will be interpreted as Kanji, not binary data.
6. In Manual Mode, The multiple data fields for numeric, alphanumeric,
Kanji and binary can be specified in a job. In this case, the data fields for <ESC>2D30 and each data field must follow the data field. Also, the maximum data size should be less than 7000 bytes and the maximum block number for the data field is 200.
7. If the parameters are not correctly specified, the symbol will not be printed.
SATO Programming Reference PN 9001096 Preliminary Page 5-13
Section 5: Two-Dimensional Symbols
Page 5-14 PN 9001096 Preliminary SATO Programming Reference
SECTION 6.
CONFIGURATION COMMANDS
These commands are used to change to operating configuration of the printer.
SATO Programming Reference PN 9001096 Preliminary Page 6-1
Section 6: Configuration Commands
Custom Protocol Command Codes
Download
COMMAND STRUCTURE <ESC>LD,a,b,c,d,e,f,g,h,i,jj e f g c d a b
=
=
=
=
=
=
=
Replacement character for STX
Replacement character for ETX
Replacement character for ESC
Replacement character for ENQ
Replacement character for CAN
Replacement character for NUL
Replacement character for OFFLINE h = Auto-Online. Printer powers up in the On Line mode.
0 Yes
1 No i = Zero Slash. Places a slash through the “0” character.
0 Yes
1 No jj = Hexadecimal code for Eurocharacter
COMMAND FUNCTION
PRINTER INPUT
PRINTER OUTPUT
Example:
Placement:
<ESC>LD,{,},%,#,&,*,~,0,0,D5
Immediately following the <ESC>A Start command and in an independent data stream.
Default: Standard Protocol command Codes
Allows the user to defines custom Protocol Command codes.
<ESC>A
<ESC>LD,{,},%,#,&,*,~,0,0,D5
<ESC>Z
A Protocol Command code status label will be printed as a result of the a successful download of a custom set of Protocol Command codes.
Page 6-2 PN 9001096 Preliminary SATO Programming Reference
Section 6: Configuration Commands
Special Notes 1. Commas must be used to separate the parameters. If a parameter is omitted between two commas, the default Non-Standard Protocol
Command codes for that parameter will be used.
2. This command must be sent as an independent data stream immediately following the <ESC>A Start code and immediately preceding the
<ESC>Z Stop code. No other commands can be included in the data stream.
3. If more or less than nine commas are included in the command, the entire command sequence will be ignored. The command must contain exactly nine commas.
4. If two characters are specified for a parameter, it will be interpreted as a hex value. For example:
Command Parameter Resulting Command Code
2B +
+ +
If a combination of characters are outside the hexadecimal range, the entire command sequence will be ignored.
5. Downloading Auto Online and Zero Slash settings will overwrite the values selected using the LCD panel. If these settings are changed using the LCD panel, they will overwrite any previously downloaded settings.
SATO Programming Reference PN 9001096 Preliminary Page 6-3
Section 6: Configuration Commands
Printer Setting
COMMAND STRUCTURE <ESC>PCaa,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z
<ESC>PCaa,bb aa = Setting to be changed (01 to 26). Only relevant setting can be changed.
08
08
08
08
06
06
07
08
08
09
09
09
04
05
05
05
03
03
03
03
SETTING
(ASCII)
01
02
03
03
03
03
COMMAND
PARAMETER i a b c d e f g h
D
E
B
C
0
A
0
1
2
3
F
1
1
2
0
0
6
7
4
5
ASCII
VALUE
0
0
2
3
0
1
DESCRIPTION
Reserved
Reserved
Print Speed, 2 ips (50 mm/s)
Print Speed, 3 ips (75 mm/s)
Print Speed, 4 ips (100 mm/s)
Print Speed, 5 ips (125 mm/s)
Print Speed, 6 ips (150 mm/s)
Print Speed,8 ips (200 mm/s)
Print Speed, 10 ips (250 mm/s)
Print Speed, 12 ips (300 mm/s)
Reserved
Not Used
Not Used
Not Used
Dispense Mode, Backfeed after print
Dispense Mode, Backfeed before print
Reserved
Print Darkness Range A
Print Darkness Range B
Print Darkness Range C
Print Darkness Range D
Print Darkness Range E
Print Darkness Range F
Print Darkness Level 1
Print Darkness Level 2
Print Darkness Level 3
Page 6-4 PN 9001096 Preliminary SATO Programming Reference
Section 6: Configuration Commands
12
13
13
14
14
SETTING
(ASCII)
09
09
10
10
10
11
11
15
15
16
17
18
19
20
21
22
23
24
25
26
26
COMMAND
PARAMETER k l m n o x y z p q r s v w t u j
ASCII
VALUE
4
5
0
DESCRIPTION
Print Darkness Level 4
Print Darkness Level 5
Reflective (Eye-Mark) Sensor
1
Transmissive (Gap) Sensor
2
Sensors Disabled
0 Zero Slash disabled
1
Zero Slash enabled
0 Reserved
0
Paper Type, Labels
1
Paper Type, Fan-Fold
0 Autofeed disabled
1
Autofeed enabled
0 Pitch Fixed
1
Pitch Proportional
0000 to 9999 Vertical Label Size (0 to Vmanx dots)
000 to Hmax Horizontal Label Size (0 to Hmax dots)
0000 to 792
-001 to -792
Vertical Offset (0 to 792 dots)
Vertical Offset (-1 to -792 dots)
0000 to 792
-001 to -792
00 tp 99
Horizontal Offset (0 to 792 dots)
Horizontal Offset (-1 to -99 dots)
Pitch Offset (0 to 99 dots)
00 to 99
-01 to -99
0
00 to 99
-01 to -99
0
0 to 64
0
01
Tear Off Offset (0 to 99 dots)
Tear Off Offset (-1 to -99 dots)
Not Used
Dispense Offset (0 to 99 dots)
Dispense Offset (-1 to -99 dots)
Reserved
Gap Size (0 to 64 dots)
Buzzer Enabled
Buzzer Disabled
SATO Programming Reference PN 9001096 Preliminary Page 6-5
Section 6: Configuration Commands
COMMAND FUNCTION
INPUT TO PRINTER
PRINTER OUTPUT
SPECIAL NOTES
Placement: Separate data stream sent to printer
Default: None
To set the printer default configuration into EEPROM
<ESC>A
<ESC>PC26,0
<ESC>Z
There is no printer output as a result of this command. This command example enables the buzzer.
1. All command setting values must be in ASCII format.
2. These settings are stored in EEPROM and will remain valid until receipt of another <ESC>PC command.
3. All positions in this command must be separated by a comma. If the parameter. To change multiple settings, the correct number of commas must be placed in the command, i.e. to change the label gap sensor to reflective (eye-mark), the command would be:
<ESC>PC, , , , , , , , ,0, , , , , , , , , , , , , , , , , .
4. If only one setting is to be changed, the “aa” parameter must be an
“F”.
Page 6-6 PN 9001096 Preliminary SATO Programming Reference
Section 6: Configuration Commands
Pitch Offset
COMMAND STRUCTURE
COMMAND FUNCTION
INPUT TO PRINTER
PRINTER OUTPUT
SPECIAL NOTES
<ESC>POabcc a = 3 Continuous b = + Positive Offset
- Negative Offset
Example:
Placement: cc = 00 to 99, Offset value in dots
See above
Separate data stream sent to printer
Default: Default value set by <ESC>PG command
To set the pitch offset used for a job.
<ESC>A
<ESC>PO3+20
<ESC>Z
Blank label
1. When power is cycled, the value set by this command is lost and replaced by the default value stored in the EEPROM.
2. 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.
SATO Programming Reference PN 9001096 Preliminary Page 6-7
Section 6: Configuration Commands
Print Mode
COMMAND STRUCTURE <ESC>PMa a = 0 Continuous
1 Tear-Off
2 Reserved
3 Reserved
4 Reserved
5 Reserved
6 Reserved
7 Dispense, Backfeed after print
8 Dispense, Backfeed before print
COMMAND FUNCTION
INPUT TO PRINTER
PRINTER OUTPUT
SPECIAL NOTES
Placement:
Default:
Separate data stream sent to printer
Default value set by <ESC>PC command
To set the print mode for a job.
<ESC>A
<ESC>PM1
<ESC>Z
There is no printer output as a result of this command.
1. When power is cycled, the value set by this command is lost and replaced by the default value stored in the EEPROM.
2. 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.
3. The Print Mode can also be set using DSW3-1, 3-2 and 3-4. The setting priority is determined by the Priority Setting in the LCD Panel Service Mode.
Page 6-8 PN 9001096 Preliminary SATO Programming Reference
COMMAND STRUCTURE
COMMAND FUNCTION
INPUT TO PRINTER
PRINTER OUTPUT
SPECIAL NOTES
Print Type
Section 6: Configuration Commands
<ESC>PHa a = 0 Thermal Transfer printing
1 Direct Thermal Printing
Example:
Placement:
Default: Default value set by <ESC>PC command.
To set the printing method used for a job
<ESC>A
<ESC>PH1
<ESC>Z
See above
Separate data stream sent to printer
There is no printer output as a result of this command.
1. When power is cycled, the value set by this command is lost and replaced by the default value stored in the EEPROM.
2. 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.
3. The Print Type can also be set using DSW2-1. The setting priority is determined by the Priority Setting in the LCD Panel Service
Mode.
SATO Programming Reference PN 9001096 Preliminary Page 6-9
Section 6: Configuration Commands
Sensor Type
Command Structure
Command Function
Input to Printer
Printer Output
Special Notes
<ESC>IGa
Example:
Placement:
Default: a = 0 Reflective (Eye Mark) sensor
1 See-thru (transmissive) sensor
2 Sensor not used
See above
Separate data stream sent to printer
Default value set by <ESC>PC command
To select the label sensing method for a job.
<ESC>A
<ESC>IG1
<ESC>Z
There is no printer output as a result of this command
1. When power is cycled, the value set by this command is lost and replaced by the default value stored in the EEPROM.
2. 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 CD-ROM shipped with the printer.
3. The Sensor Type can also be set using DSW3-2 and DSW3-3. The setting priority is determined by the Priority Setting in the LCD
Panel Service Mode.
Page 6-10 PN 9001096 Preliminary SATO Programming Reference
Section 6: Configuration Commands
Serial Interface Parameters
COMMAND STRUCTURE
COMMAND FUNCTION
INPUT TO PRINTER
PRINTER OUTPUT
SPECIAL NOTES
<ESC>I2abcde a =
2
3
0
1 b = c d
=
=
0
1
2
0
1
0
1 e =
2
3
0
1
4
Baud rate, 9600 bps
Baud Rate, 19200 bps
Baud Rate, 38400 bps
Baud Rate, 57600 bps
8 Data bits
7 Data Bits
No Parity
Odd Parity
Even Parity
1 Stop Bit
2 Stop Bits
Single Item Buffer
Multi Item Buffer
X-On/X-Off Flow Control
Bi-Com 4
Bi-Com 3
Placement:
Default:
Separate data stream sent to printer
Default value set by <ESC>PC command
To set the operating parameters of the RS232 Inferface for a job.
<ESC>
<ESC>I230011
<ESC>Z
There is no printer output as a result of this command.
1. The setting 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 have no effect on these settings.
2. 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.
3. All command parameters must be present in the data stream sent to the printer.
4. Selecting X-On/X-Off, Bi-Com3 or Bi-Com4 will automatically place the printer in the Multi Buffer mode.
SATO Programming Reference PN 9001096 Preliminary Page 6-11
Section 6: Configuration Commands
Page 6-12 PN 9001096 Preliminary SATO Programming Reference
SECTION 7.
BI-DIRECTIONAL COMMUNICATIONS
This is a two-way communications protocol between the host computer and the printer, thus enabling the host to check printer status. When Bi-Com 4 communications is selected, there is no busy signal from the printer. The host must request the complete status from the printer, including ready/busy. The host may request status in two different ways.
ENQUIRE/ACK/NAK
In the Bi-Com 4 mode, the host transmits an ENQ (05 hexadecimal) to the printer and the printer will respond with its status within five milliseconds. If printing, it will respond upon finishing the current label, then resume printing. In order for this protocol to work properly with an RS232C Interface, pin 6 (DTR) and pin 5 (CTS) must be held high by the host. One way to ensure these pins are always in the correct state is to tie pin 20 (DTR) to pin 6 (DSR) and pin 4 (RTS) to pin 5 (CTS) at the printer end of the cable.
ENQUIRE (ENQ)
Upon receipt of an ENQ command, the printer responds with 25 bytes of status information bounded by an STX/ETX pair. The Bi-Com protocol works only in the Multi Job Buffer mode. The status information is defined as follows:
<STX>{ 2 Byte ID}{1 Status Byte}{6 Byte Label Remaining}{16 Byte Job Name}<ETX>
• ID - This is a two byte number identifying the current print job ID. The print job ID is defined using the <ESC>ID Job ID command transmitted with the print job (see Job ID
Store in the command listing for more information on how to use this command). The range is from 00 to 99.
• Status - A single byte defining the current status of the printer (see the Status Byte Definition table).
• Label Remaining - Six bytes defining the number of labels remaining in the current print job. The range is from 000000 to 999999 labels.
• Job Name - 16 bytes of ASCII characters identifying the name assigned to the job by the <ESC>WK Job Name command. If the Job Name is less than 16 characters, the field will be padded with leading zeroes.
If an ENQ is received after the print job specified in the ID bytes has been completed, or there is no data in the buffer, the printer will respond with two “space” characters (20 hexadecimal) for the ID number, six “zero” characters (30 hexadecimal) in the Remaining Labels bytes and the 16 byte Job Name.
CANCEL (CAN)
If a CAN (18 hexadecimal) command is received , it will stop the print job and clear all data from the receive and print buffers. A delay of five milliseconds or more is required before any new data can be downloaded. The CAN command is effective immediately upon receipt, even if the printer is off-line or in an error condition. The printer will return an ACK (06
SATO Programming Reference PN 9001096 Preliminary Page 7-1
Section 7: Bi-Directional Communications hexadecimal) if there is no printer error condition and a NAK (15 hexadecimal) if an error condition exists.
PRINT JOB
Upon receipt of a valid print job (<ESC>A . . . <ESC>Z), an ACK (06 hexadecimal) will be returned by the printer if there are no errors and a NAK (16 hexadecimal) if a printer error exists (this protocol only works with the RS232C interface).
PRINT STOP (DLE)
If a DLE (10 hexadecimal) is received by the printer, the print process is stopped and an ACK
(06 hexadecimal) is returned if there are no errors and a NAK (16 hexadecimal) if a printer error exists.
PRINT START (DC1)
If the printer has been stopped by receipt of a DLE (10 hexadecimal) command, it can be restarted by sending a DC1 (hexadecimal 11) command. Upon receipt of this command an
ACK (06 hexadecimal) is returned if there are no errors and a NAK (16 hexadecimal) if a printer error exists.
(1) To provide compatibility with older SATO printers, the RS232C interface can be configured to use an earlier Bi-Com 3 ENQ/ACK/NAK protocol selected via DSW2-8 and DSW1-7/8 (on the RS232C Interface module).The earlier protocol did not have provisions for the Job Name and did not respond to the DLE or DCI commands. Also, there are additional Response
Codes in the Status Byte Definition. It is recommended that you use the current protocol rather than the earlier version unless it is necessary for compatibility with existing software.
STATUS RESPONSE
The second method of determining printer status is to interrograte the printer with specific commands. The response from these commands will provide specific information about the printer status depending upon the command. This allows the controlling application to determine the status of a printer when it is located in a remote location.
PRINTER STATUS (SOH + MG)
Upon Receipt of an SOH (hexadecimal 01) followed immediately by an ASCII MG causes the printer to return a 30 byte Printer Status Word bounded by an STX-ETX pair that reports the current operating status of the printer.
BYTE
NUMBER
1
HEX VALUE DESCRIPTION
2
00
01
00
01
Thermal Transfer Print Type
Direct Thermal Print Type
203 dpi Resolution
305 dpi Resolution
Page 7-2 PN 9001096 Preliminary SATO Programming Reference
Section 7: Bi-Directional Communications
11
12
13
14
15
BYTE
NUMBER
3
4
5
6
7
8
9
10
HEX VALUE
00
00
01
00
01
00
01
00
01
02
03
04
00
01
02
04
05
06
07
00
01
02
03
08
09
00
01
00
41
42
43
00
01
02
03
04
00
01
02
00
01
DESCRIPTION
2 ips Print Speed
3 ips Print Speed
4 ips Print Speed
5 ips Print Speed
6 ips Print Speed
7 ips Print Speed
8 ips Print Speed
9 ips Print Speed
10 ips Print Speed
12 ips Print Speed
Not Supported
Not Supported
Not Supported
Label Dispense Print mode
Reserved
Not Supported
Not Supported
Not Supported
Dispense at head position
Dispense at dispense position
Reserved
Not Supported
Not Supported
Not Supported C
Print Density Level 1
Print Density Level 2
Print Density Level 3
Print Density Level 4
Print Density Level 5
Reflective (Eye-Mark)
Sensor Gap (See-Thru) Sensor
No Sensor
Zero Slash Disabled
Zero Slash Enabled
Reserved
Not Supported
Not Supported
Online FeedDisabled
Online Feed Enabled
Fixed Pitch
Proportional Pitch
SATO Programming Reference PN 9001096 Preliminary Page 7-3
Section 7: Bi-Directional Communications
BYTE
NUMBER
16-17
HEX VALUE DESCRIPTION
18-19
20-21
22-23
24
25
26
27
28
29
30
00 to C80
00 to 12C
00 to 340
00 to 4E0
00 to 3E7
FFFF to
FC19
00 to 320
00 to FCE0
00 tp 63
FF to 9D
00 tp 63
FF to 9D
00 tp 63
FF to 9D
00 tp 63
FF to 9D
00
01
08 to 40
00
01
Not Supported
Not Supported
Vertical Base Reference Point Offset in dots (0 to 792)
Vertical Base Reference Point Offset in dots (-1 to -792)
Horizontal Base Reference Point Offset in dots (0 to 800)
Horizontal Base Reference Point Offset in dots (-1 to -800)
Not Supported
Not Supported
Not Supported
Dispense Offset in dots (0 to 99)
Dispense Offset in dots (-1 to -99)
Compatibility Mode Enabled
Compatibility Mode Disabled
Not Supported
Buzzer Enabled
Buzzer Disabled
COUNTER STATUS (SOH + ME)
Upon Receipt of an SOH (hexadecimal 01) followed immediately by an ASCII ME causes the printer to return a 28 byte Head Counter Status Word bounded by an STX-ETX pair that reports the current status of the printer life counters.
BYTE
NUMBER
1 - 8
9 - 12
13 - 16
17 - 20
21 - 24
25 - 28
HEX VALUE
Hex
Hex
Hex
Hex
Hex
Hex
DESCRIPTION
Current Life Counter in dots
1st (Current) Head Counter in dots
2nd (Previous) Head Counter in dots
3rd Head Counter in dots
Not Supported
Not Supported
Page 7-4 PN 9001096 Preliminary SATO Programming Reference
Section 7: Bi-Directional Communications
SENSOR STATUS (SOH + SG)
Upon Receipt of an SOH (hexadecimal 01) followed immediately by an ASCII SG causes the printer to return a 4 byte Sensor Status Word bounded by an STX-ETX pair that reports the values of the printer counters.
BYTE
NUMBER
1
2
VALUE DESCRIPTION
Hex
Hex
3 00 H
01 H
4 00 H
01 H
Reflective Sensor Level
Transmissive Sensor Level
Out of Paper
Paper Present
Head Open
Head Closed
HEAD STATUS (SOH + HC)
Upon Receipt of an SOH (hexadecimal 01) followed immediately by an ASCII HC causes the printer to return a 1 byte Head Fault Status Word bounded by an STX-ETX pair that reports the current operating status of the print head. Before the printer will respond to this command, it must be in the Head Check Mode (DSW2-3 = On).
BYTE
NUMBER
HEX VALUE
1 00
01
DESCRIPTION
Print Head OK
Electrical Fault in Print Head
SYSTEM VERSION INFORMATION (SOH + SB)
Upon Receipt of an SOH (hexadecimal 01) followed immediately by a ASCII SB causes the printer to return a 50 byte Printer Status Word bounded by an STX-ETX pair that reports the system version of the printer.
VALUE DESCRIPTION BYTE
NUMBER
1-50 ASCII Firmware Version Information
SATO Programming Reference PN 9001096 Preliminary Page 7-5
Section 7: Bi-Directional Communications
MEMORY STATUS (SOH + EB)
Upon Receipt of an SOH (hexadecimal 01) followed immediately by an ASCII EB causes the printer to return a 24 byte Memory Status Word bounded by an STX-ETX pair that reports the current user memory allocation.
DESCRIPTION BYTE
NUMBER
VALUE
1-4 Hex
5-8 Hex
9-12
13-16
17-20
Hex
Hex
Hex
21-24 Hex
Free Font Memory
Free Form Overlay Memory
Total Form Overlay Memory
Free Graphic Memory
FORM OVERLAY STATUS (SOH + FO)
Upon Receipt of an SOH (hexadecimal 01) followed immediately by an ASCII FO causes the printer to return a 18 byte Form Overlay Status Word bounded by an STX-ETX pair that reports the Forms downloaded into the printer.
VALUE DESCRIPTION BYTE
NUMBER
1-2
3-18
01 to 99 Form Registration Number (ASCII value)
Page 7-6 PN 9001096 Preliminary SATO Programming Reference
Section 7: Bi-Directional Communications
FONT CONFIGURATION (SOH + FG)
Upon Receipt of an SOH (hexadecimal 01) followed immediately by an ASCII FG causes the printer to return a 102 byte Font/Graphics Status Word bounded by an STX-ETX pair that reports information on the stored font or graphic.
Note: The printer must be in the Font/Graphic Download (See the specific printer Operators Manual) mode before a response will be received.
VALUE DESCRIPTION BYTE
NUMBER
1-2
3-4
ASCII Font
00 H 01 H
ID Number
Font Graphic
49-52
53-54
54-60
57-60
58-64
65-68
69-72
ASCII
Hex
Hex
Font Point Size
Character Width in dots
Character Height in dots
Hex
Hex
Hex
Font Registration Number
Font Data Top Address
Total Size
76 Hex
77
78
79-80 Hex
81-82 Hex
83-84
85-86 Hex
Spread
Registration Start Code
86-8
88-95 Hex Reserved
96-98 Hex Code
99-100
101-102
Hex
Hex
Horizontal Valid Size
Left Gap Size
SATO Programming Reference PN 9001096 Preliminary Page 7-7
Section 7: Bi-Directional Communications
INTERFACE STATUS (SOH + IG)
Upon Receipt of an SOH (hexadecimal 01) followed immediately by an ASCII IG causes the printer to return a 1 byte Interface Status Word bounded by an STX-ETX pair that reports the type of interface connection currently set in the printer.
VALUE DESCRIPTION BYTE
NUMBER
1
2
3
0
1
IEEE 1284 Parallel
Serial RS232
Local Area Network
Universal Serial Bus
SERIAL INTERFACE SETTINGS (SOH + H2)
Upon Receipt of an SOH (hexadecimal 01) followed immediately by an ASCII H2 causes the printer to return a 5 byte Serial IF Status Word bounded by an STX-ETX pair that reports the current operating parameters of the Serial RS232 Interface.
VALUE DESCRIPTION BYTE
NUMBER
1
2
3
4
0
1
3
0
1
2
3
0
1
2
3
0
1
4
9600 BPS
19200 BPS
38400 BPS
57600 BPS
No Parity
Odd Parity
Even Parity
1 Stop Bit
2 Stop Bits
Single Item Buffer with Ready/Busy Flow Control
Multi-Item Buffer with Ready/Busy Flow Control
X-ON/X-OFF Flow Control
Status 4 Bi-Comm
Status 3 Bi-Comm
STATUS BYTE DEFINITION, BI-COM PROTOCOL
ASCII HEX DEFINITION
OFF-LINE
0
1 31 Ribbon Near End
3 33 Ribbon Near End and Buffer Near Full
Page 7-8 PN 9001096 Preliminary SATO Programming Reference
Section 7: Bi-Directional Communications
ASCII HEX
4
(¹)
34
DEFINITION
Print Stop (no error)
ON-LINE, WAITING FOR DATA
B 42 Ribbon Near End
D
E
(¹)
44
45
Ribbon Near End and Buffer Near Full
Print Stop (without error)
ON-LINE PRINTING
M
N
O
P
Q
(¹)
K
G
H 48
I 49
J
(¹)
4A
4B
4D
4E
4F
50
51
Ribbon Near End
Ribbon Near End and Buffer Near Full
Print Stop (without error)
ON-LINE, WAITING TO DISPENSE A LABEL
No Errors
Ribbon Near End
Buffer Near Full
Ribbon Near End and Buffer Near Full
Print Stop (without error)
ON-LINE, COMPILING PRINT JOB
S
T 5
U 55
V
(¹)
W
(¹)
56
56
4 Ribbon Near End
Ribbon Near End and Buffer Near Full
Print Stop (without error)
OFF-LINE, ERROR CONDITION b c 63 d 64 e 65 Media Error
SATO Programming Reference PN 9001096 Preliminary Page 7-9
Section 7: Bi-Directional Communications
ASCII HEX j g 67
6A k 6B
Cutter Error
Other Error Condition
(¹)
Not supported by legacy Bi-Com protocols
DEFINITION
Page 7-10 PN 9001096 Preliminary SATO Programming Reference
Instruction
A
A1aaaabbbb
A(space)Z
AR
A3H-aaaa
-Vbbbb
Babbcccd
APPENDIX A.
COMMAND CODE QUICK REFERENCE
Description
Start Code. Begins all print jobs
Media Size. Specifies the label size.
aaaa = bbbb =
Label length in dots (0 to Vmax)
Label width in dots (0 to Hmax)
Form Feed. Feeds a blank tag or label.
Normal Print Length. This command resets the printer to the Standard print length (7 inches).
Base 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
Page
2-66
2-46
2-33
2-52
2-10 bbbb = Vertical reference point
Bar Codes. Prints a 1:3 ratio bar code.
a = 0
1
Codabar
Code 39
4
5
2
3
Interleaved 2 of 5 (I 2/5)
UPC-A/EAN-13
EAN-8
Industrial 2 of 5
C
D
A
B
8
9
6
7
I
G
E
F
Matrix 2 of 5 reserved reserved reserved
MSI reserved
Code 93 reserved
UPC-E
Bookland
Code 128
UCC 128
2-2
SATO Programming Reference PN9001096 Preliminary Page A-1
Appendix A: Command Code Quick Reference
Instruction
BDabbcccd
BKaabbcdd eeefffnn...n
BPn...n
BTabbccddee
Description bb = ccc = d =
0
1
Number of dots (01-12) for narrow bar and narrow space
Bar height in dots (001-600)
UCC 128 only
No human readable text
Human readable at top
2 Human readable at bottom
Bar Codes. Prints a 2:5 ratio bar code, except for UPC, EAN, Code 93,
Code 128 and UCC128 symbols, which are fixed width bar codes. For values a, bb, ccc and d see instructions for Babbcccd.
For UPC/EAN bar codes, this command puts descender bars and humand readable text below the symbol.
PDF417. Prints PDF417 2-D symbols.
Page
2-2
5-10 aa bb c dd ee fff g
=
=
=
=
=
=
=
Minimum module dimension (03-09 dots). Will not print for values of 01, 02 or __10.
Minimum module pitch dimension (04-240 dots). Will not print for values of 01, 02, 03 or greater than 25.
Security level (1-8).
Code words per line (01-30). If 00 is specified for dd and ee, printer will automatically optimize settings.
Rows/symbol (00 or 03). If 00 is specified for dd and ee, printer will automatically optimize settings.
Number of characters to be encoded (0001-2700)
Not specified, standard PDF417
M Micro PDF417
T Truncated PDF417 nn...n
= Data to be printed.
Postnet. Prints Postnet bar codes.
n...n
= 5 digit ZIP (Postnet-32 format)
6 digits (Postnet-37 format)
9 digit ZIP+4 (Postnet -52 format)
11 digit ZIP+4+DPC (Postnet-62, Delivery Point format).
Bar Codes. Variable Ratio. provides the ability to print a bar code with a ratio other than those specified through the standard bar code commands (B, BD, and D).
a = Bar code option:
2-49
2-8
Page A-2 PN9001096 Preliminary SATO Programming Reference
Appendix A: Command Code Quick Reference
Instruction
BVa,b,c, ddddddddd, eee,f f f,gg..g
Description
0 Codabar
1 Code 39
2 Interleaved 2 of 5
5 Industrial 2 of 5 bb = cc ee
= dd =
=
6 Matrix 2 of 5
Narrow space in dots (01-99)
Wide space in dots (01-99)
Narrow bar in dots (01-99)
Wide bar in dots (01-99)
Maxicode. Prints 2-D Maxicode symbols per AIM I.S.S. specification.
Page
5-8
BWaabbb
BXaabbccdd eeefffghh a = b = c = dd..d
= eee = f f f =
Position of symbol within the set
Total number of symbols in the set
Mode
9 digit numeric Postal Code
3 digit numeric Country Code
3 digit numeric Service Class gg..g
= Data, terminated by <ESC>
Bar Codes. Expansion. Works together with the BT command to specify an expansion factor and the bar code height for the particular symbol being printed.
aa = Expansion factor by which the width of all bars and spaces is increased (01-12) bbb = aa =
Bar height by dot (004-600 dots)
Data Matrix. Data Format. Specifies the format of the Data Matrix 2-D symbology.
Format ID (01-16, The values 07 and 17 will not be accepted) bb = cc dd
=
= eee = fff = g =
Error correction level (00, 05, 08,10,14, 20 or 200. All other values processed as 00.
Horizontal cell size (03-12 dots/cell)
Vertical cell size (03-12 dots per cell)
Cells per line. Must use 000 for optimized symbol.
Cell lines. Must use 000 to optimize.
Mirror image
0 Normal Print
2-7
5-2
SATO Programming Reference PN9001096 Preliminary Page A-3
Appendix A: Command Code Quick Reference
Instruction
C
CSa
Dabbcccd
DCxx...x
Eaaa
EX0
Faaaabcccc ddee
FWaabcccc
FWaabbVccc
Hdddd
Description hh =
1 Reverse Print
Guide cell thickness (01-15) 01 indicates normal type.
Repeat Label. Prints a duplicate of the last label printed.
Print Speed Selection. Specifies a unique print speed in in./sec. through software for a particular label.
a = Speed Range
Bar Codes. Prints 1:2 ratio bar code. For UPC and EAN bar codes, this will add descender bars. For values a, bb, ccc and d see instructions for
Babbcccd.
Data Matrix. Print Data. Prints data using Data Matrix format specified in BX Data Format command.
xx...x
= Data to be printed. Cannot exceed 500 characters.
Line Feed. Provides the ability to print multiple lines of the same character size without specifying a new print position for each line.
aaa = Number of dots (1-999) between the bottom of the characters on one line to the top of the characters on the next line.
Expanded Print Length. Expands the print length to 9999 dots.
Sequential Numbering. Allows the printing of sequencing fields (text, bar codes) where all incrementing is done within the printer.
aaaa = b =
Number of times to repeat the same data (0001-9999)
Plus or minus symbol (+ for increments; - for decrements) cccc = dd =
Value of step for sequence (001-9999)
No. of digits for sequential numbering (01-99, default
= 8) ee = No. of digits free from sequential numbering (01-99, default=0)
Line. Prints a horizontal line. Units of measurement are dots.
aa = Width of line b = V Vertical line
H Horizontal line cccc = Length of line
Box. Prints a box. For values aa, bbbb, cc, and dddd, see instructions for horizontal and vertical lines. Units of measurement are dots.
aa = bb = cccc =
Width of horizontal side
Width of vertical side
Length of vertical side
Page
2-57
2-56
2-2
5-5
2-45
2-51
2-64
2-43
2-43
Page A-4 PN9001096 Preliminary SATO Programming Reference
Appendix A: Command Code Quick Reference
Instruction Description
FXaaabccc dddeee dddd = Length of horizontal side
Data Matrix. Sequential Numbering. Prints sequential numbered Data
Matrix 2-D symbols.
aaa = b =
Number of duplicate labels (001-999)
Increment or decrement
+ Increment
- Decrement ccc ddd
=
=
Increment/decrement steps (001-999)
Sequential numbering start position (001-999).
Referenced to left side.
eee = Incremented data length (001-999). Measured from start position.
Gabbbccc(data) Custom Graphics. Allows the creation and printing of graphic images using a dot-addressable matrix.
a = Specifies format of data stream to follow
B Binary
GMaaaaa bbb =
H Hexadecimal
Number of horizontal 8 x 8 blocks (see page 5-XX for range) ccc = data = Data to describe the graphic image
BMP File. Downloads BMP file to the internal graphics image memory.
aaaaa =
Number of vertical 8 x 8 blocks (see page 5-XX for range)
No. of bytes to be downloaded (max DOS file size is
32K
GPaaaaa
Haaaa
IDaa
J
Kab90cc
PCX File. Downloads PCX file to the internal graphics image memory.
aaaaa = No. of bytes to be downloaded (max DOS file size is
32K)
Horizontal Position. Specifies a fieldís horizontal location across the width of the label from the current base reference point. The units of measurement are dots.
Job ID Store. Stores the Job ID number.
aa = Job ID number assigned (01-99)
Journal Print. Provides the ability to print text line by line. Fixed spacing between lines and characters.
Recall Custom Designed Characters. Recalls for printing a custom character stored by the Tabcc(data) command.
a = 1 16 x 16 matrix
Page
5-6
2-36
2-38
2-39
2-53
2-40
2-42
2-13
SATO Programming Reference PN9001096 Preliminary Page A-5
Appendix A: Command Code Quick Reference
M
OA
OB
Paa
PR
PS
Qaaaaaa
Instruction
Laabb
RDabb,ccc, ddd,nn...n
RMaaaa,bbbb
S
Description b cc
=
=
2 24 x 24 matrix
Indicates the format that data stream was stored in
B Binary
H Hexadecimal
Memory location where the character was stored.
Valid locations are 21 to 52 or “!” to “R” in hex values.
Character Expansion. Expands characters in both directions.
aa = Multiple to expand horizontally (01-12) bb = Multiple to expand vertically (01-12)
Font type. Specifies the 13W x 20H dot matrix font (including descenders).
Font type. Specifies the OCR-A font.
Font type. Specifies the OCR-B font dot matrix.
Character Pitch. Designates the number of dots between characters.
aa = Number of dots between characters (01-99)
Fixed Font Spacing. Returns the printer to fixed character spacing mode.
Proportional Font Spacing. Places the printer in the proportional character spacing mode. Will not work with U Font.
Print Quantity. Specifies the total number of labels to print.
aaaaaa = Total number of labels to print for the job (000001-
999999)
Font Type. Specifies the internal AGFA raster fonts.
Page
2-14
2-26
2-26
2-26
2-16
2-18
2-18
2-55
2-28 a bb ccc
=
=
=
A Specifies CG Times font
B Specifies CG Triumvirate font
Always 00
Horizontal Size (16 to 999 dots or P08 to P72 point size)
Vertical Size (16 to 999 dots or P08 to P72 point size)
Data to be printed ddd = nn..n
=
Mirror Image. Prints mirror image of data. Must be preceded by an A1
Media Size Command. Must be preceded by an <ESC>A1 Media Size command.
Font type. Specifies the 8W x 15H dot matrix font (including descenders).
2-47
2-26
Page A-6 PN9001096 Preliminary SATO Programming Reference
Appendix A: Command Code Quick Reference
Instruction Description
Tabcc(data)
U
Vbbbb
WBa
WDHaaaaVbbbb
XccccYdddd
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 = cc =
Specifies data stream format to follow
B Binary
H Hexadecimal
Memory location to store the character. Valid locations are 21 to 52 or “!” to “R” in hex values.
(data) = Data to describe the character.
Font type.. Specifies a 5W x 9L dot matrix font (including descenders).
Vertical Position. Specifies a field’s vertical location down the length of the label from the current base reference point. Units of measurement are dots.
Font type. Specifies the 18W x 30L dot matrix font (including descenders).
a = 0 Disables auto-smoothing of font
1 Enables auto-smoothing if expansion is greater than 3
Copy Image Area. To copy an image to another location of the label.
WKnn...n
WLa
XM
XS
XU aaaa = bbbb = cccc = dddd =
Horizontal position of the top left corner of image area
Vertical position of the top left corner of image area
Horizontal length of image area
Vertical length of image area
Job Name. Stores the job name.
nn..n
= Job name, up to 16 ASCII characters
Font type. Specifies the 28W x 52L dot matrix font (including decenders).
a = 0 Disables auto-smoothing of font
1 Enables auto-smoothing if expansion is greater than 3
Font type. Specifies the 24W x 24H dot matrix font (including descenders).
Font type. Specifies the 17W x 17H dot matrix font (including descenders).
Font type. Specifies the 5W x 9L dot matrix font (including descenders).
Page
2-12
2-26
2-53
2-31
2-21
2-41
2-31
2-26
2-26
2-26
SATO Programming Reference PN9001096 Preliminary Page A-7
Appendix A: Command Code Quick Reference
Instruction
XWa
XBa
Z
2D3m,a,bb,c d,ee,ff,gg
%a
$a,b,c,d
$=(data)
Description
Font type. Specifies the 48W x 48L dot matrix font (including descenders).
a = 0 Disables auto-smoothing of font
1 Enables auto-smoothing if expansion is greater than 3
Font type. Specifies the 48W x 48L dot matrix font (including descenders).
a = 0 Disables auto-smoothing of font
1 Enables auto-smoothing if expansion is greater than 3
Stop Code. Ends all print jobs.
QR Code. Prints QR Code symbols. See command description for parameter definition and usage.
Rotate. Fixed Base Reference Point. Rotates printing in 90° increments without changing the base reference point.
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 (90× CW)
Vector font. Specifies printing of the unique SATO vector font.
a = A Helvetica Bold (proportional spacing) b c d
=
=
=
B Helvetica Bold (fixed spacing)
Font width (50-999 dots*)
Font height (50-999 dots*)
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, shadow 1
6 Standard, shadow 2
7 Standard mirror image
8 Italic
9 Italic open (outlined)
Data for Vector font.
Page
2-31
2-31
2-66
5-12
2-62
2-29
2-29
Page A-8 PN9001096 Preliminary SATO Programming Reference
Appendix A: Command Code Quick Reference
/
Instruction
#Ea
(aaaa,bbbb
&
0 (zero)
*a
@,nnnn
~aaaa
~Aaaaa
~B
Description
Print Darkness. Specifies a new print darkness setting. The lightest setting is “1”.
Reverse Image. Reverse image from black to white and vice versa.
Units of measure are dots.
aaaa = bbbb =
Horizontal length in dots of area to be reversed.
Vertical height in dots of area to be reversed.
Store Form Overlay. Stores a specified label image in the printer’s volatile form overlay memory.
Recall Form Overlay. Recalls the label image from the printer’s formoverlay memory for printing.
Replace Data (Partial Edit). Provides the ability to replace a specified area of the previous label with new data.
Clear Print Job(s) and Memory. Clears individual memory and buffers.
a = When not included in command, clears print jobs in
Multi-Buffer mode.
a = If included in command, specifies memory section to be cleared
T Custom character memory, printer
& Form overlay memory, printer nnnn =
X Clears all memory all memory and buffers
Off-Line. Signals the printer to go off-line after the completion of a print job.
Optional message to be displayed on the LCD panel.
Maximum of 32 characters.
Cut Job. Cuts labels at a specified interval in a print job. Number of labels printed is equal to the product of the Quantity specified times the value of aaaa.
aaaa = Number of labels between each cut (0001 to 9999)
Cut. Specifies the number of labels to print between each cut. It is independent of the Quantity command.
aaaa = Number of labels between each cut
Cut Last. Cuts any printed labels that remain in the printer
Page
2-50
2-60
2-35
2-34
2-58
2-19
2-48
2-24
2-23
2-25
INSTRUCTION DESCRIPTION PAGE
SATO Programming Reference PN9001096 Preliminary Page A-9
Appendix A: Command Code Quick Reference
CALENDAR COMMANDS
Instruction
WA(elements)
WPabbb
WTaabbccddee
Description
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.
elements = YY 2 digit Year (00-91)
YYYY 4 digit Year (1981-2080)
MM
DD
HH hh
Month (01-12)
Day (01-31)
12 Hour Clock (00-11)
24 Hour Clock (00-23) mm ss
TT
JJJ
Minutes (00-59)
Seconds (00-59)
AM or PM
Julian Date (000-366)
WW ww
Week (00-53)
Week (01-54)
Calendar Increment. To add a value to the printerís current date and/ or time. Does not change the printerís internal time setting.
a = Y
M
D h
Years
Months
Days
Hours bbb = Numeric data, Week (00-99), Years (1-9), Months
(01-99), Days (001-999), Hours (001-999).
Calendar 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)
Page
3-4
3-2
3-6
Page A-10 PN9001096 Preliminary SATO Programming Reference
Appendix A: Command Code Quick Reference
EXPANDED MEMORY OPTION COMMANDS
Instruction
BJ(aa..abb..b
BJDcccccdddd ee...e
BJ
BJFaaaaaaaa
BJRabbccdd eeeeff..f
BJS
BJTaa,bb,cc, dd,ee,fff,gg..g
Description
Start TrueType Font Storage. Prepares the Expanded Memory to accept TrueType font data.
aa...a
= bb...b
=
40 byte font description
10 byte date field
Download Bit Mapped TrueType Font Data. Downloads the bit mapped TrueType font data to the memory area specified.
ccccc = dddd =
Memory Offset (hexadecimal)
Data size in bytes (max = 2000) ee...e
= Font data to be downloaded
End TrueType Font Storage.Ends the bit mapped TrueType font storage process
Initialize Expanded Memory. Initializes the Memory Area and formats it for use. Should be preceded by the Memory Area Select command for the memory area to be initialized.
aaaaaaaa = 8 character alphanumeric password
TrueType Font Recall. Recalls a previously stored bit mapped
TrueType font for use.
a = bb =
Font ID (1-9
Horizontal Expansion (01-12) cc = dd = eeee = ff...f
=
Vertical Expansion (01-12)
Character pitch (01-99)
Number of characters
Data to be printed using font
Expanded Memory Status. Reports the status of the currently active
Memory Card to the host by printing a status label.
TrueType Font Recall. Recalls a previously stored bit mapped
TrueType font for use.
aa = bb = cc = dd = ee = f f f f = gg...g
=
Font ID (01-99
Horizontal Expansion (01-12)
Vertical Expansion (01-12)
Reserved, always 00
Character pitch (01-99)
Number of characters
Data to be printed using font
Page
4-4
4-4
4-4
4-16
4-3
4-18
4-3
SATO Programming Reference PN9001096 Preliminary Page A-11
Appendix A: Command Code Quick Reference
Instruction
CCa
GCaaa
GIabbbcccddd ee...e
GRccc
GTaaa,bbbbb, nn. . . n
PIaaa,bbbbb, cc...c
PYaaa
YR,aaa
/D,bb,cc...c
YS,aaa
/Nbb,cc
Description
Memory Area Select. Selects the Memory area for all following
Expanded Memory commands.
a = b =
1 Memory Area 1
2 Memory Area 2
Recall BMP Graphic. Recalls BMP graphic files stored in Expanded
Memory.
Store Custom Graphics. 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 bbb = ccc ee...e
= ddd =
=
H Hexadecimal
Number of horizontal 8 x 8 blocks
Number of vertical 8 x 8 blocks
Graphics storage number (001-999)
Data to describe the graphic image
Recall Custom Graphics. Recalls for printing the graphic image stored by the GI command.
ccc = Storage number (001-999)
Store BMP Graphics. Stores BMP files in Expanded Memory.
aaa = bbbbb =
Storage area number (001 to 999)
Size of BMP file in bytes nn...n
= Data
Store PCX Graphics File. Stores a PCX graphic file.
Page
4-17
4-9
4-10
4-11
4-10
4-15 aaa = bbbbb =
Storage number (001-999)
Number of bytes in the file to be stored.
Recall PCX Graphics File. Recalls a PCX graphics file.
aaa = The storage number assigned to the file (001-999)
Recall Format/Field. To recall a field from a format previously stored in the memory card.
aaa = bb =
Number of format to be recalled (001 to 999)
Number of field to be recalled (01-99) cc...c
= Data to be placed in field.
Store Format/Field. To store a field in a format in the memory card.
aaa = bb =
Format number (001 -999)
Field number (01-99)
4-14
4-5
4-6
Page A-12 PN9001096 Preliminary SATO Programming Reference
Appendix A: Command Code Quick Reference
Instruction Description
&R,aa
*a,bbb cc = Number of characters in the field
Recall Form Overlay. Recalls a label image previously stored in
Expanded Memory.
aa = Storage number (00 to 99).
&S,aa,bbbb,cccc Store Form Overslay. Stores a label image in Expanded Memory.
aa = bbbb =
Storage number (00 to 99)
Horizontal size of window to be stored (50 to Hmax) cccc = a =
Vertical size of window to be stored (50 to Vmax)
Clear Expanded Memory. Clears individual memory and buffer areas.
Memory section to be cleared
G SATO graphic files (001-999) bbb =
O
R
P
F
PCX graphic file (001-999)
Stored formats (001-999)
TrueType fonts, memory card (001-009)
BMP graphic file (001-999)
Storage number
Page
4-7
4-8
4-2
SATO Programming Reference PN9001096 Preliminary Page A-13
Appendix A: Command Code Quick Reference
CONFIGURATION COMMANDS
Instruction Description
I2abcde
IGa
LD,a,b,c,d,e, f,g,i, j j
PCaa,bb
PCF,a,.....z
PHa
PMa
POabcc
Serial Interface. Sets the operating parameters for the Serial RS232C interface. Sets the default printer configuration in Flash ROM. See Serial
Interface Parameters command in the Configuration Commands of
Section 5: Programming Reference of this manual for details.
Sensor Type. Selects the sensor type.
a = 0 Reflective (Eye-Mark) sensor.
1
2
Transmissive (See-Thru) sensor
Sensor not used
Download Protocol Command Codes. Downloads a user defined set of Alternate Protocol Command Codes. See Appendix E for details on the proper usage of this command.
Printer Setting. Sets the default printer configuration in Flash ROM.
See Printer Setting command in the Configuration Commands of
Section 2: Command Codes of this manual for details.
Print Type. Selects the thermal printing method.
a = 0 Thermal transfer printing
1 Direct thermal printing
Print Mode. Selects desired backfeed operation.
a = 0
1
No backfeed, continuous operation
Tear-Off
4
7
2
3
Cut, backfeed after print
Cut, backfeed before print
Cut, no backfeed
Dispense, backfeed after print
8 Dispense, backfeed before print
Pitch Offset. Sets the pitch type, direction and offset to be used a = 0
1
Cutter
Dispense b cc
=
=
-
+
2
3
Tear-Off
Continuous
Positive offset
Negative offset
00 to 99, offset value in dots.
Page
6-11
6-10
6-2
6-4
6-9
6-8
6-7
Page A-14 PN9001096 Preliminary SATO Programming Reference
Appendix A: Command Code Quick Reference
LEGACY COMMANDS
These commands are provided for legacy applications that use command streams created for older SATO printers. It is not recommended that these commands be used for new applications.
AX
N
R
Expanded Print Length. This command sets the printer to the Expanded print length (14 inches). <ESC>EX0 is the recommended replacement.
Rotate, Moving Base Reference Point. Sets the original base reference point and returns printing to normal orientation. <ESC>% is the recommended replacement.
Rotate, Moving Base Reference Point. Rotates the printing of all subsequent images by 90 degrees counterclockwise each time it is used. Also moves the base reference point. <ESC>% is the recommended replacement.
SATO Programming Reference PN9001096 Preliminary Page A-15
Appendix A: Command Code Quick Reference
Page A-16 PN9001096 Preliminary SATO Programming Reference
APPENDIX B.
BAR CODE SPECIFICATIONS
BAR CODE SYMBOLOGIES
This section contains detailed information on the printing of bar codes on the “e” Series printers. Information on printing the following bar code symbologies is provided:
• Codbar
• Code 39
• Interleaved 2 of 5
• UPC-A/EAN-13
• EAN-8
• Industrial 2 of 5
• Matrix 2 of 5
• Code 128
• MSI
• Code 93
• UPC-E
• UPC Supplements(Bookland)
• UCC-128
• Postnet
• Data Matrix
• Maxicode
• PDF417
SATO Programming Reference PN 9001096 Preliminary Page B-1
Appendic B. Bar Code Specifications
Codabar
COMMAND STRUCTURE 1:3 ratio
2:5 ratio
1:2 ratio
CHARACTER SET bb ccc d data
<ESC>B0bbcccd (data) d
<
<ESC>D0bbcccd (data) d
=
=
=
=
ESC>BD0bbcccd (data) d
Width of narrow element in dots (01-12)
Bar height in dots (001-600)
Required Start and Stop character (A, B, C, or D)
Bar code data (alphanumeric)
0-9, -,$,:,/,+
A, B, C, D (Start/Stop characters)
DENSITY TABLE
Printer
Resolution
600 dpi
300 dpi
200 dpi
Narrow/
Wide
Ratio
1:3
2:5
1:3
1:3
1:3
2:5
1:2
1:3
1:3
2:5
1:2
Value of “bb”
03
01
02
01
02
01
02
01
02
01
02
“X”
Dimension
(mils)
5.0
3.3
3.3
3.3
6.7
6.7
3.3
5.0
10.0
10.0
5.0
Density
(char/inch)
16.96
27.2
25.0
25.0
12.6
13.6
15.1
16.9
8.5
9.2
10.2
EXAMPLE
NOTES
<ESC>H0400<ESC>V0025<ESC>B002100A12345B
<ESC>H0440<ESC>V0135<ESC>XS12345
1. You must add the appropriate (A, B, C or D) Start and Stop characters to the data string. The printer does not automatically add them
Page B-2 PN 9001096 Preliminary SATO Programming Reference
Code 39
Appendix B. Bar Code Specifications
COMMAND STRUCTURE 1:3 ratio:
2:5 ratio:
1:2 ratio:
CHARACTER SET
DENSITY TABLE bb ccc
(data)
*
<ESC>Blbbccc* (data) *
<ESC>BD1bbccc* (data) *
<ESC>D1bbccc* (data) *
= Width of narrow element in dots (01-12)
Bar height in dots (001-600)
Required Start and Stop character (asterisk)
Bar code data (alphanumeric)
0-9, A-Z, Space, $, %, +, -, .,/,* (Start/Stop character)
Printer
Resolution
300 dpi
200dpi
1:3
1:3
2:5
1:2
1:2
1:3
2:5
1:2
1:2
Narrow/
Wide
Ratio
1:3
1:3
2:5
1:2
1:2
1:3
Value of “bb”
01
01
02
02
01
01
02
03
01
02
01
02
03
01
02
5.0
10.0
10.0
5.0
10.0
6.7
3.3
6.7
3.3
“X”
Dimension
(mils)
3.3
5.0
3.3
3.3
5.0
3.3
Density
(char/inch)
23.1
11.5
12.7
6.4
7.0
15.6
7.8
18.8
12.7
10.3
11.56
7.0
18.8
9.5
10.3
EXAMPLE
NOTES
<ESC>H0100<ESC>V0025<ESC>B103100*CODE 39*
<ESC>H0230<ESC>V0130<ESC>XS*CODE 39*
You must add the”*” Start/Stop characters to the data stream. The printer does not add them automatically.
SATO Programming Reference PN 9001096 Preliminary Page B-3
Appendic B. Bar Code Specifications
Interleaved Two of Five (I 2/5)
COMMAND STRUCTURE
CHARACTER SET
DENSITY TABLE
1:3 ratio:
2:5 ratio:
1:2 ratio: bb ccc
(data)
=
=
=
<ESC>B2bbccc (data)
<ESC>BD2bbccc (data)
<ESC>D2bbccc (data)
Width of narrow element in dots (01-12)
Bar height in dots (001-600)
Bar code data (numeric); must be an even number of digits or else the printer will add a leading zero; start and stop code are provided by the printer
0-9 (numeric only
Printer
Resolution
600 dpi
300 dpi
200 dpi
1:2
1:3
1:3
2:5
1:2
1:2
Narrow/
Wide
Ratio
1:3
1:3
2:5
1:3
1:3
2:5
1:2
Value of “bb”
02
03
01
01
02
01
02
02
01
02
01
01
02
“X”
Dimension
(mils)
3.3
5.0
3.3
3.3
6.7
6.7
6.7
3.3
5.0
10.0
10.0
5.0
10.0
Density
(char/inch)
33.4
22.6
18.86
33.4
16.7
18.8
21.4
14.3
22.6
11.3
12.7
14.5
9.7
EXAMPLE
NOTES
<ESC>H0100<ESC>V0100<ESC>B20310045676567
<ESC>H0140<ESC>V0210<ESC>XM4567 6567
To add horizontal guard bars to the top and bottom of the bar code, use the Line and Box command.
Page B-4 PN 9001096 Preliminary SATO Programming Reference
Appendix B. Bar Code Specifications
UPC-A/EAN-13
COMMAND STRUCTURE <ESC>B3bbccc (data)
<ESC>D3bbccc (data)
<ESC>BD3bbccc (data) bb ccc
(data)
=
=
=
Width of narrow element in dots (01-12)
Bar height in dots (001-600)
Bar code data (numeric); must be exactly 13 digits. For
UPC-A, the first digit must be a zero and the last 11 digits are the actual UPC-A data followed by a check digit.
CHARACTER SET
DENSITY TABLE
To select UPC-A, 11 digits of data is sent. The printer adds a “0” and automatically generates the check digit. If 12 digits of data are sent, the printer assumes an EAN-13 symbol and automatically generates the check digit. The last digit of the bar code data is a modulo 10 check digit.
If 13 digits of data are sent to the printer, the check digit is not created and must be supplied by the programmer. It must be the last character in the
13 digit string and can be determined by using the calculations outlined below.
0-9 (numeric only)
Printer
Resolution
600 dpi
300 dpi
200 dpi
Value of “bb”
05
06
07
08
02
03
04
02
03
04
Narrow Bar
Width (mils)
8.3
10.0
11.7
13.3
6.7
10.0
13.3
10.0
15.0
20.0
Magnification
Factor
Below Minimum
75%
87.5%
100%
Below Minimum
75%
100%
75%
112%
150%
NOTES
EXAMPLE
D3 provides guide bars that extend longer than the rest of the bar code.
BD3 provides guide bars and the human readable text below the symbol.
<ESC>H0100<ESC>V0375<ESC>BD30215001234567890
SATO Programming Reference PN 9001096 Preliminary Page B-5
Appendic B. Bar Code Specifications
CALCULATING THE
MOD 10 CHECK DIGIT
ODD
EVEN
0
1
If you wish to encode the UPC-A data “01234567890”, follow these steps to find the correct check digit.
2 4 6 8 0
3 5 7 9 CD
1. First add all the numbers in the ODD positions.
i.e., 0+2+4+6+8+0 = 20
2. Multiply the result of Step 1 by 3.
i.e., 20 x 3 = 60
3. Add up all the numbers in the EVEN positions.
i.e., 1+3+5+7+9 = 25
4. Add the result of Step 2 to that of Step 3.
i.e., 60 + 25 = 85
5. Subtract the result of Step 4 from the next highest increment of 10.
i.e., 90 - 85 = 5
6. The correct Modulo 10 check digit for the 11 digit string
“01234567890” is 5.
Page B-6 PN 9001096 Preliminary SATO Programming Reference
Appendix B. Bar Code Specifications
EAN-8
COMMAND STRUCTURE <ESC>B4bbccc (data)
<ESC>D4bbccc (data)
CHARACTER SET
DENSITY TABLE bb ccc
(data)
=
=
=
Width of narrow element in dots (01-12)
Bar height in dots (001 -600)
Bar code data (numeric). Must be 8 digits.
0-9 (numeric only)
Printer
Resolution
600 dpi
300 dpi
200 dpi
Value of “bb”
05
06
07
08
02
03
04
02
03
04
Narrow Bar
Width (mils)
8.3
10.0
11.7
13.3
6.7
10.0
13.3
10.0
15.0
20.0
Magnification
Factor
Below Minimum
75%
87.5%
100%
Below Minimum
75%
100%
75%
112%
150%
NOTES
EXAMPLE
1. D4 provides guide bars that extend longer than the rest of the bar code and the human readable text below the symbol.
2. The check digit is automatically calculated for EAN-8.
<ESC>H0400<ESC>V0375<ESC>BD4031001234567
SATO Programming Reference PN 9001096 Preliminary Page B-7
Appendic B. Bar Code Specifications
Industrial Two of Five
COMMAND STRUCTURE 1:3 ratio:
2:5 ratio:
1:2 ratio:
B5bbccc (data)
BD5bbccc (data)
D5bbccc (data) bb = Width of narrow element in dots (01-12) ccc = Bar height in dots (001-600
CHARACTER SET
NOTES
EXAMPLE
(data) = Bar code data (numeric); must be an even number of digits or else the printer will add a leading zero
0-9 (numeric only)
To add horizontal guard bars to the top and bottom of the bar code, use the Line and Box command.
<ESC>H0100<ESC>V0600<ESC>BD50310012345
<ESC>H0300<ESC>V0710<ESC>XS12345
Page B-8 PN 9001096 Preliminary SATO Programming Reference
Appendix B. Bar Code Specifications
Matrix Two of Five
COMMAND STRUCTURE
CHARACTER SET
NOTES
EXAMPLE
1:3 ratio:
2:5 ratio:
1:2 ratio: bb ccc
(data)
=
=
=
<ESC>B6bbccc (data)
<ESC>BD6bbccc (data)
<ESC>D6bbccc (data)
Width of narrow element in dots (01-12)
Bar height in dots (001-600)
Bar code data (numeric only); must be an even number of digits or else the printer will add a leading zero.
0-9 (numeric only)
To add horizontal guard bars to the top and bottom of the bar code, use the Line and Box command.
<ESC>H0100<ESC>V0775<ESC>BD60310012345
<ESC>H0230<ESC>V0885<ESC>XS12345
SATO Programming Reference PN 9001096 Preliminary Page B-9
Appendic B. Bar Code Specifications
Code 128
COMMANDSTRUCTURE <ESC>BGbbcccdd (data) bb ccc dd
(data)
=
=
=
=
Width of narrow element in dots (01-12)
Bar height in dots (001-600)
Start code to specify initial subset of bar code data
G Subset A Start code
H Subset B Start code
I Subset C Start code
Includes bar code data and subset Shift codes; Shift codes are used to change the subset type within the bar code data.
Shift codes:
E Subset A Shift code
D Subset B Shift code
C Subset C Shift code
CHARACTER SET
DENSITY TABLE
See Code 128 Character Table on Page B-23
Printer
Resolution
600 dpi
300 dpi
200 dpi
Value of
“bb”
02
03
04
01
02
03
01
01
03
“X”
Dimension
(mls)
3.3
5.0
6.7
3.3
6.7
10
5.0
10.0
15.0
Density (char/inch)
Subsets A,
B
Subset C
27.3
18.2
13.6
27.3
54.7
36.5
27.2
54.7
13.6
9.1
18.2
9.1
13.8
27.2
18.3
36.5
18.3
12.2
EXAMPLE The following will start in Subset A for the characters “AB”, shift to Subset B for “789”, then shift to Subset C for “123456”.
<ESC>H0200<ESC>V0550<ESC>BG03100>GAB>B789>C123456
<ESC>H0310<ESC>V655<ESC>XSAB789123456
Page B-10 PN 9001096 Preliminary SATO Programming Reference
COMMAND STRUCTURE
CHARACTER SET
EXAMPLE
Appendix B. Bar Code Specifications
MSI
1:3 ratio:
2:5 ratio
1:2 ratio bb ccc
(data) d
<ESC>DAbbccc (data) d
=
=
=
=
<ESC>BAbbccc (data) d
<ESC>BDAbbccc (data) d
Width of narrow element in dots (01-12)
Bar height in dots (001-600)
Bar code data (numeric); maximum of 15 digits
Required check digit
0-9 (numeric only)
<ESC>H0100<ESC>V0950<ESC>BA03100123455
<ESC>H0170<ESC>V1060<ESC>XS12345
SATO Programming Reference PN 9001096 Preliminary Page B-11
Appendic B. Bar Code Specifications
Code 93
COMMAND STRUCTURE 1:3 ratio: <ESC>BCbbcccdd (data) bb = Width of narrow element in dots (01-12) ccc = Bar height in dots (001-600) dd = Length of data (number of digits, 00-99)
CHARACTER SET
DENSITY TABLE
(data) = Bar code data (alphanumeric); length must match value ofparameter “dd”, check digit is supplied by printer.
0-9, A-Z, -, ., Space, $, /, +, %
Printer
Resolution
600 dpi
300 dpi
200 dpi
Narrow/
Wide
Ratio
1:3
1:3
1:3
1:3
1:3
1:3
1:3
1:3
1:3
Value of “bb”
02
03
04
01
02
03
01
02
03
“X”
Dimension
(mils)
3.3
5.0
6.7
3.3
6.7
10
5.0
10.0
15
Density
(char/inch)
16.7
11.1
22.5
11.3
7.5
33.6
22.5
16.7
33.3
EXAMPLE <ESC>H0100<ESC>V1125<ESC>BC0310008123
<ESC>H0155<ESC>V1240<ESC>XS1 234ABCD
Page B-12 PN 9001096 Preliminary SATO Programming Reference
COMMAND STRUCTURE
CHARACTER SET
DENSITY TABLE
NOTES
EXAMPLE
Appendix B. Bar Code Specifications
UPC-E
<ESC>BEbbccc (data)
<ESC>DEbbccc (data) bb = Width of narrow element in dots (01-03) ccc = Bar height in dots (001-600)
(data) = Bar code data (numeric); must be exactly 6 digits
0-9 (numeric only)
Printer
Resolution
600 dpi
300 dpi
200 dpi
Value of
“bb”
05
06
07
08
02
03
04
02
03
04
Narrow Bar
Width (mils)
8.3
10
11.8
13.3
6.7
10.0
13.3
10.0
15.0
20.0
Magnification
Factor
Below Minimum
75%
87.5%
100%
Below Minimum
75%
100%
75%
112%
150%
Command DE provides guide bars that extend longer than the rest of the bar code.
<ESC>H0400<ESC>V0550<ESC>DE03100123456
<ESC>H0375<ESC>V0600<ESC>OB0
<ESC>H0408<ESC>V0655<ESC>OB123456
SATO Programming Reference PN 9001096 Preliminary Page B-13
Appendic B. Bar Code Specifications
Bookland (UPC/EAN Supplements)
COMMAND STRUCTURE <ESC>BFbbccc (data)
CHARACTER SET
DENSITY TABLE bb ccc
(data)
=
=
=
Width of narrow element in dots (01-03)
Bar height in dots (001-600)
Bar code data (numeric); must be exactly 2 or 5 digits
0-9 (numeric only)
Printer
Resolution
600 dpi
300 dpi
200 dpi
Value of
“bb”
05
06
07
08
02
03
04
02
03
04
Narrow Bar
Width (mils)
8.3
10
11.8
13.3
6.7
10.0
13.3
10.0
15.0
20.0
Magnification
Factor
Below Minimum
75%
87.5%
100%
Below Minimum
75%
100%
75%
112%
150%
EXAMPLE <ESC>H0325<ESC>V0725<ESC>D30315009827721123
<ESC>L0101<ESC>H0295<ESC>V0800<ESC>OB0
<ESC>H0340<ESC>V0878<ESC>OB98277
<ESC>H 0480<ESC>V0878<ESC>OB21123
<ESC>H640<ESC>V0760<ESC>BF0313021826
<ESC>H655<ESC>V0730<ESC>OB21826
Page B-14 PN 9001096 Preliminary SATO Programming Reference
UCC-128
Appendix B. Bar Code Specifications
COMMAND STRUCTURE
CHARACTER SET
DENSITY TABLE
NOTES
<ESC>BIbbcccd (data) bb ccc d
(data)
=
=
Width of the narrow elements in dots (01 to 12)
Bar height in dots (001 to 600)
Placement of human readlble text
0 None
1 Text at top of bar code
2 Text at bottom of bar code
17 digits made up of the following:
1st digit = Container type digits 2-8 = Shipper identification digits 9-17 = Container Sequential number
(not automatically dequenced by the printer)
See Code 128 Character Table on Page B-23
See Code 128, Page B-10
1. The Start, Function, Stop and Extension codes will be created by the printer and added automatically.
2. The internal Modulo 10 check character will be automatically created and added by the printer. The overall Code 128 symbol check character will be automatically created by the printer and added.
3. The automatically created human readable text will be created according to the following rules:
• The spacing between the bar code and the text is fixed at 10 dots (.
• If the width of the human readable text is wider than the bar code, it will start at the same position as the bar code and extend past the right of the bar code.
• If the width of the human readable text is less than the bar code, it will be centered on the bar code.
• The automatically generated HRI font is OCR-B.
• If any part of the human readable text extends outside the printable area, none of it will be printed. Care should be exercised when placing the bar code to allow for any automatically created human readable text.
SATO Programming Reference PN 9001096 Preliminary Page B-15
Appendic B. Bar Code Specifications
EXAMPLE Without incrementing
<ESC>A
<ESC>H0100<ESC>V0100<ESC>BI04150101234567000000001
<ESC>Q2<ESC>Z
With incrementing
<ESC>A
<ESC>H0100<ESC>V0100<ESC>F001+001
<ESC>BI04150101234567000000001
<ESC>Q2<ESC>Z
Page B-16 PN 9001096 Preliminary SATO Programming Reference
Postnet
Appendix B. Bar Code Specifications
COMMAND STRUCTURE <ESC>BP (data)
CHARACTER SET
NOTES data =
=
=
=
5 digits ZIP
6 digits for Postnet 37
9 digits for ZIP+4
11 digits for Dlelivery Point Bar Code
1-9 (numeric only)
1. Frame bits and check digits added automatically by printer.
2. Bar code width and height are fixed and cannot be changed.
3. If the number of digits sent to the printer as data does not match one of the formats specified above (i.e. 5, 6, 9 or 11), the command is ignored and nothing will be printed.
4. If a “-” is included in the data stream (i.e. 84093-1565), it is ignored.
EXAMPLE <ESC>H0100<ESC>V0120<ESC>BP94089
<ESC>H0100<ESC>V0160<ESC>BP123456
<ESC>H0100<ESC>V0200<ESC>BP123456789
<ESC>H0100<ESC>V0240<ESC>BP12345678901
SATO Programming Reference PN 9001096 Preliminary Page B-17
Appendic B. Bar Code Specifications
Data Matrix
COMMAND STRUCTURE Data Format aa = bb cc dd eee fff g hh
=
=
=
=
=
=
=
<ESC>BXaabbccddeeefffghh
Format ID. 01-06 or 11-16. The values 07 and 17 will not be accepted by the printer.
Error correction level. 00 ,05, 08, 10, 14, 20 or 200.All other values will be processed as a 00.
Horizontal cell size. 03 - 12 dots/cell.
Vertical cell size. 03 - 12 dots/cell.
Number of cells in one line. Must use 000 to optimize.
Number of cell lines. Must use 000 to optimize.
Mirror Image
0 = Normal Print
1 = Reverse Print
Guide Cell Thickness. 01-15. 01 indicates normal type.
<ESC>FXaaabcccdddeee Sequential
Numbering aaa = b = ccc ddd eee
=
=
=
PRINT DATA xx..x
=
Number of duplicate labels to be printed (001 - 999)
Increment or Decrement
+ = Increment
- = Decrement
Increment/Decrement Steps (001 - 999)
Sequential numbering start position (001 - 999)
Referenced to left side.
Incremented data length measured from start position
(001 - 999)
<ESC>DCxxx...x
Data
Page B-18 PN 9001096 Preliminary SATO Programming Reference
CHARACTER SET
NOTES
EXAMPLE
Appendix B. Bar Code Specifications
ID
NUMBER
01
02
03
04
05
06
CHARACTER SET
16 Bit CRC
Numeric, Space
Upper Case Alpha, Space
Upper Case Alpha, Space, Comma, Period,
Slash, Minus
Upper Case Alphanumeric, Space
ADCII 7-bit, Full Keyboard (20 H - 7F H )
ASCII
ISO 8-bit, International (20 H - FF H )
8-Bit
ENCODING
SCHEME
Base 11
Base 27
Base 41
Base 37
ASCII
8-Bit
See AIM USA Technical Specification Data Matrix for information on the structure of this symbology.
<ESC>V0100<ESC>H0100
<ESC>BX05051010000000001
<ESC>DCDATA MATRIX DATA MATRIX
SATO Programming Reference PN 9001096 Preliminary Page B-19
Appendic B. Bar Code Specifications
Maxicode
COMMAND STRUCTURE <ESC>BVa,b,c,ddddddddd,eee,fff,gggg.....<ESC> a = Position of Maxicode symbol within the set, when used in a structured append format 1~8.
b = Total number of Maxicode symbols in the set, when used in a structured format 1~8.
c = 2 For Mode 2 Structured Carrier Message for Domestic
U.S. UPS shipments
3 For Mode 3 Structured Carrier Message for
International UPS shipments
4 Standard symbol
5 Not currently supported
6 Reader programming ddd..ddd
= 9 digit numeric Postal Code eee = 3 digit numeric Country Code fff = 3 digit numeric Service Class gg//g = Data, terminated by <ESC>
Mode
2
3
4
6
Postal Cde
9 digits max numeric only
6 digits fixed alphnumeric
“000000” fixed data
Country Code
3 digits max numeric only
3 digits numeric only
“000” fixed data
Service Class
3 digits max numeric only
3 digits max numeric only
“000” fixed data
Message
Length
84 characters alphanumeric
84 characters alphanumeric
91 characters alphanumeric
CHARACTER SET
NOTES
EXAMPLE
See AIM I.S.S specification for information on the structure of this symbology.
<ESC>A<ESC>V0100<ESC>H0100
<ESC>BV1,1,2,123456789,840,001,[)<RS>01<GS>961Z01547089
<GS>UPSN<GS>056872<GS>349<GS>99999999<GS>001/005
<GS>029<GS>N<GS><GS>LENEXA<GS>KS<RS><EOT>
<ESC>Q001<ESC>Z
Page B-20 PN 9001096 Preliminary SATO Programming Reference
PDF417
Appendix B. Bar Code Specifications
COMMAND STRUCTURE <ESC>BFaabbcddeeffffnnn...n aa = Minimum module dimension (03-09 dots). Will not print if values of 01, 02 or greater than 10 are specified.
bb c dd
= Minimum module pitch dimension (04-24 dots). Will not print if values of 01, 02, 03 or greater than 25 are specified.
= Security (error detection) Level (1-8).
ee ffff gg
= Code words per line (01-30). If 00 is specified for both dd and ee, the printer automatically optimizes the number of rows per symbol.
= Rows per symbol (00 or 03-40). If 00 is specified for both dd and ee, the printer automatically optimizes the number of rows per symbol.
= Number of characters to be encoded (0001-2700).
= PDF417 Type. If not specified, standard PDF417
T Truncated PDF417
M Micro PDF417
CHARACTER SET
NOTES
EXAMPLE nn...n
= Data to be printed.
ASCII 128 character set plus PC437 Extended Character set.
See AIM USA Uniform Symbology Specification PDF417 for information on the structure of this symbology.
<ESC>V0100<ESC>H0100<ESC>BK0607400000021PDF417 PDF417 PDF417
SATO Programming Reference PN 9001096 Preliminary Page B-21
Appendic B. Bar Code Specifications
CODE 128 CHARACTER TABLE
The Code 128 Table lists 105 data values for the three subsets: A, B, and C. Each subset column displays either a single column of data or a double column of data.
• If the subset column displays a single column of data, that is the data to be entered to produce the result.
• If the subset column displays a double column of data, the first column contains the desired output, and the second column contains the actual characters to be entered.
For example, look at value 99 in the table:
If you are currently using Subset A or Subset B, you can change to Subset C by encoding
“>C”.
VALUE SUBSET A SUBSET B SUBSET C
99
100
101
102
Subset C >C Subset C >C
Subset B >D FNC4 >D
FNC4 >E
FNC1 >F
Subset A >E
FNC1 >F
99
Subset B >D
Subset A >E
FNC1 >F
• Note: When Subset C is chosen, you must specify an even number of data positions because of the interleaved encodation method.
Page B-22 PN 9001096 Preliminary SATO Programming Reference
Appendix B. Bar Code Specifications
CODE 128 CHARACTER TABLE
26
27
28
29
22
23
24
25
30
31
VALUE
2
3
0
1
6
7
4
5
SUBSET
A
SP
!
“
#
$
%
SUBSET
B
SP
!
“
#
$
%
SUBSET
C
00
01
02
03
04
05
&
‘
&
‘
06
07
8 .
.
02
9 ) ) 09
10
11
12 ,
13 -
* * 10
+ + 11
, 12
- 13
18
19
20
21
14
15 /
. . 14
/ 15
16
17
0
1
0
1
16
17
2
3
4
5
2
3
4
5
18
19
20
21
<
=
;
:
>J
?
8
9
6
7
<
=
;
:
>J
?
8
9
6
7
26
27
28
29
22
23
24
25
30
31
62
63
64
65
58
59
60
61
66
67
54
55
56
57
50
51
52
53
VALUE
36
37
38
39
40
41
42
43
SUBSET
A
D
E
F
G
H
I
SUBSET
B
D
E
F
G
H
I
SUBSET
C
36
37
38
39
40
41
J
K
J
K
42
43
38 F F 38
45 M M 45
46 N N 46
47 O O 47
48
49
P
Q
P 48
Q 49
X
Y
V
W
T
U
R R 50
S S 51
T
U
V
W
X
Y
52
53
54
55
56
57
]
\
Z
[
^
__
NUL>(space)
SOH >!
STX >"
ETX >#
]
\
Z
[
^
__
. >(space) a or >!
b or >" c or >#
62
63
64
65
58
59
60
61
66
67
SATO Programming Reference PN 9001096 Preliminary Page B-23
Appendic B. Bar Code Specifications
80
81
82
83
76
77
78
79
84
85
86
87
88
72
73
74
75
32
33
34
35
VALUE
LF >*
VT >+
FF >,
CR >-
SO >.
SI >/
DLE >0
DC1 >1
SUBSET
A
@
A
B
C
BS >(
HT >)
DC2 >2
DC3 >3
DC4 >4
NAK >5
SYN >6
ETB >7
CAN >8
78
79
80
81
74
75
76
77
SUBSET
C
32
33
34
35
72
73
86
87
88
82
83
84
85
CODE 128 CHARACTER TABLE (CONTINUED)
j >* k >+ l >, m >- n >.
o >/ p >0 q >1
SUBSET
B
@
A
B
C h >( i >) r >2 s >3 t >4 u >5 v >6 w >7 x >8
VALUE
97
98
99
100
93
94
95
96
101
102
103
104
105
89
90
91
92
68
69
70
71
SUBSET
A
EOT >$
ENQ >%
ACK >&
BEL >.
EM >9
SUB >:
ESC >;
FS ><
GS >=
RS >>
US >?
FNC3 >@
FNC2 >A
SHIFT >B
SUBSET
B d or >$ e or >% f or >& g or >.
y >9 z >:
{ >;
| ><
} >=
~ >>
DEL >?
FNC3 >@
FNC2 >A
SHIFT >B
Subset C >C Subset C >C
Subset B >D FNC4 >D
99
Subset B >D
FNC4 >E
FNC1 >F
Subset A >E
FNC1 >F
Subset A >E
FNC1 >F
SUBSET A START CODE >G
SUBSET B START CODE .H
SUBSET C START CODE >I
95
96
97
98
91
92
93
94
SUBSET
C
68
69
70
71
89
90
Page B-24 PN 9001096 Preliminary SATO Programming Reference
APPENDIX C.
CUSTOM CHARACTERS AND 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
SATO Programming Reference PN 9001096 Preliminary Page C - 1
Appendix C: Custom Characters and Graphics
3. Transfer the image into two bit map representations and then into hexadecimal or binary format.
ROW
13
14
15
16
9
10
11
12
7
8
5
6
3
4
1
2
0000
0000
0000
0000
0000
0000
0000
0000
0001
0011
0111
1111
0000
0000
0000
0000
BIT MAP
0111
0111
0111
0111
0111
0111
0111
0111
1111
1111
1111
1111
0001
0011
0111
1111
1100
1100
1100
1100
1100
1100
1100
1100
1111
1111
1111
1111
0000
1000
1100
1110
07
07
07
07
07
07
07
07
1F
3F
7F
FF
01
03
07
0F
HEX
C0
C0
C0
C0
C0
C0
C0
C0
F0
F8
FC
FE
00
80
C0
E0
0000
0000
0000
0000
0000
0000
0000
0000
0000
1000
1100
1110
0000
0000
0000
0000
4. To store the custom designed character in memory using a hexadecimal data stream, the command would be:
<ESC>A
<ESC>T1H3F0100038007C00FE01FF03FF87FFCFFFE07C007C007C007C007C007C007C007C0<
ESC>Z
Note: This should be a continuous data string without any CR or LF characters.
5. To recall the custom character from memory, send the following code to the printer. Note that you can print other data as well. Also note how the charactersize was expanded using the <ESC>L command.
<ESC>A
<ESC>L0505<ESC>H0150<ESC>V100<ESC>K1H903F
<ESC>L0505<ESC>H0600<ESC>V100<ESC>K1H903F
<ESC>L0303<ESC>H0125<ESC>V0250<ESC>MTHIS SIDE UP !
<ESC>Q1
<ESC>Z
6. To store the custom designed character in memory using a binary data stream, thecommand would be:
<ESC>A
<ESC>T1B3F 01
H
00
H
03
H
80
H
07
H
C0
H
0F
H
E0
H
1F
H
F0
H
3F
H
F8
H
7F
H
FC
H
FF
H
FE
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
<ESC>Z
NOTE: Spaces are shown between hexidecimal values in the above example for clarity only and are not included in the data string.
Page C - 2 PN 9001096 Preliminary SATO Programming Reference
Appendix C: Custom Characters and Graphics
Note that the data stream is only half as long as the hexadecimal format.
This is because we can send the binary equivalent of ì11111111î
(represented above in its hexidecimal value of FF H ), for example, using one eight bit word while it takes two eight bit words to transmit the hexadecimal equivalent ìFî and ìFî. To send binary characters using
BASIC, the expression ìCHR (&HFF) will send the binary equivalent of FF
(i.e., 11111111).
7. To recall the custom character from memory, send the following code to the printer:
<ESC>A
<ESC>L505<ESC>H0150<ESC>V100<ESC>K1B903F
<ESC>L505<ESC>H0600<ESC>V100<ESC>K1B903F
<ESC>L0303<ESC>H0125<ESC>V0250<ESC>XMTHISSIDE UP !
<ESC>Q1
<ESC>Z
The printer output for both the hexadecimal and binary format examples is:
SATO Programming Reference PN 9001096 Preliminary Page C - 3
Appendix C: Custom Characters and Graphics
CUSTOM GRAPHICS EXAMPLE
The following example is presented to help you understand the use of the CustomGraphics command. It demonstrates the design and printing of a ìdisketteî in a 48 x 48 matrix.
1. Determine the matrix size for the graphic. It must be in 8 dot by 8 dot blocks. The example here has six blocks horizontally and six blocks vertically (48 x 48).
2. 2. Lay out a grid and draw the image on the grid.
• Each square represents one dot
• Blacken squares for each printed dot
Page C - 4 PN 9001096 Preliminary SATO Programming Reference
Appendix C: Custom Characters and Graphics
3. Transfer the image into a bit map representation and then into hexadecimal format:
11000000
11000000
11000000
11000000
11000000
11000000
11000000
11000000
11000000
11000000
11000000
11000000
11000000
11000000
11000000
11000000
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
11111111
11111111
2
11111111
3
BIT MAP
11111111
4
11111111
5
11111111
6
11111111FF
11111111 11111111 11111111 11111111 11111111FF
00000000 00000000 00000000 00000000 00000011C0
00000000 00000000 00000000 00000000 00000011C0
00000000 11111111 11111111 11111111 11110011C0
00000000 10000000 00000000 00000000 00010011C0
00000000 10000000 00000000 00000000 00010011C0
00000000 10011111 11111111 11111111 00010011C0
00000000 10000000 00000000 00000000 00010011C0
00000000 10000000 00000000 00000000 00010011C0
00000000 10011111 11111111 11111111 00010011C0
00000000 10000000 00000000 00000000 00010011C0
00000000 10000000 00000000 00000000 00010011C0
00000000 11111111 11111111 11111111 11110011C0
00000000 00000000 00000000 00000000 00000011C0
00000000 00000000 00000000 00000000 00000011C0
00000000 00000000 00000000 00000000 00000011C0
00000000 00000000 00000000 00000000 00000011C0
00000000 00000000 00000000 00000000 00000011C0
00000000 00000000 00000000 00000000 00000011C0
00000000 00000011 11000000 00000000 00000011C0
00000000 00000111 11100000 00000000 00000011C0
00000000 11110000 00000000 00000011C0
11110000 00000000 00000011C0
11110000 00000000 00000011C0
11110000 00000000 00000011C0
00000000
00000000
00000000
00001111
00001111
00001111
00001111
00000000 00000111 11100000 00000000 00000011C0
00000000 00000011 11000000 00000000 00000011C0
00000000 00000000 00000000 00000000 00000011C0
00000000 00000000 00000000 00000000 00000011C0
00000000 00000000 00000000 00000000 00000011C0
00000000 00000000 00000000 00000000 00000011C0
00000000 00000001 10000000 00000000 00000011C0
00000000 00000011 11000000 00000000 00000011C0
00000000 00000011 11000000 00000000 00000011C0
00000000 00000011 11000000 00000000 00000011C0
00000000 00000011 11000000 00000000 00000011C0
00000000 00000011 11000000 00000000 00000011C0
00000000 00000011 11000000 00000000 00000011C0
00000000 00000011 11000000 00000000 00000011C0
00000000 00000011 11000000 00000000 00000011C0
00000000 00000011 11000000 00000000 00000011C0
00000000 00000011 11000000 00000000 00000011C0
00000000 00000001 10000000 00000000 00000011C0
00000000 00000000 00000000 00000000 00000011C0
00000000 00000000 00000000 00000000 00000011C0
11111111
11111111
11111111
11111111
11111111
11111111
11111111
11111111
11111111FF
11111111FF
4. Using the hexadecimal data, send the following code to print the graphic image as designed.
<ESC>A<ESC>H0100<ESC>V0100<ESC>GH006006
FFFFFF FFFFFF FFFFFF FFFFFF C00000 000003
C00000 000003 C000FF FFFFF3 C00080 000013
C00080 000013 C0009F FFFF13 C00080 000013
C00080 000013 C0009F FFFF13 C00080 000013
C00080 000013 C000FF FFFFF3 C00000 000003
C00000 000003 C00000 000003 C00000 000003
C00000 000003 C00000 000003 C00003 C00003
C00007 E00003 C0000F F00003 C0000F F00003
C0000F F00003 C0000F F00003 C00007 E00003
C00003 C00003 C00000 000003 C00000 000003
C00000 000003 C00000 000003 C00001 800003
C00003 C00003 C00003 C00003 C00003 C00003
C00003 C00003 C00003 C00003 C00003 C00003
C00003 C00003 C00003 C00003 C00003 C00003
C00003 C00003 C00001 800003 C00000 000003
C00000 000003 FFFFFF FFFFFF FFFFFF FFFFFF
<ESC>Q1<ESC>Z
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
1
FF
FF
00
00
00
00
FF
FF
00
00
00
00
00
00
00
00
00
00
00
00
03
03
03
01
03
03
FF
FF
03
03
03
03
01
03
03
03
00
00
00
00
0F
0F
07
03
03
07
0F
0F
00
00
00
00
00
00
00
80
F0
E0
C0
00
00
00
00
C0
E0
F0
F0
F0
00
FF
00
00
FF
00
00
00
FF
00
00
FF
00
00
FF
00 80
80
9F
80
80
FF
00
00
FF
FF
00
00
FF
80
80
9F
HEXADECIMAL FORMAT
2 3
FF
4
FF
FF
00
03
03
13
13
5
FF
FF
03
C0
C0
80
C0
C0
FF
FF
C0
C0
C0
C0
C0
C0
C0
C0
03
03
03
03
03
03
03
03
03
03
03
03
03
03
03
03
03
03
03
FF
FF
03
03
03
03
13
03
03
03
03
13
13
13
13
13
F3
03
13
13
03
13
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
FF
00
00
FF
00
00
FF
00
00
FF
00
00
00
00
00
00
00
00
00
00
00
FF
FF
03
03
03
03
03
03
03
03
13
03
03
03
03
13
13
13
13
13
F3
03
13
13
03
13
03
03
13
13
6
FF
FF
03
03
03
03
FF
FF
03
03
03
03
03
03
03
03
03
03
03
03
SATO Programming Reference PN 9001096 Preliminary Page C - 5
Appendix C: Custom Characters and Graphics
Note: Spaces shown in the hexadecimal listing above are for emphasis only.
Spaces must not be encoded within the graphic portion of the data stream to the printer. Also, CR and LF characters to separate the lines must not be encoded in the data stream.
5. To send the data in binary format, the software must convert the data into binary format before transmitting it to the printer. Using the BASIC programming language for example, this is done by notation “CHR$ (&HC0)” which sends the hexidecimal value of ìC0î as binary data (11000000). The BASIC program listing for sending this graphic to the printer
(using the RS232 port) in binary format is:
CLS
OPEN .COM2:9600,N,8,1,CS,DS. FOR OUTPUT AS #1
E$ = CHR$(27)
PRINT #1,CHR$(2); E$; .A.; E$; .V0100"; E$; .H0100"; E$; .GB006006";
PRINT #1,CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);
PRINT #1,CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);
PRINT #1,CHR$(&HFF);CHR$(&HFF);CHR$(&HC0);CHR$(&H00);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H03);CHR$(&HC0);
PRINT #1,CHR$(&H00);CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HF3);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H80);CHR$(&H00);CHR$(&H00);
PRINT #1,CHR$(&H13);CHR$(&HC0);CHR$(&H00);CHR$(&H80);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H13);CHR$(&HC0);CHR$(&H00);CHR$(&H9F);
PRINT #1,CHR$(&HFF);CHR$(&HFF);CHR$(&H13);CHR$(&HC0);CHR$(&H00);
PRINT #1,CHR$(&H80);CHR$(&H00);CHR$(&H00);CHR$(&H13);CHR$(&HC0);
PRINT #1,CHR$(&H00);CHR$(&H80);CHR$(&H00);CHR$(&H00);CHR$(&H13);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H9F);CHR$(&HFF);CHR$(&HFF);
PRINT #1,CHR$(&H13);CHR$(&HC0);CHR$(&H00);CHR$(&H80);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H13);CHR$(&HC0);CHR$(&H00);CHR$(&H80);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H13);CHR$(&HC0);CHR$(&H00);
PRI NT #1,CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HF3);CHR$(&HC0);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H03);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H00);
PRINT #1,CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H00);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H03);CHR$(&HC0);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H03);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);
PRINT #1,CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H07);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H0F);
PRINT #1,CHR$(&HF0);CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);
PRINT #1,CHR$(&H0F);CHR$(&HF0);CHR$(&H00);CHR$(&H03);CHR$(&HC0);
PRINT #1,CHR$(&H00);CHR$(&H0F);CHR$(&HF0);CHR$(&H00);CHR$(&H03);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H0F);CHR$(&HF0);CHR$(&H00);
PRINT #1,CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H07);CHR$(&HE0);
PRINT #1,CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H03);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H03);CHR$(&HC0);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H03);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H00);
PRINT #1,CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H00);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H01);
PRINT #1,CHR$(&H80);CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);
PRINT #1,CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H03);CHR$(&HC0);
PRINT #1,CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H03);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);
PRINT #1,CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H03);CHR$(&HC0);
PRINT #1,CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H03);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);
PRINT #1,CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H03);CHR$(&HC0);
Page C - 6 PN 9001096 Preliminary SATO Programming Reference
Appendix C: Custom Characters and Graphics
PRINT #1,CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H03);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);
PRINT #1,CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H03);CHR$(&HC0);
PRINT #1,CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H03);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);
PRINT #1,CHR$(&H01);CHR$(&H80);CHR$(&H00);CHR$(&H03);CHR$(&HC0);
PRI NT #1,CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H03);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H00);
PRINT #1,CHR$(&H03);CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);
PRINT #1,CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);
PRINT #1,CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);
PRINT #1,E$; .Q1"; E$; .Z"; CHR$(3)
CLOSE #1
The printer output for both the hexadecimal and binary format example is:
SATO Programming Reference PN 9001096 Preliminary Page C - 7
Appendix C: Custom Characters and Graphics
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. Generally this is not a problem unless the graphic image is surrounded by large amount of white space which the PCX algorithm can compress very efficiently. If this is the case, the file should be recaptured to eliminate the surrounding white space as much as possible. The following basic program will send and print this file:
OPEN .WIZ.PCX. FOR INPUT AS #2
DA$ = INPUT$(15706, #2)
C$ = CHR$(27)
WIDTH .LPT1:., 255
LPRINT C$; .A.;
LPRINT C$; .V150"; C$; .H100"; C$; .GP15706,.; DA$
LPRINT C$; .Q1"; C$; .Z";
CLOSE #2
The printer output for this program is:
Page C - 8 PN 9001096 Preliminary SATO Programming Reference
APPENDIX D.
CUSTOM PROTOCOL COMMAND CODES
DESCRIPTION
This section contains information on creating custom Protocol Command Codes for operating the “e” Series and PRO printers. The Protocol Command codes are used to 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 <ESC>character to tell the printer that the following character(s) will represent a specific command. Sometimes the host computer is unable to generate the character or it uses the <ESC> character to control another function. In this case, an Alternate Protocol Command Code set can be selected for use by placing DIP switch 2-7 in the ON position. When the Alternate set is selected, the <ESC> character is not used and is instead replaced with a “carrot” (^) character. A command stream would then start with an
“^”instead of an “<ESC>”. These two sets of Protocol Command Codes are adequate for the majority of all applications, but ocassionally situations occur where conflicts exist when using the Alternate set. In these cases, the user can define and download a custom set of Protocol
Command Codes that are stored in non-voltile memory in the printer. After these are downloaded, they replace the Alternate Command Code set when DIP switch DS2-7 is in the
ON position. When DIP switch DS2-7 is in the OFF position, the Standard Protocol Command
Codes are used.
SATO Programming Reference PN 9001096 Preliminary Page D-1
Appendix D: Custom Protocol Command Codes
DOWNLOAD COMMAND STRUCTURE
The command for downloading a new set of Protocol Command Codes takes the form of
“<ESC>LD,a,b,c,d,e,f,g,h,i,j j”. The parameters specified for “a” through “i” can be transmitted in either ASCII characters or hex notation, allowing a complete 128 character
(except for the “,”) set to be used for selecting the custom code.
PARAMETER STANDARD SETTING a b c d e g h (Auto ONLINE) i (Zero Slash) jj (Eurocharacter)
STX
ETX
ESC
ENQ
CAN
OFF-LINE
No
No
D5
ALTERNATE SETTING
(DEFAULT)
{
}
^
@
]
!
0 = Yes
1 = No
0 = Yes
1 = No
User Defined
RESET
If the custom Protocol Command codes are incorrect or if the printer does not respond to commands using the custom set, the Alternate Protocol Control Codes can be restored by the following procedure:
1. Turn the printer off.
2. Place DIP switch DS2-7 in the ON position.
3. Turn power on while simultaneously pressing the FEED and LINE switches.
4. 4 When the message “ALT PROTOCOL DEFAULT COMPLETED” appears on the display, turn the printer off.
5. When the printer is powered up again, the Alternate Protocol Command Code set will be active. All previous custom settings will be lost.
Page D-2 PN 9001096 Preliminary SATO Programming Reference
Appendix D: Custom Protocol Command Codes
DOWNLOAD PROCEDURE
The procedure for downloading a custom Protocol Command Code set is:
1. Reset the printer to the default settings using the Reset procedure.
2. Place DIP switch DS2-7 in the ON position.
3. Turn the POWER switch ON while simultaneously pressing the LINE switch. This places the printer in the USER DOWNLOAD mode.
4. Set DIP switch DS2-7 in the position to accept the Protocol Control codes to be used for downloading (i.e. DS2-7 = OFF for Standard codes and DS2-7 ON to use the Alternate set).
5. Press the LINE key to place the printer in the ON-LINE mode. The LINE LED should be on and the printer is ready to receive the download command data stream.
6. After the command has been sent, the unit will beep and print a status label. If it does not beep and print the label, the printer did not accept the data.
7. If the printer does not beep and print a setting label, turn the printer off, check your download command stream for errors and start the download process over at step 1.
8. If the custom codes are correct, press the FEED key to accept them and terminate the download process. If they are incorrect, turn the unit off without pressing the FEED key and begin the download process again at step 1.
SATO Programming Reference PN 9001096 Preliminary Page D--3
Appendix D: Custom Protocol Command Codes
Page D-4 PN 9001096 Preliminary SATO Programming Reference
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 8 The SATO Programming Language
- 8 Selecting Protocol Control Codes
- 8 Using Basic
- 8 The Print Area
- 8 Rotated Fields
- 8 Command Default Settings
- 8 Opposite Hand “Se” Printers
- 9 Bar Codes
- 9 Bar Codes, Expansion
- 9 Bar Codes, Variable Ratio
- 9 Base Reference Point
- 9 Characters,Custom-Designed
- 9 Character Expansion
- 9 Character, Fixed Spacing
- 9 Character Pitch
- 9 Character, Proportional Spacing
- 9 Clear Print Job(s) & Memory
- 9 Continuous Forms Printing
- 9 Copy Image Area
- 9 Cut Job
- 9 Cut Last
- 9 Fonts U, S, M, OA, OB, XU, XS & XM
- 9 Font, Raster
- 9 Font, Vector
- 9 Fonts WB, WL, XB & XL
- 9 Form Feed
- 9 Form Overlay, Recall
- 9 Form Overlay, Store
- 87 Graphics, Custom
- 87 Graphics, BMP
- 87 Graphics, PCX
- 87 Job ID Store
- 87 Job Name
- 87 Journal Print
- 87 Lines and Boxes
- 87 Line Feed
- 87 Media Size
- 87 Mirror Image
- 87 Off-Line/Pause
- 87 Postnet
- 87 Print Darkness
- 87 Print Length, Expanded
- 87 Print Position
- 87 Print Quantity
- 87 Print Speed
- 87 Repeat Label
- 87 Replace Data (Partial Edit)
- 87 Reverse Image
- 87 Rotate, Fixed Base Reference Point
- 87 Sequential Numbering
- 87 Start/Stop Label
- 88 Calendar Increment
- 88 Calendar Print
- 88 Calendar Set
- 89 Expanded Memory Clear Expanded Memory
- 89 Expanded Memory Fonts, TrueType Recall
- 89 Expanded Memory Fonts, TrueType Store
- 89 Expanded Memory Format/Field Recall
- 89 Expanded Memory Format/Field Store
- 89 Expanded MemoryForm Overlay Recall