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
Loading...
+ 259 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.