5.2 GAP .............................................................................................................................................. 6
6.1 BAR ............................................................................................................................................ 43
6.21 TEXT .......................................................................................................................................... 85
10.5 END .......................................................................................................................................... 128
10.15 PUT .......................................................................................................................................... 139
10.16 GET .......................................................................................................................................... 140
10.31 REM ......................................................................................................................................... 159
10.32 OUT .......................................................................................................................................... 160
12 Printer Global Variables.............................................................................................................................. 229
12.4 DAT E ........................................................................................................................................ 232
17 RFID .............................................................................................................................................................. 268
2. Only integer portion will be used. Ex. 2 mm = 23.6 dots then 23 dots will be used.
3
4 Supported Printers
Series Models
TD-4420TN/4520TN
TD-4T series
TD-4650TNWB/4750TNWB/4650TNWBR/4750TNWBR
RJ series RJ-2035B/2055WB/3035B/3055WB
TJ- series TJ-4020TN/4021TN/4021TNR/4120TN/4121TN/4121TNR
For more information, see Appendix A: Command List by Model
.
4
SIZE m[,n]
in inches
SIZE m mm[,n mm]
in mm
SIZE m dot[,n dot]
in dots
Parameter
Description
M
Label width (inch/ mm/ dot)
[N]
Label length (inch/ mm/ dot), Optional
Sample Code
Result
5 Setup and System Commands
5.1 SIZE
Description
Define the label width and length.
Syntax
Note :
203 dpi : 1 mm = 8 dots
300 dpi : 1 mm = 12 dots
600 dpi : 1 mm = 24 dots
For metric and dot systems, there must be a space between parameter and “mm” or “dot”.
Example
In inches:
SIZE 3.5,3.00
In mm:
SIZE 100 mm,100 mm
See Also
GAP, BLINE
5
GAP m,n
in inches
GAP m mm,n mm
in mm
GAP m dot,n dot
in dots
Parameter
Description
M
The gap distance between two labels
0 ≤ m ≤5 (inch), 0 ≤ m ≤ 127 (mm)
N
The offset distance of the gap
n ≤ label length (inch or mm)
0, 0
Continuous label
GAP command to the printer first.
5.2 GAP
Description
Define the gap distance between two labels.
Syntax
0 ≤ m ≤1 (inch), 0 ≤ m ≤ 25.4 (mm)
Note :
203 dpi : 1 mm = 8 dots
300 dpi : 1 mm = 12 dots
600 dpi : 1 mm = 24 dots
For metric and dot systems, make sure you add a space between parameter and mm.
When the sensor type is changed from "Black Mark" to "GAP", make sure you send the
6
Sample Code
Result
Normal gap
Normal gap
Special gap
Special gap
Example
In inches:
In mm:
Continuous label:
GAP 0.12,0
GAP 3 mm,0 mm
GAP 0,0
See Also
SIZE, BLINE
In inches
GAP 0.30,0.10
In mm
GAP 7.62 mm,2.54 mm
7
Parameter
Description
X
Paper length (in dots)
Y
Gap length (in dots)
5.3 GAPDETECT
Description
Feed the paper through the gap sensor to determine the paper and gap sizes, respectively. This command
references the user’s approximate measurements. If the measurements conflict with the actual size, the
GAPDETECT command will not work properly. This calibration method can be applied to the labels with preprinted logos or texts.
Syntax
GAPDETECT [x,y]
Note:
If the x, y parameters are ignored then the printer will calibrate and determine the paper length and gap
size automatically.
See Also
GAP, SIZE, BLINEDETECT, AUTODETECT
8
Parameter
Description
x
Paper length (in dots)
y
Gap length (in dots)
5.4 BLINEDETECT
Description
Feed the paper through the black mark sensor to determine the paper and black mark sizes, respectively.
This command references the user’s approximate measurements. If the measurements conflict with the
actual size, the BLINEDETECT command will not work properly. This calibration method can be applied to
the labels with pre-printed logos or texts.
Syntax
BLINEDETECT [x,y]
Note:
If the x, y parameters are ignored then the printer will calibrate and determine the paper length and gap
size automatically.
See Also
GAP, SIZE, GAPDETECT, AUTODETECT
9
Parameter
Description
x
Paper length (in dots)
y
Gap length (in dots)
5.5 AUTODETECT
Description
Feed the paper through the gap/black mark sensor to determine the paper and gap/black mark sizes,
respectively. This command references the user’s approximate measurements. If the measurements conflict
with the actual size, the AUTODETECT command will not work properly. This calibration method can be
applied to the labels with pre-printed logos or texts.
Syntax
AUTODETECT [x,y]
Note:
If the x, y parameters are ignored then the printer will calibrate and determine the paper
length and gap/black mark size automatically.
The printer will detect the label by the proper sensor type. When using this command, make
sure GAP or BLINE command are not used in your program.
See Also
GAP, SIZE, GAPDETECT, BLINEDETECT
10
BLINE m,n
in inches
BLINE m mm,n mm
in mm
BLINE m dot,n dot
in dots
Parameter
Description
m
The height of black line either in inch or mm
0 ≤ m ≤5 (inch), 0 ≤ m ≤ 127 (mm)
n
The extra label feeding length
0 ≤ n ≤ label length
0,0
Continuous label
600 dpi : 1 mm = 24 dots
Sample Code
5.6 BLINE
Description
Set the height of the black line and the user-defined extra label feeding length each form feed takes.
Syntax
0 ≤ m ≤ 1 (inch), 0 ≤ m ≤ 25.4 (mm)
Note:
For metric system, make sure you add a space between parameter and mm.
When the sensor type is changed from "GAP" to "Black Mark", make sure you send the
GAP command to the printer first.
203 dpi : 1 mm = 8 dots
300 dpi : 1 mm = 12 dots
Example
In inches:
BLINE 0.20,0.50
In mm:
BLINE 5.08 mm,12.7 mm
See Also
SIZE, GAP
11
OFFSET m
In inches
OFFSET m mm
In mm
OFFSET m dot
In dots
Parameter
Description
m
The offset distance (inch or mm)
600 dpi : 1 mm = 24 dots
Sample Code
5.7 OFFSET
Description
Define the selective, extra label feeding length each form feed takes, which, especially in peel-off mode and
cutter mode, is used to adjust label stop position, so as for label to register at proper places for the intended
purposes. The printer back tracks the extra feeding length before the next run of printing.
Syntax
-1 ≤ m≤ 1 (inch)
Note:
If offset value is incorrect, it may create a paper jam.
For metric system, make sure you add a space between parameter and mm.
203 dpi : 1 mm = 8 dots
300 dpi : 1 mm = 12 dots
Example
In inches:
OFFSET0.5
In mm:
OFFSET 12.7 mm
See Also
SIZE, GAP, SET PEEL, SET CUTTER
12
Parameter
Description
n
Printing speed in inch per second
3.5
TD-4420TN
V V V V V V
TD-4520TN
V V V V V
TD-4650TNWB, TD-4650TNWBR
V V V V V V V V
TD-4750TNWB, TD-4750TNWBR
V V V V V V
RJ-2035B, RJ-2055WB
V V V V V
RJ-3035B, RJ-3055WB
V V V V V
TJ-4020TN, TJ-4021TN, TJ-4021TNR
V V V V V V V V V V V
TJ-4120TN, TJ-4121TN, TJ-4121TNR
V V V V V V V V
TJ-4420TN, TJ-4422TN
V V V V V V V V V V V V V
TJ-4520TN, TJ-4522TN
V V V V V V V V V V V
TJ-4620TN
V V V V V V
Sample code
5.8 SPEED
Description
Define the print speed.
Syntax
SPEED n
Model / IPS 1 1.5 2 2.5 3
Example
SPEED 10
See Also
DENSITY
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
13
Parameter
Description
n
0~15
15: the darkest level
Sample code
5.9 DENSITY
Description
Set the printing darkness.
Syntax
DENSITY n
Note:
Default DENSITY setting is 8.
Example
DENSITY 7
0: the lightest level
14
Parameter
Description
n
0 or 1. See the illustrations below
m
0: Print normal image
1: Print mirror image
Sample code
5.10 DIRECTION
Description
Define the printout direction and mirror image. This will be stored in the printer memory.
Syntax
DIRECTION n[,m]
Example
See Also
REFERENCE
DIRECTION 0
DIRECTION 0,1
15
Parameter
Description
x
Horizontal coordinate (in dots)
y
Vertical coordinate (in dots)
600 dpi : 1 mm = 24 dots
Sample code
5.11 REFERENCE
Description
Define the reference point of the label. The reference point varies depending on the print direction.
Syntax
REFERENCE x, y
Note:
203 dpi : 1 mm = 8 dots
300 dpi : 1 mm = 12 dots
Example
REFERENCE 10,10
See Also
DIRECTION
16
Parameter
Description
x
Optional. The maximum value is 1 inch.
Y
The maximum value is 1 inch.
Sample Code
5.12 SHIFT
Description
Move the label’s horizontal and vertical position. A positive value moves the label further from the printing
direction; a negative value moves the label towards the printing direction.
Syntax
SHIFT [x,] y
• 200 dpi: –203 to 203 (in dots)
• 300 dpi: -300 to 300 (in dots)
• 200 dpi: –203 to 203 (in dots)
• 300 dpi: -300 to 300 (in dots)
Example
SIZE 4,2.5
GAP 2 mm,0
DIRECTION 0
SHIFT 36
OFFSET 0
CLS
TEXT 400,200,"3",0,1,1,"DIRECTION 0"
TEXT 400,250,"3",0,1,1,"SHIFT 36"
BOX 10,0,780,490,8
PRINT 3,1
17
Result
See Also
OFFSET, REFERENCE
18
Parameter
Description
n
001
USA
003
Spanish (Latin America)
007
Russia
031
Dutch
033
French (France)
034
Spanish
061
English (international)
Sample code
5.13 COUNTRY
Description
Specify a language for an external USB keyboard.
Syntax
PRINT m[,n]
Example
COUNTRY 001
See Also
CODEPAGE, ~!I
19
Parameter
Description
n
Name or number of code page, which can be divided into 7-bit code page and
8-bit code page.
7-bit
8-bit
Windows
ISO
n
Name
n
Name
n
Name
n
Name
Japanese
Shift-JIS
Traditional
Chinese Big5
Note:
5.14 CODEPAGE
Description
Define the code page of international character set.
Syntax
CODEPAGE n
USA USA 437 United States 1250 Central Europe 8859-1 Latin 1
BRI British 737 Greek 1251 Cyrillic 8859-2 Latin 2
GER German 850 Multilingual 1252 Latin I 8859-3 Latin 3
FRE French 851 Greek 1 1253 Greek 8859-4 Baltic
DAN Danish 852 Slavic 1254 Turkish 8859-5 Cyrillic
ITA Italian 855 Cyrillic 1255 Hebrew 8859-6 Arabic
SPA Spanish 857 Turkish 1256 Arabic 8859-7 Greek
SWE Swedish 860 Portuguese 1257 Baltic 8859-8 Hebrew
The data length determines 7-bit or 8-bit communications parameter.
The mismatched encoding might result in garbled printing or missing text.
• Check if the printer’s CODEPAGE setting matches the print data encoding.
• Check if the font is compatible with the current printer’s CODEPAGE setting.
Change the printer’s CODEPAGE setting or the font if needed.
20
Download the COUR.TTF into printer by Brother Printer Management Tool (BPM)
Example
21
Sample Code
Result
DOWNLOAD "TEST.BAS"
str1$ = " "
J = 0
y = 50
CODEPAGE 1252
SIZE 4,3
GAP 0,0
DIRECTION 1
CLS
TEXT
10,10,"COUR.TTF",0,12,12,"CODEPAGE
1252"
FOR I=32 TO 255
str1$=str1$+CHR$(I) + " "
J=J+1
IF J=16 THEN GOSUB drawTEXT
NEXT
PRINT 1
END
drawTEXT:
TEXT 10,y,"COUR.TTF",0,12,12,str1$
str1$=" "
J=0
y=y+40
RETURN
EOP
TEST
See Also
COUNTRY, ~!I
22
Parameter
Description
None
N/A
Sample code
5.15 CLS
Description
Clear the image buffer.
Syntax
CLS
Note:
Make sure you use this command after SIZE command.
Example
CLS
See Also
SIZE, GAP, BLINE
23
Parameter
Description
n
unit: dot
1 ≤ n ≤ 9999
Sample code
5.16 FEED
Description
Feed the label for the specified distance. The length is specified in dots.
Syntax
FEED n
Note:
203 dpi : 1 mm = 8 dots
300 dpi : 1 mm = 12 dots
600 dpi : 1 mm = 24 dots
Example
FEED 40
See Also
BACKFEED, SIZE, GAP, BLINE, HOME, FORMFEED
24
Parameter
Description
n
unit: dot
1 ≤ n ≤ 9999
Note:
Sample code
5.17 BACKFEED
Description
Backfeeds the label for the specified distance. The length is specified in dots.
Syntax
BACKFEED n
•203 dpi: 1 mm = 8 dots
300 dpi : 1 mm = 12 dots
600 dpi : 1 mm = 24 dots
•If the parameter is incorrect, it may create paper jam or wrinkle.
Example
BACKFEED 40
See Also
FEED, SIZE, GAP, BLINE, HOME, FORMFEED
25
Parameter
Description
None
N/A
Sample code
FORMFEED
Result
Paper feed direction
5.18 FORMFEED
Description
Feed the label to the beginning of the next label.
Syntax
FORMFEED
Note:
Make sure you use this command after SIZE command.
Example
SIZE 4,2.5
GAP 2 mm,0
DIRECTION 1
FORMFEED
CLS
TEXT 25,25,"3",0,1,1, "
COMMAND TEST"
PRINT 1,1
See Also
FEED, SIZE, GAP, BLINE, HOME, BACKFEED
26
Parameter
Description
None
N/A
Sample code
5.19 HOME
Description
Feed the label until the internal sensor has determined the origin.
Syntax
HOME
Note:
Make sure you define the size and gap of the label before using this command.
Example
SIZE 4,2.5
GAP 2 mm,0
SET COUNTER @0 +1
@0="000001"
HOME
CLS
BOX 1,1,360,65,12
TEXT 25,25,
TEXT 25,80,
PRINT 3,1
"3",0,1,1,"HOME COMMAND TEST" "3",0,1,1,@0
See Also
FEED, SIZE, GAP, BLINE, FORMFEED
27
Parameter
Description
m
Number of label set
n
Number of label copies
1 ≤ n ≤ 999999999
Sample code
Result
Paper feed direction
1 set, 2 copies
5.20 PRINT
Description
Print the label format currently stored in the image buffer.
Syntax
PRINT m[,n]
1 ≤ m ≤ 999999999
Example
SIZE 50 mm,25 mm
GAP 3 mm,0
DIRECTION 1
SET COUNTER @1 1
@1="0001"
CLS
TEXT 10,10, "3",0,1,1,@1
PRINT 3,2
See Also
SET COUNTER, INPUT, DOWNLOAD
28
Parameter
Description
level
Sound level: 0~9
interval
Sound interval: 1~4095 (in milliseconds)
Sample code
5.21 SOUND
Description
Control the sound frequency of the beeper. There are 10 levels of sounds. The timing control can be set by
the "interval" parameter.
Activate the cutter to immediately cut the labels without backfeeding the label.
Syntax
CUT
Example
SIZE 3,3
GAP 0,0
CLS
BOX 0,0,866,866,5
TEXT 100,100, "5",0,1,1, "FEED & CUT"
TEXT 100,200, "5",0,1,1, "300 dpi"
PRINT 1,1
FEED 260
CUT
See Also
SET CUTTER, SET BACK, SET PARTITAL_CUTTER
30
LIMITFEED n[,minpaper,maxgap]
In inches
LIMITFEED n mm[,minpaper mm,maxgap mm]
In mm
LIMITFEED n dot[,minpaper dot,maxgap dot]
In dots
Parameter
Description
N
The maximum length for the sensor detection
Minpaper
The minimum length of paper
Maxgap
The maximum length of gap
Note:
Sample code
5.23 LIMITFEED
Description
If the gap sensor is not set to a suitable sensitivity while feeding labels, the printer will not be able to locate
the correct position of the gap. This command stops label feeding and makes the red LED flash if the printer
does not locate gap after feeding the length of one label plus one preset value.
Syntax
The setting will remain resident in memory.
For metric system, make sure you add a space between parameter n and mm.
The default value is 10 inches when the printer is initialized.
Example
In inches
LIMITFEED 12
31
Parameter
Description
page
None: Print the whole printer information.
BT: Print the Bluetooth configuration.
5.24 SELFTEST
Description
Print the printer information.
Syntax
SELFTEST [page]
Example
PATTERN: Print a pattern to check the print head status.
ETHERNET: Print the Ethernet configuration.
WLAN: Print the Wi-Fi configuration.
RS232: Print the RS-232C serial port configuration.
SYSTEM: Print the printer configuration.
Z: Print the emulated language settings.
32
Sample code
Result
SELFTEST
SELFTEST PATTERN
SELFTEST ETHERNET
33
SELFTEST WLAN
SELFTEST RS232
SELFTEST SYSTEM
SELFTEST PRINTER
SELFTEST Z
SELFTEST BT
34
Sample Code
Result
Paper feed direction
without stop
5.25 EOJ
Description
Let the printer wait until process of commands (before EOJ) be finished then go on the next command.
Syntax
EOJ
Example
SIZE 4,0.2
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"3",0,1,1,"Two labels are printed without stop."
PRINT 1
PRINT 1
SIZE 4,0.2
GAP 0,0
CLS
TEXT 10,10,"3",0,1,1,"Printer stops before next printing."
PRINT 1
EOJ
PRINT 1
35
Parameter
Description
ms
Set the print delay time in milliseconds. 1000 ms = 1 second.
Sample Code
Result
5.26 DE LAY
Description
Define the period of time for the printer to wait before processing the next command.
Syntax
DELAY ms
Example
SIZE 4,0.7
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"3",0,1,1,"The delay time between two labels is 3 seconds."
TEXT 10,60,"3",0,1,1,"Now second:" +@SECOND
PRINT 1
DELAY 3000
PRINT 1
36
Parameter
Description
Display the image in printer’s image buffer on the LCD
panel.
OFF
Set the color (decimal) for item and background in the
printer’s image buffer on the LCD panel
x,y,width,height
x,y,width,height, thick, radius
Display the .bmp in the printer’s image buffer on the LCD
panel
x,y,”font”,”content”
x,y,”font”,rotate,”content”
x,y,”font”,rotate,multi,”content”
x,y,”font”,rotate,x-multi,ymulti,”content”
x,y,”font”,rotate,x-multi,ymulti,align,”content”
forecolor
backcolor
x
y
width
height
thick
radius
bmpfile
font
rotate
x-multi
y-multi
5.27 DISPLAY
Description
Display the image, which is in the printer’s image buffer, on the LCD panel.
Syntax
DISPLAY IMAGE/OFF/CLS/……
IMAGE
Disable this function.
CLS
forecolor,backcolor
x,y,width,height, thick
x,y,”bmpfile”
Display the background color and clear the items in the
printer’s image buffer on the LCD panel.
Draw the bar in the printer’s image buffer on the LCD
panel
Display the text in printer’s image buffer on the LCD panel
RGB color code for text or bar (decimal)
RGB color code for background (decimal)
Horizontal multiplication
Vertical multiplication
Frame width
Frame height
Frame thickness
Frame radius
.bmp file name
Font name
Rotation (0, 90, 180, and 270 valid)
Horizontal multiplication
Vertical multiplication
37
content
Note:
Sample code
TEXT 1,10, "1",0,1,1, "Image on
TEXT 1,30, "1",0,1,1,
Result
:
This command only can be performed on the printer with LCD display.
For more information, see Appendix A: Command List by Model.
:MAINLOOP
OPEN "FBPL",0
LIST$ = FREAD$(0, LOF("FBPL"))
CLOSE 0
MENU "FBPL", LIST$, OPTION$
IF LEN(OPTION$) = 0 THEN END
IF OPTION$ = "Speed" THEN SETTING$ =
GETSETTING$("CONFIG","FBPL","SPEED")
IF OPTION$ = "Density" THEN SETTING$ =
GETSETTING$("CONFIG","FBPL","DENSITY")
IF OPTION$ = "Print Mode" THEN SETTING$ =
GETSETTING$("CONFIG","FBPL","PRINT MODE")
IF OPTION$ = "Offset" THEN SETTING$ =
GETSETTING$("CONFIG","FBPL","OFFSET")
IF OPTION$ = "Country" THEN SETTING$ =
GETSETTING$("CONFIG","FBPL","COUNTRY CODE")
IF LOF(OPTION$) <> 0 THEN
OPEN OPTION$,0
LIST$ = FREAD$(0, LOF(OPTION$))
CLOSE 0
MENU OPTION$, LIST$, SETTING$
ELSE
IF OPTION$ = "Offset" THEN INPUT "Offset", SETTING$
ENDIF
IF LEN(SETTING$) <> 0 THEN
IF OPTION$ = "Speed" THEN SPEED VAL(SETTING$)
IF OPTION$ = "Density" THEN DENSITY VAL(SETTING$)
IF OPTION$ = "Print Mode" THEN GOSUB SET_PRINT_MODE
IF OPTION$ = "Offset" THEN OFFSET VAL(SETTING$) / DPI
IF OPTION$ = "Country" THEN GOSUB SET_COUNTRY
ENDIF
GOTO MAINLOOP
:SET_PRINT_MODE
IF SETTING$ = "NONE" THEN SET TEAR OFF
IF SETTING$ = "TEAR OFF" THEN SET TEAR ON
IF SETTING$ = "PEEL OFF" THEN SET PEEL ON
IF SETTING$ = "CUT OFF" THEN SET CUTTER ON
RETURN
41
:SET_COUNTRY
Result
IF SETTING$ = "007" THEN COUNTRY 007
IF SETTING$ = "031" THEN COUNTRY 031
IF SETTING$ = "033" THEN COUNTRY 033
IF SETTING$ = "034" THEN COUNTRY 034
IF SETTING$ = "045" THEN COUNTRY 045
RETURN
EOP
RUN "DEMO.BAS"
42
Parameter
Description
x
The upper left corner x-coordinate (in dots)
y
The upper left corner y-coordinate (in dots)
width
Bar width (in dots)
height
Bar height (in dots)
Note:
Sample code
Result
80
80
100
300
6 Label Formatting Commands
6.1 BAR
Description
Draw a bar on the label format.
Syntax
BAR x,y,width,height
203 dpi : 1 mm = 8 dots
300 dpi : 1 mm = 12 dots
600 dpi : 1 mm = 24 dots
Recommended max. bar height is 12 mm at 4" width. Bar height over 12 mm may damage the
power supply and affect the print quality.
Max. print ratio is different for each printer model. Desktop and industrial printer print ratio is limited
to 20% and 30% respectively.
Example
See Also
BOX
SIZE 50 mm,25 mm
GAP 3 mm,0
DIRECTION 1
CLS
BAR 80,80,300,100
PRINT 1,1
43
Narrow : Width
1:1
1:2
1:3
2:5
3:7
Code 128, switching code subset
automatically
128M
Code 128, switching code subset manually.
V
EAN-128, switching code subset
automatically
EAN128M
EAN-128M, switching code subset manually
V
25
Interleaved 2-of-5
V V V
Length is even
25C
Interleaved 2-of-5 with check digit
V V V
Length is odd
25S
Standard 2-of-5
V V V
25I
Industrial 2-of-5
V V V
Code 39, switching standard and full ASCII
mode automatically
39C
Code 39 with check digit
V V V
93
Code 93
V
EAN13
EAN-13
V
12
EAN13+2
EAN-13 with 2 digits add-on
V
14
EAN13+5
EAN-13 with 5 digits add-on
V
17
EAN8
EAN-8 V 7
EAN8+2
EAN-8 with 2 digits add-on
V
9
EAN8+5
EAN-8 with 5 digits add-on
V
12
CODA
Codabar (NW-7)
V V V
POST
POSTNET
V
5, 9, 11
UPCA
UPC-A
V
11
UPCA+2
UPC-A with 2 digits add-on
V
13
UPA+5
UPC-A with 5 digits add-on
V
16
UPCE
UPC-E
V
6
UPCE+2
UPC-E with 2 digits add-on
V
8
UPE+5
UPC-E with 5 digits add-on
V
11
MSI
MSI V V V
MSIC
MSI with check digit
V V V
PLESSEY
Plessey
V V V
CPOST
Datalogic 2-of-5 (China post)
V
ITF14
ITF-14
V V V
13
EAN14
EAN-14
V
13
11
Code 11 (USD-8)
V V V
TELEPEN
Telepen
V V V
TELEPENN
Telepen number
V V V
PLANET
Planet V
CODE49
Code 49
V
DPI
Deutsche Post Identcode
V V V
11
DPL
Deutsche Post Leitcode
V V V
13
LOGMARS
A special use of Code 39
V V V
6.2 BARCODE
Description
Print barcodes. The available barcodes are listed below:
Code Type Description
Max. data length
128
EAN128
39
V
V
V V V
44
Parameter
Description
X
Specify the x-coordinate barcode on the label
Y
Specify the y-coordinate barcode on the label
code type
128
Code 128, switching code subset A, B, C automatically
128M
Code 128, switching code subset A, B, C manually
Control code
A B C
096
FNC3
FNC3
NONE
097
FNC2
FNC2
NONE
098
SHIFT
SHIFT
NONE
099
CODE C
CODE C
NONE
100
CODE B
FNC4
CODE B
101
FNC4
CODE A
CODE A
102
FNC1
FNC1
FNC1
103
Start (CODE A)
104
Start (CODE B)
105
Start (CODE C)
EAN128
Code 128, switching code subset A, B, C automatically
EAN128M
Code 128, switching code subset A, B, C manually
25
Interleaved 2 of 5
25C
Interleaved 2 of 5 with check digits
25S
Standard 2 of 5
25I
Industrial 2 of 5
39
Code 39 full ASCII for FBPL printers
Auto switch full ASCII and standard code 39 for PLUS models
39C
Code 39 full ASCII with check digit for FBPL printers
Auto switch full ASCII and standard code 39 for PLUS models
Use "!" as a starting character for the control code followed by three control codes. If
the start subset is not set, the default starting subset is B.
45
11
Code 11
TELEPEN
Telepen code
TELEPEN
N
Telepen code. Number only
PLANET
Planet code
CODE49
Code 49
DPI
Deutsche Post Identcode
DPL
Deutsche Post Leitcode
Height
Barcode height (in dots)
human readable
0: not readable
3: human readable aligns to right
rotation
0 : No rotation
270 : Rotated 270 degrees clockwise
narrow
Width of narrow element (in dots)
wide
Width of wide element (in dots)
narrow : wide
1:1
narrow : wide
1:2
narrow : wide
1:3
narrow : wide
2:5
narrow : wide
3:7
128
10x - - - -
EAN128
10x - - - -
EAN128M
10x
25 - 10x
10x
5x - 25C - 10x
10x
5x
-
25S 10x
10x
5x
25I 10x
10x
5x 39 - 10x
10x
5x - 39C - 10x
10x
5x
-
93 - -
10x - -
EAN13
8x - - - -
EAN13+2
8x - - - -
EAN13+5
8x - - - -
EAN 8
8x - - - -
EAN 8+2
8x - - - -
EAN 8+5
8x - - - -
CODA
-
10x
10x
5x
-
POST
1x - - - -
UPCA
8x - - - -
UPCA+2
8x - - - -
UPCA+5
8x - - - -
UPCE
8x - - - -
UPCE+2
8x - - - -
UPCE+5
8x - - - -
CPOST - - - -
1x
MSI - -
10x - -
MSIC
10x -
PLESSY - -
10x - -
ITF14 - 10x
10x
5x
-
EAN14
8x - - - -
11 - 10x
10x
5x
-
alignment
Specify the alignment of barcode
3 : Right
1: human readable aligns to left
2: human readable aligns to center
Check the maximum number of digits in the barcodes.
Code Type Character sets
25
39 I
39 I Full
ASCII
0123456789
UVWXYZ!#$%&’()*+,-./:;?@[\]^_`abcdefghijklmn
-
-
93
UVWXYZ!#$%&’()*+,-./:;?@[\]^_`abcdefghijklmn
-
LOGMARS
-
47
Value
128A
128B
128C
Value
128A
128B
128C
Value
128A
128B
128C
0
space
space
00
36 D D
36
72
BS h 72
1 ! !
01
37 E E
37
73
HT i 73
2 “ “
02
38 F F
38
74
LF j 74
3 # #
03
39 G G
39
75
VT k 75
4 $ $
04
40 H H
40
76
FF l 76
5 % %
05
41 I I
41
77
CR m 77
6 & &
06
42 J J
42
78
SO n 78
7 ‘ ‘
07
43 K K
43
79
SI o 79
8 ( (
08
44 L L
44
80
DLE p 80
9 ) )
09
45 M M
45
81
DC1 q 81
10 * *
10
46 N N
46
82
DC2 r 82
11 + +
11
47 O O
47
83
DC3 s 83
12 , ,
12
48 P P
48
84
DC4 t 84
13 - -
13
49 Q Q
49
85
NAK u 85
14 . .
14
50 R R
50
86
SYN v 86
15 / /
15
51 S S
51
87
ETB w 87
16 0 0
16
52 T T
52
88
CAN x 88
17 1 1
17
53 U U
53
89
EM y 89
18 2 2
18
54 V V
54
90
SUB z 90
19 3 3
19
55 W W
55
91
ESC { 91
20 4 4
20
56 X X
56
92
FS | 92
21 5 5
21
57 Y Y
57
93
GS } 93
22 6 6
22
58 Z Z
58
94
RS ~ 94
23 7 7
23
59 [ [
59
95
US
DEL
95
24 8 8
24
60 \ \
60
96
FNC 3
FNC 3
96
25 9 9
25
61 ] ]
61
97
FNC 2
FNC 2
97
26 : :
26
62 ^ ^
62
98
Shift B
Shift A
98
27 ; ;
27
63 _ _
63
99
Code C
Code C
99
28
<
<
28
64
NUL ` 64
100
Code B
FNC4
Code B
29 = =
29
65
SOH a 65
101
FNC 4
Code A
Code A
30
>
>
30
66
STX b 66
102
FNC 1
FNC 1
FNC 1
31 ? ?
31
67
ETX c 67
103
Start Code A
32 @ @
32
68
EOT d 68
104
Start Code B
33 A A
33
69
ENQ e 69
105
Start Code C
34 B B
34
70
ACK f 70
35 C C
35
71
BEL g 71
Sample Code
Result
SIZE 4,1
PRINT 1
Character set for CODE 128
Example
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"2",0,1,1,"Human readable
alignment"
BARCODE 10,50,"128",100,1,0,2,2,"left"
BARCODE 310,50,
"128",100,2,0,2,2,"center"
BARCODE 610,50,
"128",100,3,0,2,2,"right"
PRINT 1
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"2",0,1,1,"Code 128,
switch code subset automatically."
BARCODE 10,50,"128",100,1,0,2,2,
"123456abcd123456"
48
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"2",0,1,1,"Code 128,
switch code subset manually."
BARCODE 10,50,"128M",100,1,0,2,2,
"!104!096ABCD!101EFGH"
PRINT 1
Note:
The above example of code 128M encoded with
CODE B start character. The next character will be
the code 128 function character FNC3 which is then
followed by the ABCD characters and EFGH
characters encoded as CODE A subset.
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"2",0,1,1, "TELEPEN"
BARCODE 10,50,"TELEPEN",100,1,0,2,6,
"abcd1234ABCD"
PRINT 1
SIZE 4,4
GAP 0,0
DIRECTION 1
CLS
TEXT 400,26,"2",0,1,1,2,"TELEPEN
Number"
BARCODE 400,50,
"TELEPENN",60,2,0,2,6,2,"1234567890"
TEXT 400,136,"2",0,1,1,2,"Code 11"
BARCODE 400,160,"11",60,2,0,2,6,2,
"1234567890"
TEXT 400,246,"2",0,1,1,2,"PLANET"
BARCODE 400,270,"PLANET",60,2,0,2,2,2,
"12345678901"
TEXT 400,356,"2",0,1,1,2,"Deutsche
Post Identcode."
BARCODE 400,380,"DPI",60,2,0,2,6,2,
"12345678901"
TEXT 400,466,"2",0,1,1,2,"Deutsche
Post Leitcode."
BARCODE 400,490,"DPL",60,2,0,2,6,2,
"123456789012"
TEXT 400,576,"2",0,1,1,2,"Code 49"
BARCODE 400,600,"CODE49",60,2,0,2,2,2,
"1234567890"
PRINT 1
49
Parameter
Description
x
Specify the x-coordinate
y
Specify the y-coordinate
270
height
cellheight
Height of Code39 in dots (Default is 40)
Height of cell of MicroPDF417 in dots (Default is 4)
ECI number
Serial number &
additional data
Note:
Comma (") is necessary between ECI number and Serial number & additional data.
Sample Code
Result
6.3 TLC39
Description
Draw TLC39, TCIF Linked Barcode 3 of 9, barcode.
Syntax
TLC39 x,y,rotation,[height,]narrow,]wide,]cellwidth,]cellheight,] "ECI
number,Serial number & additional data"
SIZE 4,1.2
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10, "3",0,1,1, "TLC39 code"
TLC39 10,50,0, "123456,SN00000001,00601,01501"
TLC39 310,50,0,80,3,6,3,4, "123456,SN00000001,00601,01501"
PRINT 1
Width of narrow element of Code39 in dots (Default is 2)
Width of wide element of Code39 in dots (Default is 4)
Width of cell of MicroPDF417 in dots (Default is 2)
Must be 6 digits which is used to generate Code39
Alphanumeric is for Micro-PDF417
50
Parameter
Description
X
Specify the x-coordinate
Y
Specify the y-coordinate
width
Image width (in bytes)
height
Image height (in dots)
mode
Graphic modes listed below:
2: XOR
bitmap data
Bitmap data
X size 2 bytes
Y size 16 dots
1-byte
2-byte
6.4 BITMAP
Description
Draw a bitmap image (as opposed to BMP graphic files).
If country is 840, the postal code is in
99999,9999 format.
For other countries, the code is up to 6
Mode 2(USA): 5-digit + 4-digit number
Note:
SIZE 4,2
GAP 0,0
DIRECTION 1
CLS
REM *****Mode 2 For USA*****
MAXICODE 110,100,2,300,840,06810,7317,"DEMO 2 FOR USA MAXICODE"
TEXT 100,50,"3",0,1,1,"Mode 2 For USA"
PRINT 1,1
REM *****Mode 3 For Canada*****
CLS
MAXICODE 110,100,3,300,863,"107317","DEMO 3 FOR CANADA MAXICODE"
TEXT 100,50,"3",0,1,1,"Mode 3 For CANADA"
PRINT 1,1
REM *****MODE4*****
60
MAXICODE 110,100,4,"DEMO 4 FOR MAXICODE"
Result
MAXICODE 600,100,4,L19,DEMO 4 FOR MAXICODE
TEXT 100,50,"3",0,1,1,"Mode 4 FOR MAXICODE"
PRINT 1,1
REM *****MODE 5*****
CLS
MAXICODE 110,100,5,"DEMO 5 FOR MAXICODE"
MAXICODE 600,100,5,L19,DEMO 5 FOR MAXICODE
TEXT 100,50,"3",0,1,1,"DEMO 5 FOR MAXICODE"
PRINT 1
61
Parameter
Description
x
X-coordinate of starting point (in dot)
y
Y-coordinate of starting point (in dot)
width
Expected width (in dots)
height
Expected height (in dots)
rotate
0 : No rotation
option
P Data compression method
1: Binary mode
E Error correction level (Range: 0~8)
M Center pattern in barcode area
1: The pattern is printed middle of area
Ux,y
Human readable
c: Maximum characters of human readable character per line
W Module width in dot (Range: 2~9)
H Bar height in dot (Range: 4~99)
R Maximum number of rows
C Maximum number of columns
T Truncation
1: Truncated
Lm
Expression length, 1≤m≤2048 (without “ for content)
content
Content of PDF417 2D barcode
If parameter Lm is used, double quotes (") are unnecessary for content.
REM *****OPTION:E4 W4 H4*****
CLS
PDF417 50,50,600,600,0,E4,W4,H4,
"Error correction level:4 module
width 4 dots bar height 4 dots"
PRINT 1,1
63
SIZE 4,1.5
SIZE 4,2.5
GAP 0,0
DIRECTION 1
REM *****OPTION:E4 W4 H4 R40 C4
T1*****
CLS
PDF417
50,50,800,800,0,E4,W4,H4,R40,C4,T1
,"Error correction level:4
Module Width 4 dots
Bar Height 4 dots
Maximum Number of Rows:5 Rows
Maximum number of columns:90 Cols
Truncation:1"
PRINT 1,1
GAP 0,0
DIRECTION 1
REM *****OPTION:P1 E4 M1
U50,300,50,W4,H4,R60,C4,T0,L297***
**
CLS
PDF417
50,50,900,600,0,P1,E4,M1,U50,300,5
0,W4,H4,R60,C4,T0,L297,Data
compression method: P1
Error correction level: E4
Center pattern in barcode area: M1
Human Readable: Yes: U50,300,50
Module Width 4 dots: W4
Bar Height 4 dots: H4
Maximum Number of Rows: 60 Rows:
R60
Maximum number of columns: 4 Cols:
C4
Truncation:1: T0
Expression length:297: L297
PRINT 1,1
Optional. Contrast of grayscale graphic. Default is 80.
Suggested range is from 60 to 100.
Note
The grayscale printing (8 bit) is available only in the direct thermal mode.
RJ-2035/RJ-2055WB/RJ-3035B/RJ-3055WB printers support only monochrome printing (1 bit).
6.15 PUTBMP
Description
Print the BMP format images. 1-bit (monochrome) and 8-bit (256 shades of gray) images are supported. The
grayscale printing (8 bit) is available only in the direct thermal mode.
Syntax
PUTBMP x,y,"filename" [, bpp][, contract]
1: 1-bit graphic (monochrome)
Example
Continued on next page
67
Download the BMP file into your printer by the Brother Printer Management Tool (BPM).
Important: Make sure thatthe file name and its extension are in upper case letters (.BMP).
Sample Code
SPEED 2
DENSITY 3
SIZE 4,1.5
GAP 0,0
DIRECTION 1
CLS
PUTBMP 10,10,"SAMPLE.BMP"
BLOCK 10,180,240,100,"2",0,1,1,"bpp and contrast are omitted."
PUTBMP 300,10,
BLOCK 300,180,240,100,"2",0,1,1,
Print the PCX format images. 1-bit (2-color) or 8-bit (256-color) PCX images are supported.
Syntax
PUTPCX x,y,"filename"
Example
Download the PCX file into your printer by the Brother Printer Management Tool (BPM).
Important: Make sure that the file name and its extension are in upper case letters (.PCX).
70
Result
SPEED 2
DENSITY 3
SIZE 4,1.5
GAP 0,0
DIRECTION 1
CLS
PUTPCX 10,10,
"SAMPLE.PCX"
PRINT 1
See Also
DOWNLOAD, BITMAP, PUTPCX
71
Parameter
Description
x
The upper left corner x-coordinate of the QR code
y
The upper left corner y-coordinate of the QR code
ECC level
Error correction recovery level
H : 30%
cell width
1~10
mode
Auto / manual encode
M : Manual
rotation
0 : 0 degree
270 : 270 degree
[justification]
Barcode justification (J1 to J9 valid; See the Sample Code below)
[model]
M1: (default), original version
M2: enhanced version (Almost all smartphone support this version.)
[mask]
S0~S8, default is S7
[area]
Maximum size of barcode area (Xdots; e.g. X100)
content
The encodable character set is described as below:
. These are
Model 1 (Version 14-L)
Model 2 (Version 40-L)
Numeric data
1,167 characters
7,089 characters
Alphanumeric data
707 characters
4,296 characters
8-bit byte data
486 characters
2,953 characters
Kanji data
299 characters
1,817 characters
"B" is used to specify numbers of data. After the 4 digits is the number of
The following barcode height is calculated by printer.
Content of UPCE must be:
*00abc0000hij = abhijc, where c = 0-2
*00abc00000ij = abcij3
*00abcd00000j = abcdj4
78
Sample code
Result
Note:
Example
SIZE 100 mm,100 mm
GAP 0,0
DIRECTION 1
CLS
RSS 300,300,"RSS14",0,2,2,
"1234567890|ABCDEFG"
RSS
300,300,"RSS14T",90,2,2,"1234567890|ABCDE
FG"
RSS
300,300,"RSS14S",180,2,2,"1234567890|ABCD
EFG"
RSS 300,300,"RSS14SO",270,2,2,
"1234567890|ABCDEFG"
PRINT 1,1
203 dpi : 1 mm = 8 dots
300 dpi : 1 mm = 12 dots
600 dpi : 1 mm = 24 dots
Recommended max. height of reversed black area is 12 mm at 4 “ width. Height of reversed
area that is larger than 12 mm may damage the power supply and affect the print quality.
Max. print ratio is different for each printer model. Desktop and industrial printer print ratio is
limited to 20% and 30% respectively.
SIZE 100 mm,100 mm
GAP 0,0
DIRECTION 1
CLS
RSS 300,300,"RSSLIM",0,2,2,
"1234567890|ABCDEFG"
RSS 300,300,"RSSEXP",90,2,2,22,
"1234567890|ABCDEFG"
RSS 300,300,"UPCA",180,2,2,
"1234567890|ABCDEFG"
RSS 300,300,"UPCE",270,2,2,
"000|ABCDEFG"
PRINT 1,1
79
SIZE 100 mm,100 mm
GAP 0,0
DIRECTION 1
CLS
RSS
300,300,"EAN13",0,2,2,"123456789012|ABCDE
FG"
RSS
300,300,"EAN8",90,2,2,"1234567|ABCDEFG"
RSS
300,300,"UCC128CCA",180,2,2,25,"123456789
0|ABCDEFG"
RSS
300,300,"UCC128CCC",270,2,2,25,"123456789
0|ABCDEFG"
PRINT 1,1
SIZE 100 mm, 100 mm
GAP 0,0
DIRECTION 1
CLS
RSS 300,10, "RSSEXP",90,2,2,12,
"8110106141411234562891101201212085010048
000214025610048000310123191000"
PRINT 1
Example of UPCE mode
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
REM UPCE Rule 1:00abc0000hij = abhijc,
where c = 0-2
RSS
10,10,"UPCE",0,2,2,"001200000456|ABCDEFG"
RSS
210,10,"UPCE",0,2,2,"001210000456|ABCDEFG
"
RSS
410,10,"UPCE",0,2,2,"001220000456|ABCDEFG
"
PRINT 1
80
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
REM UPCE Rule 2: 00abc00000ij = abcij3
RSS
10,10,"UPCE",0,2,2,"001230000045|ABCDEFG"
PRINT 1
SIZE 4,1
CLS
REM UPCE Rule 3: 00abcd00000j = abcdj4
RSS
10,10,"UPCE",0,2,2,"001234000005|ABCDEFG"
PRINT 1
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
REM UPCE Rule 4: 00abcde0000j = abcdej
where j = 5-9
RSS
10,10,"UPCE",0,2,2,"001234500005|ABCDEFG"
RSS
160,10,"UPCE",0,2,2,"001234500006|ABCDEFG
"
RSS
310,10,"UPCE",0,2,2,"001234500007|ABCDEFG
"
RSS
460,10,"UPCE",0,2,2,"001234500008|ABCDEFG
"
RSS
610,10,"UPCE",0,2,2,"001234500009|ABCDEFG
"
PRINT 1
Example of barcode height of EAN8 EAN13 UPCA and UPCE
SIZE 4,2
GAP 0,0
DIRECTION 1
CLS
RSS 10,10,"EAN8",0,1,1,"1234567|ABCDEFG"
RSS 210,10,
"EAN8",0,2,1,"1234567|ABCDEFG"
RSS 410,10,
"EAN8",0,3,1,"1234567|ABCDEFG"
PRINT 1
81
SIZE 4,2
GAP 0,0
DIRECTION 1
CLS
RSS
10,10,"EAN13",0,1,1,"123456789012|ABCDEFG
"
RSS
210,10,"EAN13",0,2,1,"123456789012|ABCDEF
G"
RSS
410,10,"EAN13",0,3,1,"123456789012|ABCDEF
G"
PRINT 1
SIZE 4,2
GAP 0,0
DIRECTION 1
CLS
RSS
10,10,"UPCA",0,1,1,"12345678901|ABCDEFG"
RSS
210,10,"UPCA",0,2,1,"12345678901|ABCDEFG"
RSS
410,10,"UPCA",0,3,1,"12345678901|ABCDEFG"
PRINT 1
SIZE 4,2
GAP 0,0
DIRECTION 1
CLS
RSS
10,10,"UPCE",0,1,1,"001200000456|ABCDEFG"
RSS
210,10,"UPCE",0,2,1,"001210000456|ABCDEFG
"
RSS
410,10,"UPCE",0,3,1,"001220000456|ABCDEFG
"
PRINT 1
82
Parameter
Description
x_start
The x-coordinate of the starting point (in dots)
y_start
The y-coordinate of the starting point (in dots)
x_width
X-axis region width (in dots)
y_height
Y-axis region height (in dots)
limited to 20% and 30% respectively.
Sample code
Result
6.19 REVERSE
Description
Reverse a region in image buffer.
Syntax
REVERSE x_start,y_start,x_width,y_height
Note:
203 dpi : 1 mm = 8 dots
300 dpi : 1 mm = 12 dots
600 dpi : 1 mm = 24 dots
Recommended max. height of reversed black area is 12mm at 4" width. Height of reversed area that
is larger than 12 mm may damage the power supply and affect the print quality.
Max. print ratio is different for each printer model. Desktop and industrial printer print ratios are
Example
SIZE 4,2.5
GAP 0,0
DIRECTION 1
CLS
TEXT 100,100,"3",0,1,1,"REVERSE"
REVERSE 90,90,128,40
PRINT 1,1
Font "ROMAN.TTF" ignores the parameter.
Specify the width in point size for Font "0" or other True Type fonts (1 point
= 1/72 inch).
85
y-multiplication
Vertical multiplication
alignment
Optional. Specify the alignment of text.
content
Content of text string
Recommended range: 1~10 Specify the height in point size for Font "0" or other true type fonts (1 point
= 1/72 inch).
Floating point is supported for *.TTF fonts only.
0: Default (Left)
1: Left
2: Center
3: Right
Note:
If the contentitself includes double quotes ("), use \["]instead of (").
Example: "Brother \["]At your side\["]"
\[R] means carriage return character 0x0D.
\[L] means line feed character 0x0A.
The mismatched encoding might result in garbled printing or missing text.
• Check if the printer’s CODEPAGE setting matches the print data encoding.
• Check if the font is compatible with the current printer’s CODEPAGE setting.
Change the printer’s CODEPAGE setting or the font if needed.
Example
Continued on next page
86
Sample Code
Result
SIZE 4,3
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"0",0,12,12,"FBPL"
TEXT 10,40,"0",0,8,8,"align left"
BAR 0,70,800,4
TEXT 10,110,"0",0,12,12,"FONT 0"
TEXT 10,160,"1",0,1,1,"FONT 1"
TEXT 10,210,"2",0,1,1,"FONT 2"
TEXT 10,260,"3",0,1,1,0,"FONT 3"
TEXT 10,310,"4",0,1,1,0,"FONT 4"
TEXT 10,360,"5",0,1,1,0,"FONT 5"
TEXT 10,410,"6",0,1,1,1,"FONT 6"
TEXT 10,460,"7",0,1,1,1,"FONT 7"
TEXT 10,510,"8",0,1,1,1,"FONT 8"
TEXT 10,560,"ROMAN.TTF",0,12,12,"FONT ROMAN.TTF"
TEXT 400,10,"0",0,12,12,2,"EPL 2"
TEXT 400,40,"0",0,8,8,2,"align center"
TEXT 400,110,"1.EFT",0,1,1,2,"FONT 1"
TEXT 400,160,"2.EFT",0,1,1,2,"FONT 2"
TEXT 400,210,"3.EFT",0,1,1,2,"FONT 3"
TEXT 400,260,"4.EFT",0,1,1,2,"FONT 4"
TEXT 400,310,"5.EFT",0,1,1,2,"FONT 5"
TEXT 800,10,"0",0,12,12,3,"ZPL 2"
TEXT 800,40,"0",0,8,8,3,"align right"
TEXT 800,110,"A.FNT",0,1,1,3,"FONT A"
TEXT 800,160,"B.FNT",0,1,1,3,"FONT B"
TEXT 800,210,"D.FNT",0,1,1,3,"FONT D"
TEXT 800,260,"E8.FNT",0,1,1,3,"FONT E8"
TEXT 800,310,"F.FNT",0,1,1,3,"FONT F"
TEXT 800,360,"G.FNT",0,1,1,3,"FONT G"
TEXT 800,410,"H8.FNT",0,1,1,3,"FONT H8"
TEXT 800,460,"GS.FNT",0,1,1,3,"ABCDEF"
PRINT 1
87
Sample Code
Result
Sample Code
Result
Sample Code
Result
SIZE 4,2
GAP 0,0
DIRECTION 1
CLS
BAR 60,120,200,1
BAR 160,20,1,200
TEXT 160,120,"0",0,12,12,1,"TEXT
alignment"
PRINT 1,1
SIZE 4,2
GAP 0,0
DIRECTION 1
CLS
BAR 60,120,200,1
BAR 160,20,1,200
TEXT 160,120,"0",0,12,12,2,"TEXT
alignment"
PRINT 1,1
SIZE 4,2
GAP 0,0
DIRECTION 1
CLS
BAR 160,120,200,1
BAR 260,20,1,200
TEXT 260,120,"0",0,12,12,3,"TEXT
alignment"
PRINT 1,1
88
Parameter
Description
x
The x-coordinate of the text
y
The y-coordinate of the text
width
The width of block for the paragraph in dots
height
The height of block for the paragraph in dots
font
Font name
Built-in fonts
Monotype CG Triumvirate Bold Condensed
scalable font
1
8 x 12 fixed pitch dot font
2
12 x 20 fixed pitch dot font
3
16 x 24 fixed pitch dot font
4
24 x 32 fixed pitch dot font
5
32 x 48 dot fixed pitch font
6
14 x 19 dot fixed pitch font OCR-B
7
21 x 27 dot fixed pitch font OCR-B
8
14 x25 dot fixed pitch font OCR-A
Monotype CG Triumvirate Bold Condensed, font
width and height proportion is fixed.
1.EFT
EPL2 font 1
2.EFT
EPL2 font 2
3.EFT
EPL2 font 3
4.EFT
EPL2 font 4
5.EFT
EPL2 font 5
A.FNT
ZPL2 font A
B.FNT
ZPL2 font B
D.FNT
ZPL2 font D
E8.FNT
ZPL2 font E8
F.FNT
ZPL2 font F
G.FNT
ZPL2 font G
H8.FNT
ZPL2 font H8
GS.FNT
ZPL2 font GS
Downloaded font
A downloaded font in the printer can be selected. (Example:
IPAEXG.TTF)
rotation
0 : No rotation
270 : Rotated 270 degrees clockwise
x-multiplication
Horizontal multiplication
Specify the width in point size for Font "0" or other True Type fonts (1 point
Floating point is supported for *.TTF fonts only.
[space]
Add or delete the space between lines (in dots)
[align]
Text alignment.
[fit]
Shrink the text so that it fits in the block
content
Data in block. The maximum data length is 4092 bytes.
y-multiplication
Vertical multiplication
Recommended range: 1~10
Specify the height in point size for Font "0" or other true type fonts (1 point
= 1/72 inch).
Floating point is supported for *.TTF fonts only.
0: Default (Left)
1: Left
2: Center
3: Right
0 : No shrink (default)
1: Shrink
Note:
If the contentitself includes double quotes ("), use \["]instead of (").
Example: "Brother \["]At your side\["]"
\[R] means carriage return character 0x0D.
\[L] means line feed character 0x0A.
The mismatched encoding might result in garbled printing or missing text.
• Check if the printer’s CODEPAGE setting matches the print data encoding.
• Check if the font is compatible with the current printer’s CODEPAGE setting.
Change the printer’s CODEPAGE setting or the font if needed.
Example
90
Sample Code
Result
Sample Code for [fit] Parameter
["]At your
mind, the
Brother Group aims to
continually create value.With
["] spirit
in mind, the Brother Group aims
Result
SIZE 4,0.5
GAP 0,0
DIRECTION 1
CLS
BOX 10,10,800,100,2
BLOCK 15,15,790,90, "0",0,8,8,"
With the At your side. spirit
in mind. the Brother Group aims
to continually create value."
PRINT 1
CLS
BOX 10,10,800,100,2
BLOCK
15,15,790,90,"0",0,8,8,20,2,"
With the At your side. spirit
in mind. the Brother Group aims
to continually create value."
PRINT 1
DATA$ = "With the \
side\["] spirit in
the \["]At your side\
to continually create value."
SIZE 4,1.5
GAP 0,0
DIRECTION 1
CLS
BLOCK
20,20,500,170,"0",0,10,10,0,0,1
,DATA$
BOX 20,20,500+20,170+20,2
PRINT 1
SIZE 4,1.5
GAP 0,0
DIRECTION 1
CLS
BLOCK
20,20,500,170,"0",0,10,10,0,0,0
, DATA$
BOX 20,20,500+20,170+20,2
PRINT 1
91
Hex Receive
Printer Status
00
Normal
01
Head opened
02
Paper Jam
03
Paper Jam and head opened
04
Out of paper
05
Out of paper and head opened
08
Out of ribbon
09
Out of ribbon and head opened
0A
Out of ribbon and paper jam
0B
Out of ribbon, paper jam and head opened
0C
Out of ribbon and out of paper
0D
Out of ribbon, out of paper and head opened
10
Pause
20
Printing
80
Other error
7 Status Polling and Immediate Commands
7.1 <ESC>!?
Description
Obtain the printer status at any time, even in the event of printer error. An inquiry request is solicited by
sending an
character is returned, flagging the printer status. A 0 signifies the printer is ready to print labels.
<ESC>(ASCII 27, escape character) as the beginning control character to the printer. A one-byte
Syntax
<ESC>!?
See Also
<ESC>!S
92
7.2 <ESC>!C
Description
Restart the printer and omit to run AUTO.BAS. The beginning of the command is an ESCAPE character
(ASCII 27).
Syntax
<ESC>!C
Note:
When the printer receives this command, the printer will restart itself no matter AUTO.BAS exists or not.
See Also
<ESC>!Q
93
7.3 <ESC>!D
Description
Disable an immediate command that starts with <ESC>!. (for example: <ESC>!R <RSC>!? <ESC>!C)
The beginning of the command is an ESCAPE character (ASCII 27).
Syntax
<ESC>!D
See Also
~!E
94
7.4 <ESC>!O
Description
Cancel the PAUSE status of printer. The beginning of the command is an ESCAPE character (ASCII 27).
Syntax
<ESC>!O
See Also
<ESC>!P
95
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.