Brother TD-4420TN, TD-4520TN, TD-4650TNWB, TD-4650TNWBR, TD-4750TNWB Software Developer's Manual FBPL Command Reference Version 08

...
Software Developer's Manual
FBPL Command Reference
TD-4420TN/4520TN
TD-4650TNWB/4750TNWB/4650TNWBR/4750TNWBR
RJ-2035B/2055WB/3035B/3055WB
TJ-4020TN/4021TN/4021TNR/4120TN/4121TN/4121TNR
TJ-4420TN/4520TN/4620TN/4422TN/4522TN
TABLE OF CONTENTS
1 Example of Command Reference .................................................................................................................. 1
2 Document Conventions .................................................................................................................................. 2
3 Object Position Calculation ........................................................................................................................... 3
4 Supported Printers .......................................................................................................................................... 4
5 Setup and System Commands ...................................................................................................................... 5
5.1 SIZE ............................................................................................................................................. 5
5.2 GAP .............................................................................................................................................. 6
5.3 GAPDETECT............................................................................................................................... 8
5.4 BLINEDETECT ............................................................................................................................ 9
5.5 AUTODETECT .......................................................................................................................... 10
5.6 BLINE ......................................................................................................................................... 11
5.7 OFFSET ..................................................................................................................................... 12
5.8 SPEED ....................................................................................................................................... 13
5.9 DENSITY ................................................................................................................................... 14
5.10 DIRECTION ............................................................................................................................... 15
5.11 REFERENCE ............................................................................................................................ 16
5.12 SHIFT ......................................................................................................................................... 17
5.13 COUNTRY ................................................................................................................................. 19
5.14 CODEPAGE............................................................................................................................... 20
5.15 CLS ............................................................................................................................................ 23
5.16 FEED .......................................................................................................................................... 24
5.17 BACKFEED ............................................................................................................................... 25
5.18 FORMFEED .............................................................................................................................. 26
5.19 HOME ........................................................................................................................................ 27
5.20 PRINT ........................................................................................................................................ 28
5.21 SOUND ...................................................................................................................................... 29
5.22 CUT ............................................................................................................................................ 30
5.23 LIMITFEED ................................................................................................................................ 31
5.24 SELFTEST................................................................................................................................. 32
5.25 EOJ ............................................................................................................................................ 35
5.26 DELAY........................................................................................................................................ 36
5.27 DISPLAY .................................................................................................................................... 37
5.28 INITIALPRINTER ...................................................................................................................... 39
5.29 MENU......................................................................................................................................... 40
6 Label Formatting Commands ...................................................................................................................... 43
6.1 BAR ............................................................................................................................................ 43
6.2 BARCODE ................................................................................................................................. 44
6.3 TLC39 ........................................................................................................................................ 50
6.4 BITMAP ...................................................................................................................................... 51
6.5 BOX ............................................................................................................................................ 53
6.6 CIRCLE ...................................................................................................................................... 54
6.7 ELLIPSE .................................................................................................................................... 55
6.8 CODABLOCK F MODE ............................................................................................................... 56
6.9 DMATRIX ................................................................................................................................... 57
6.10 ERASE ....................................................................................................................................... 59
6.11 MAXICODE................................................................................................................................ 60
6.12 PDF417 ...................................................................................................................................... 62
6.13 AZTEC ....................................................................................................................................... 65
6.14 MPDF417 ................................................................................................................................... 66
6.15 PUTBMP .................................................................................................................................... 67
6.16 PUTPCX .................................................................................................................................... 70
6.17 QRCODE ................................................................................................................................... 72
6.18 RSS ............................................................................................................................................ 78
6.19 REVERSE .................................................................................................................................. 83
6.20 DIAGONAL ................................................................................................................................ 84
6.21 TEXT .......................................................................................................................................... 85
I
6.22 BLOCK ....................................................................................................................................... 89
7 Status Polling and Immediate Commands ................................................................................................. 92
7.1 <ESC>!? .................................................................................................................................... 92
7.2 <ESC>!C .................................................................................................................................... 93
7.3 <ESC>!D .................................................................................................................................... 94
7.4 <ESC>!O.................................................................................................................................... 95
7.5 <ESC>!P .................................................................................................................................... 96
7.6 <ESC>!Q.................................................................................................................................... 97
7.7 <ESC>!R .................................................................................................................................... 98
7.8 <ESC>!S .................................................................................................................................... 99
7.9 <ESC>!F .................................................................................................................................. 101
7.10 <ESC>!. ................................................................................................................................... 102
7.11 ~!@ ........................................................................................................................................... 103
7.12 ~!A ............................................................................................................................................ 104
7.13 ~!C ............................................................................................................................................ 105
7.14 ~!D ............................................................................................................................................ 106
7.15 ~!E ............................................................................................................................................ 107
7.16 ~!F ............................................................................................................................................ 108
7.17 ~!I ............................................................................................................................................. 109
7.18 ~!T ............................................................................................................................................ 110
7.19 <ESC>Y ................................................................................................................................... 111
7.20 <ESC>Z ................................................................................................................................... 112
8 Commands for Windows Driver ................................................................................................................ 113
8.1 !B .............................................................................................................................................. 113
8.2 !J ............................................................................................................................................... 114
8.3 !N .............................................................................................................................................. 115
9 File Management Commands .................................................................................................................... 116
9.1 DOWNLOAD ........................................................................................................................... 116
9.2 EOP .......................................................................................................................................... 119
9.3 FILES ....................................................................................................................................... 120
9.4 KILL .......................................................................................................................................... 121
9.5 MOVE....................................................................................................................................... 122
9.6 RUN.......................................................................................................................................... 123
10 BASIC Commands and Functions ............................................................................................................. 124
10.1 ABS() ........................................................................................................................................ 124
10.2 ASC() ....................................................................................................................................... 125
10.3 CHR$() ..................................................................................................................................... 126
10.4 XOR$() ..................................................................................................................................... 127
10.5 END .......................................................................................................................................... 128
10.6 EOF() ....................................................................................................................................... 129
10.7 OPEN ....................................................................................................................................... 130
10.8 CLOSE ..................................................................................................................................... 132
10.9 WRITE...................................................................................................................................... 133
10.10 READ ....................................................................................................................................... 134
10.11 SEEK ........................................................................................................................................ 135
10.12 LOF() ........................................................................................................................................ 136
10.13 LOC() ....................................................................................................................................... 137
10.14 FREAD$() ................................................................................................................................ 138
10.15 PUT .......................................................................................................................................... 139
10.16 GET .......................................................................................................................................... 140
10.17 COPY ....................................................................................................................................... 141
10.18 FOR…NEXT LOOP ................................................................................................................ 142
10.19 WHILE…WEND ...................................................................................................................... 143
10.20 DO…LOOP .............................................................................................................................. 144
10.21 IF…THEN…ELSE…ENDIF LOOP ...................................................................................... 147
10.22 GOSUB…RETURN ................................................................................................................ 150
10.23 GOTO ....................................................................................................................................... 151
10.24 INP$() ....................................................................................................................................... 152
10.25 INP() ......................................................................................................................................... 153
II
10.26 LOB() ........................................................................................................................................ 154
10.27 INPUT ...................................................................................................................................... 155
10.28 PREINPUT............................................................................................................................... 156
10.29 POSTINPUT ............................................................................................................................ 157
10.30 SET FILTER ............................................................................................................................. 158
10.31 REM ......................................................................................................................................... 159
10.32 OUT .......................................................................................................................................... 160
10.33 OUTR ....................................................................................................................................... 161
10.34 GETKEY() ................................................................................................................................ 162
10.35 INT() ......................................................................................................................................... 163
10.36 LEFT$() .................................................................................................................................... 164
10.37 LEN() ........................................................................................................................................ 165
10.38 MID$() ...................................................................................................................................... 166
10.39 RIGHT$() ................................................................................................................................. 167
10.40 STR$()...................................................................................................................................... 168
10.41 STRCOMP() ............................................................................................................................ 169
10.42 INSTR() .................................................................................................................................... 170
10.43 TRIM$() .................................................................................................................................... 171
10.44 LTRIM$() .................................................................................................................................. 172
10.45 RTRIM$() ................................................................................................................................. 173
10.46 TEXTPIXEL() ........................................................................................................................... 174
10.47 BARCODEPIXEL() .................................................................................................................. 175
10.48 VAL() ........................................................................................................................................ 176
10.49 NOW$() .................................................................................................................................... 177
10.50 NOW ........................................................................................................................................ 178
10.51 FORMAT$() ............................................................................................................................. 179
10.52 DATEADD() ............................................................................................................................. 183
10.53 FSEARCH() ............................................................................................................................. 185
10.54 TOUCHPRESS() ..................................................................................................................... 186
10.55 RECORDSET$() ..................................................................................................................... 187
10.56 REPLACE$() ........................................................................................................................... 189
11 Device Reconfiguration Commands ......................................................................................................... 190
11.1 SET COUNTER ....................................................................................................................... 190
11.2 SET CUTTER .......................................................................................................................... 191
11.3 SET PARTIAL_CUTTER ......................................................................................................... 192
11.4 SET BACK ............................................................................................................................... 193
11.5 SET KEYN ................................................................................................................................ 194
11.6 SET LEDN ................................................................................................................................ 196
11.7 SET PEEL ................................................................................................................................ 197
11.8 SET REWIND .......................................................................................................................... 198
11.9 SET TEAR ............................................................................................................................... 199
11.10 SET GAP.................................................................................................................................. 200
11.11 SET BLINE REVERSE / SET BLINE OBVERSE................................................................... 202
11.12 SET BLINE PRINTSIDE / SET BLINE BACKSIDE ................................................................ 203
11.13 SET HEAD ............................................................................................................................... 204
11.14 SET RIBBON ........................................................................................................................... 205
11.15 SET ENCODER....................................................................................................................... 206
11.16 SET RIBBONEND ................................................................................................................... 207
11.17 SET COM1............................................................................................................................... 208
11.18 SET PRINTKEY....................................................................................................................... 209
11.19 SET REPRINT ......................................................................................................................... 211
11.20 SET FEED_LEN ...................................................................................................................... 212
11.21 GETSENSOR() ....................................................................................................................... 213
11.22 GETSETTING$() ..................................................................................................................... 216
11.23 SET USBHOST ....................................................................................................................... 219
11.24 SET AUTORUN ....................................................................................................................... 220
11.25 SET RESPONSE .................................................................................................................... 221
11.26 SET DAYLIGHT_SAVE ........................................................................................................... 223
11.27 SET REGISTRATION ............................................................................................................. 224
III
11.28 PEEL ........................................................................................................................................ 225
11.29 LED1, LED2, LED3.................................................................................................................. 226
11.30 KEY1, KEY2, KEY3 ................................................................................................................. 227
11.31 SET SENSOR_REF ................................................................................................................ 228
12 Printer Global Variables.............................................................................................................................. 229
12.1 @LABEL .................................................................................................................................. 229
12.2 YEAR ....................................................................................................................................... 230
12.3 MONTH .................................................................................................................................... 231
12.4 DAT E ........................................................................................................................................ 232
12.5 WEEK....................................................................................................................................... 233
12.6 HOUR....................................................................................................................................... 234
12.7 MINUTE ................................................................................................................................... 235
12.8 SECOND.................................................................................................................................. 236
12.9 @YEAR.................................................................................................................................... 237
12.10 @MONTH ................................................................................................................................ 238
12.11 @DATE .................................................................................................................................... 239
12.12 @DAY ...................................................................................................................................... 240
12.13 @HOUR ................................................................................................................................... 241
12.14 @MINUTE ............................................................................................................................... 242
12.15 @SECOND .............................................................................................................................. 243
12.16 _MODEL$ ................................................................................................................................ 244
12.17 _SERIAL$ ................................................................................................................................ 245
12.18 _VERSION$ ............................................................................................................................ 246
13 Bluetooth Module Setting Commands ...................................................................................................... 247
13.1 BT NAME ................................................................................................................................. 247
13.2 BT PINCODE ........................................................................................................................... 248
13.3 BT MODE ................................................................................................................................. 249
13.4 SET BTLINKBACK .................................................................................................................. 251
14 Wi-Fi Module Setting Commands .............................................................................................................. 252
14.1 WLAN OFF .............................................................................................................................. 252
14.2 WLAN SSID ............................................................................................................................. 253
14.3 WLAN W PA .............................................................................................................................. 254
14.4 WLAN WEP ............................................................................................................................. 255
14.5 WLAN DHCP ........................................................................................................................... 256
14.6 WLAN IP .................................................................................................................................. 257
14.7 WLAN PORT ........................................................................................................................... 258
14.8 WLAN THROUGH ................................................................................................................... 259
15 Internal Ethernet Setting Commands........................................................................................................ 260
15.1 NET DHCP............................................................................................................................... 260
15.2 NET IP ...................................................................................................................................... 261
15.3 NET PORT ............................................................................................................................... 262
15.4 NET NAME .............................................................................................................................. 263
15.5 NET THROUGH ...................................................................................................................... 264
16 Setting Commands for RJ-2035B/2055WB/3035B/3055WB .................................................................... 265
16.1 SET PRINTQUALITY .............................................................................................................. 265
16.2 SET STANDBYTIME ............................................................................................................... 266
16.3 SET SLEEPTIME .................................................................................................................... 267
17 RFID .............................................................................................................................................................. 268
17.1 RFID READ / RFID WRITE ..................................................................................................... 268
17.2 RFIDDETECT .......................................................................................................................... 273
Appendix A: Command List by Model............................................................................................................... 274
IV
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
Command
Description of the command
Syntax
Detailed description
of the parameter
Actual example of the command
Related commands

1 Example of Command Reference

1.1 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
1
Convention
Description

2 Document Conventions

This manual uses the following typographic conventions.
[expression list]
<ESC>
~
Space ASCII 32, characters will be ignored in the command line.
" ASCII 34, beginning and ending of expression.
CR, LF ASCII 13, ASCII 10, denotes end of command line.
NULL ASCII 0, supported in the expression.
Note:
203 dpi: 1 mm = 8 dots
Items inside square brackets are optional, expression maximum length 2*1024 bytes.
ASCII 27, control code of status polling command returns/runs the printer status immediately.
ASCII 126, control code of status polling command returns the printer status only when the printer is ready.
Note
2
DIRECTION 0
PRINT 1
DIRECTION 1

3 Object Position Calculation

CLS TEXT 56,24,"3",0,1,1,"ABC"
CLS TEXT 56,24,"3",0,1,1,"ABC" PRINT 1
Note :
1. 203 dpi, 1 mm=8 dots ; 300 dpi, 1 mm=12 dots ; 600 dpi, 1mm=24 dots
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 pre­printed 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:
OFFSET 0.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
SWI Swiss 861 Icelandic 1258 Vietnam 8859-9 Turkish
862 Hebrew 932
Canadian/
863
French
864 Arabic 949 Korean
865 Nordic 950
866 Russian UTF-8 UTF 8
869 Greek 2
936
Simplified Chinese GBK
8859-10 Latin 6
8859-15 Latin 9
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