In this chapter, the basic concept of SLCS and some information necessary for the
programmer to use SLCS will be explained. Please read this part before starting
programming for efficient and easy use of SATO BARCODE PRINTERS.
We at SATO maintain ongoing efforts to enhance and upgrade the functions and quality of
all our products. In following, product specifications and/or user manual content may be
changed without prior notice.
Ver. 1.00
SLCS Programming Manual
- 5 -
…
.
.
.
.
.
.
…
832 dots(104mm = 4inch)
1216 dots(152mm = 6inch)
Image Buffer
1-1 Image Buffer Configuration
1) Maximum size
A) When using Double Buffering Function
832dots × 1216dots (104mm × 152mm) = 4 inch × 6 inch
B) When using Single Buffering Function
832dots × 2432dots (104mm × 304mm) = 4 inch × 12 inch
2) Dot size : 0.125mm(W) × 0.125mm(H) (203dpi)
.
…
.
Ver. 1.00
- 6 -
1-2 Information for calculating position on image buffer
Inch
mm
dots
Resolution
0.04 1 8
0.40
10.00
80
1.00
25.40
203
1.25
31.75
254
1.50
38.10
305
1.75
44.45
355
2.00
50.80
406
2.25
57.15
457
2.50
63.50
508
2.75
69.85
556
3.00
76.20
610
4.00
101.6
813
Font name
Width × Height (dots)
0
09 ×15
1
12 ×20
2
16 ×25
3
19 ×30
4
24 ×38
5
32 ×50
6
48 ×76
7
22 × 34
8
28 × 44
9
37 × 58
Korean a
16 ×16(ascii:9×15)
Korean b
24 ×24(ascii:12×24)
Korean c
20 × 20(ascii:12×20)
Korean d
26 × 26(ascii:16×30)
Korean e
20 × 26(ascii:16×30)
Korean f
38 × 38(ascii:22×34)
GB2312 m
24 × 24(ascii:12×24)
BIG5 n
24 × 24(ascii:12×24)
Vector
Scalable
1) Relation between position and number of dots
SLCS Programming Manual
2) Font Information
203 dpi
Ver. 1.00
- 7 -
3) Example of text and barcode
SATO
PV3
(0.0)
Direction of x axis
Direction of y axis
(
(
(
(0.0)
Direction of x axis
Direction of y axis
ABCD
ABCD
ABCD
Start Position
Start Position
Start Position
Start Position
SLCS Programming Manual
124 , 160)
124 , 356)
4) Example of rotation
0°
503 , 160)
270°
90°
180°
Ver. 1.00
SLCS Programming Manual
- 8 -
1. Commands for Designing Label
T
Text
Draw text string on the image buffer
Enable or Disable double buffering
function
3. Printer Setting Commands
SP
SA
4. Variable related Commands
SV
?
1-3 Command List
Command Description Remarks Page
V
B1
B2
B3
BD
CD
CS
P
Text (Vector Font) Draw text string on the image buffer
1d barcode Draw 1D Barcode on the image buffer
2d barcode Draw 2D Barcode on the image buffer
Special barcode Draw special barcode on the image buffer
Block Draw Draw line or box on the image buffer
Circle Draw Draw circle on the image buffer
Character Set selection Select international code table
Print Start printing the content of image buffer
2. Media & Buffer related Commands
ST
SM
SF
SL
SW
Set Print Type Select Thermal Direct / Transfer printing
Set Margin Set the marginal value of the image buffer
Set Back-feed Option Set back-feeding option
Set Label Length Set length of label
Set Label Width Set length of label
SB
CB
SS
SD
SO
TA
SC
AC
Set Buffer mode
Clear Buffer Clear image buffer
Set Speed Set printing speed
Set Density Set printing density from level 0 to 20
Set Orientation Set printing direction
Set serial Port Set serial port configurations
Set Offse t Set offset value
Set Tear-off/Cut Set Tear-off/Cut value
Set Counter Used in Template sequence
Set Counter Used in normal mode
Set Var iable Used in Template sequen ce
Get variables Get content of variables and counters
PV
Print with Variable Use this command in Template
Ver. 1.00
SLCS Programming Manual
- 9 -
5. Template Related Commands
Delete stored Template from printer
memory
6. Image Data Related Commands
ID
Image D elete
Delete stored image
Draw bitmap image data on the image
buffer
Compression bitmap data
draw
Draw compression bitmap image data on
specific position of image buffer
BMP
BMP form at file draw
Draw BMP format file on the image buff er
7. Downloadable Font Related Commands
Downloadable font
Information
8. The Others
Cutting is executed after Printing is finished
command
Command Description Remarks Page
TS
TE
TR
TD
TI
IS
IR
II
LD
LC
Template store Start
Template store End
Template Recall Load and reuse the stored Template
Template Delete
Template Information Print the list of currently stored Templates
Image Store PCX format image file can be stored
Image R ecall Load and reuse the stored image
Image Inform ation Print the list of currently stored images
Bitmap data draw
All contents between these commands are
saved in printer memory
DT
DD
DI
@
PI
CUT
^cp
^cu
^PI
Download True T ype font Windows system font used
Downloadable font Delete Delete downloaded font
Print the list of currently stored images
Reset printer Initialize the printer
Printer Information Pr int current setting of printer
Enable/Disable Cutter option
Check Printer Status Return 2 bytes status values to host
Check Printer Status Return 1 byte status value to host
Send Printer information Send various information to host
if cutting option is enabled by this
Ver. 1.00
SLCS Programming Manual
- 10 -
1-4 Programming Considerations
1) All commands are case-sensitive and some commands require one or more parameters
and ‘Data’.
2) Command Conventions
Tp1,p2,p3,p4,p5,p6,p7,p8,p9,’TEXT DATA’
ParametersCommand Specific Data
Command
3) Each command line must be terminated with a ‘CR’(0Dh, 13) + ‘LF’(0Ah,10).
4) The commands which draw text, barcode, lines… just draw on the image buffer, they do
not start printing. The printer will start printing when the P command comes.
! Caution
The ‘P’ command must be terminated by ‘CR’(0x0d). If not, the printer will not start
printing until ‘CR’ comes.
Ver. 1.00
SLCS Programming Manual
- 11 -
2. Detail Description
2-1 Commands for Designing a Label
These commands are used to design a label by providing text, barcode, line, box… and to
print content of image bu ffer on media.
1) T
Draw Text String on the image buffer.
2) V Draw Text (Vector Font) String on the image buffer.
3) B1
Draw 1D Barcode on the image buffer.
4) B2
Draw 2D Barcode on the image buffer.
5) B3
Draw Special Barcode on the image buffer.
6) BD
Draw Line, Block, Box & Slope on the image buffer.
7) CD
Draw Circle on the image buffer.
8) CS
Set Code page and ICS( International Character Set).
9) P
Start printing the content of the image buffer.
Ver. 1.00
- 12 -
2-1-1 T (Text String)
Value
Font Size(pt)
Width × Height(dots)
0
6
9 × 15
1
8
12 × 20
2
10
16 × 25
3
12
19 × 30
4
15
24 × 38
5
20
32 × 50
6
30
48 × 76
7
14
22 × 34
8
18
28 × 44
9
24
37 × 58
a
KOREAN 1
16 × 16 (ascii 9×15)
b
KOREAN 2
24 × 24 (ascii 12×24)
c
KOREAN 3
20 × 20 (ascii 12×20)
d
KOREAN 4
26 × 26 (ascii 16×30)
e
KOREAN 5
20 × 26 (ascii 16×30)
f
KOREAN 6
38 × 38 (ascii 22×34)
m
GB2312
24 × 24 (ascii 12×24)
n
BIG5
24 × 24 (ascii 12×24)
j
Shift JIS
24 × 24 (ascii 12×24)
♣
Value
Rotation
0
No Rotation
1
90 degrees
2
180 degrees
3
270 degrees
Description
Draw text string on the image buffer
Syntax
Tp1,p2,p3,p4,p5,p6,p7,p8,p9(,p10),’DATA’
Parameters
p1 : Horizontal position (X) [dot]
p2 : Vertical position (Y) [dot]
p3 : Font selection
SLCS Programming Manual
A to Z are assigned to Downloadable font. Refer to DT command.
Plus(+)/Minus(-) option can be used. Ex) 5, +3, -10…
p7 : Rotation
p8 : Reverse printing
N : Normal printing R : Reverse printing
Ver. 1.00
SLCS Programming Manual
- 13 -
♣
♣
♣
p9 : Bold
N : Normal B : Bold
p10 : Text Alignment
F : p1 means the position of the first character in text string - Left alignment
L : p1 means the position of the last character in text string - Right alignment
R: Write text sting form ri ght to left.
(SATO → OTAS)
This parameter is for alignment of text lines.
‘DATA’ : The various data types can be used in the data field as followings.
1) Fixed text string : ‘ Text String’
2) Var iables declared in template by SV command : Vnn
3) Counters declared by the SC command : Cn
1) , 2) and 3) can be mixed together
Example
T50,100,3,1,1,0,0,N,N,’ SATO Label Printer’
T50,100,3,1,1,0,0,N,N,’Manufacturer :’V00
T50,100,3,1,1,0,0,N,N,V00
T50,100,3,1,1,0,0,N,N,’Manufacturer :’C0
T50,100,3,1,1,0,0,N,N,C0
If you want to print ’or \ then you must type like \’ or \\ .
p4 : Font width (W)[dot]
p5 : Font height (H)[dot]
p6 : Right-side character spacing [dot]
Plus (+)/Minus (-) option can be used. Ex) 5, +3, -10…
p7 : Bold
N : Normal B : Bo ld
p8 : Reverse printing
N: Normal printing R: Reverse printing
p9 : Text styl e
N: Normal I: Italic
p10 : Rotation
p11: T ext Alignment (Optional)
Ver. 1.00
L: p1 means the position of the first character in the tex t string - Left alignment
R: p1 means the posi tion of the last character in the tex t string - Right alignment
C: p1 means the posi tion of the center charact er in the text strin g - Center ali g nm e nt
SLCS Programming Manual
- 16 -
♣
p12: Text string write direction
0: Write text string form left to right (SATO)
1: Write text string form right to left (OTAS)
‘DATA’: The various data types can be used in the data field as follows.
1) Fixed text string: ‘Text String’
2) Var iables declared in template by SV command: Vnn
V50,400,U,45,25,+1,N,N,N,0,L,0,'Vector Font Test' C0
V50,500,U,25,45,+1,N,N,N,0,L,0, C0
♣
To print ’or \, \’ or \\ must be typed.
Ver. 1.00
- 17 -
Example
V50,100,U,25,25,+1,N,N,N,0,L,0,'Vector Font Test'
V50,200,U,35,35,-1,N,N,N,0,L,0,'Vector Font Test'
V50,300,U,35,35,+1,B,R,I,0,L,0,'Vector Font Test '
V50,400,U,45,25,+1,N,N,N,0 ,L,0,'Vector Font Test'
V50,500,U,25,45,+1,N,N,N,0,L,0,'Vector Font Test'
V50,700,U,65,65,+1,N,N,N,0,L,0,'ABCDEFGHIJKLMNO'
V50,900,U,65,65,+1,N,N,N,0,L,0,'abcdefghijklmno'
P1
Result
SLCS Programming Manual
Ver. 1.00
- 18 -
2-1-3 B1 (1 Dimensional bar code)
p3
Barcode
p3
Barcode
0
Code39
9
UCC/EAN128
1
Code128
10
Code11
2
Interleaved 2of5
11
Planet
3
Codabar
12
Industrial 2of5
4
Code93
13
Standard 2of5
5
UPC-A
14
Logmars
UPC/EAN
Extensions
7
EAN13
16
Postnet
8
EAN8
Value
Rotation
0
No Rotation
1
90 degrees
2
180 degrees
3
270 degrees
Description
Draw 1D Barcode on the image buffer
Syntax
B1p1,p2,p3,p4,p5,p6,p7,p8(,p9),’DATA’
Parameters
p1 : Horizontal position (X) [dot]
p2 : Vertical position (Y) [dot]
p3 : Barcode selection
SLCS Programming Manual
6 UPC-E 15
p4 : Narrow bar width [dot]
p5 : Wide bar width [dot]
p6 : Barcode height [dot]
p7 : Rotation
p8 : HRI (Human Readable Interpretation)
0 : Not printed
1 : Below the barcode(Font Size : 1)
2 : Above the barcode(Font Size : 1)
3 : Below the barcode(Font Size : 2)
4 : Above the barcode(Font Size : 2)
Ver. 1.00
5 : Below the barcode(Font Size : 3)
6 : Above the barcode(Font Size : 3)
7 : Below the barcode(Font Size : 4)
8 : Above the barcode(Font Size : 4)
(p9) : quiet zone width(optional) : 0 ~ 20
SLCS Programming Manual
- 19 -
♣
♣
Quiet zone is added to the front and end of the barcode for safe scanning.
Because of the quiet zone, the barcode seems to be seen drawn in incorrect
position. If p9 is not used, the printer automatically sets parameter to 0.
‘DATA’ : The various data types can be used in the data field as followings.
1) Fixed text string : ‘ Text String’
2) Var iable declared in template by SV command : Vnn
3) Counter declared by the SC command : Cn
4) In the Code 128, when send data to printer if codeset selection commands
Quiet zone with = p9 × narrow bar width(p4)
(>A,>B,>C) will be used codeset can be selected.
By using >A, Codeset will be set Codese t A.
By using >B, Codeset will be set Codeset B.
By using >C, Codeset will be set Codeset C.
If Codeset select command is not used, automatically set to Auto-mode.
p8 : Number of symbols for structured append: 1 ~ 26
p9 : Optional ID field for structured append: ID field string (Maximum 24 character)
p10 : Rotation
‘DATA’ : ASCII data or Binary data.
Example
B2100,100,A,5,0,0,0,1,1,0,'THIS IS AZTEC BARCODE TESTTHIS IS AZTEC BARCODE TEST'
B2400,100,A,7,0,0,0,1,1,1,'THIS IS AZTEC BARCODE TESTTHIS IS AZTEC BARCODE TEST'
Ver. 1.00
- 27 -
Code 49 Barcode(When p3 is F)
Value
Rotation
0
Regular Alphanumeric Mode
1
Multiple Read Alphanumeric
2
Regular Numeric Mode
3
Group Alphanumeric Mode
4
Regular Alphanumeric Shift 1
5
Regular Alphanumeric Shift 2
7
Automatic Mode
Value
Rotation
0
No Rotation
1
90 degrees
2
180 degrees
3
270 degrees
p1 : Horizontal position (X) [dot]
p2 : Vertical position (Y) [dot]
p3 : F (means ‘Code 49 barcode’)
p4 : Narrow bar width [dot]
p5 : Wide bar width [dot]
p6 : Barcode height [dot]
p7 : HRI
0 : Not Printed
1 : Below the barcode
2 : Above the barcode
CODABLOCK F mode uses the Code 128 character set and
Automatically adds Function 1.(FNC1)
Mode
Value
A
1 ~ 18
E
2 ~ 4
F
2 ~ 4
Value
Rotation
0
No Rotation
p1 : Horizontal position (X) [dot]
p2 : Vertical position (Y) [dot]
p3 : C (means ‘CODABLOCK barcode’)
p4 : Narrow bar width [dot]
p5 : Wide bar width [dot]
p6 : Barcode height [dot]
p7 : Security level
0 : Disable
1 : Enable
p8 : Number of characters per row (data columns): 2~62
p9 : Mode
SLCS Programming Manual
F
p10 : Number of rows to encode
p11 : Ro tat io n
‘DATA’ : ASCII data or Binary data.
Example
B210,100,C,2,5,30,0,30,F,4,0,'SATOPV3 BARCODE TEST 123 SATOPV3 BARCODE TEST 123
SATOPV3 BARCODE TEST 123 SATOPV3 BARCODE TEST 123'
B210,400,C,2,5,30,0,30,E,4,0,' SATOPV3 BARCODE T EST 123 SATOPV3 BARCO DE TEST 123
SATOPV3 BARCODE TEST 123 SATOPV3 BARCODE TEST 123'
B210,600,C,2,6,10,0,10,A,18,0,'123'