Toshiba B-SV4D-GS, GC10-QM User Manual

TOSHIBA TEC Bar Code Printer
B-SV4D-GS/GC10-QM
External Equipment Interface Specification
First Edition: Jun. 02, 2003
TABLE OF CONTENTS
Page
1. SCOPE........................................................................................................................................ 1
2. GENERAL DESCRIPTION......................................................................................................... 1
3. INTERFACE................................................................................................................................ 2
3.1 SERIAL INTERFACE............................................................................................................. 2
3.2 PARALLEL INTERFACE ....................................................................................................... 6
4. KEY OPERATION FUNCTIONS ................................................................................................ 8
4.1 SYSTEM MODE (POWER UP WITH KEY PRESSED) ........................................................ 8
4.2 ON-LINE MODE FUNCTIONS .............................................................................................. 9
5. TRANSMISSION SEQUENCE ................................................................................................... 10
5.1 INITIALIZATION .................................................................................................................... 10
5.2 LABEL ISSUE OPERATION.................................................................................................. 12
6. INTERFACE COMMANDS......................................................................................................... 14
6.1 OUTLINE OF COMMANDS................................................................................................... 14
6.2 LIST OF COMMANDS........................................................................................................... 16
6.3 COMMANDS FOR CREATING APPLICATION .................................................................... 17
6.3.1 LABEL SIZE SET COMMAND.......................................................................................... 17
6.3.2 POSITION FINE ADJUST COMMAND............................................................................ 22
6.3.3 PRINT DENSITY FINE ADJUST COMMAND.................................................................. 27
6.3.4 IMAGE BUFFER CLEAR COMMAND.............................................................................. 28
6.3.5 CLEAR AREA COMMAND............................................................................................... 29
6.3.6 LINE FORMAT COMMAND.............................................................................................. 31
6.3.7 BIT MAP FONT FORMAT COMMAND............................................................................ 35
6.3.8 OUTLINE FONT FORMAT COMMAND........................................................................... 49
6.3.9 BAR CODE FORMAT COMMAND................................................................................... 63
6.3.10 BIT MAP FONT DATA COMMAND.................................................................................. 94
6.3.11 OUTLINE FONT DATA COMMAND................................................................................. 97
6.3.12 BAR CODE DATA COMMAND ........................................................................................ 100
6.3.13 ISSUE COMMAND........................................................................................................... 113
6.3.14 FEED COMMAND............................................................................................................ 123
6.3.15 EJECT COMMAND .......................................................................................................... 128
6.3.16 FORWARD/REVERSE FEED COMMAND...................................................................... 129
6.3.17 STORAGE AREA ALLOCATE COMMAND ..................................................................... 131
6.3.18 MEMORY CARD FORMAT COMMAND.......................................................................... 133
6.3.19 2-BYTE WRITABLE CHARACTER CODE RANGE COMMAND..................................... 134
6.3.20 BIT MAP WRITABLE CHARACTER COMMAND ............................................................ 135
Page
6.3.21 GRAPHIC COMMAND ..................................................................................................... 146
6.3.22 SAVE START COMMAND ............................................................................................... 154
6.3.23 SAVE TERMINATE COMMAND ...................................................................................... 156
6.3.24 SAVED DATA CALL COMMAND..................................................................................... 157
6.3.25 RESET COMMAND.......................................................................................................... 158
6.3.26 STATUS REQUEST COMMAND..................................................................................... 159
6.3.27 RECEIVE BUFFER FREE SPACE STATUS REQUEST COMMAND............................. 160
6.3.28 VERSI0N INFORMATION ACQUIRE COMMAND........................................................... 162
6.3.29 MEMORY BOARD INFORMATION ACQUIRE COMMAND............................................ 163
6.3.30 PRINTER INFORMATION STORE COMMAND.............................................................. 165
6.3.31 PRINTER INFORMATION REQUEST COMMAND......................................................... 166
6.4 COMMANDS FOR SYSTEM ADMINISTRATOR .................................................................. 167
6.4.1 PARAMETER SET COMMAND ....................................................................................... 167
6.4.2 FINE ADJUSTMENT VALUE SET COMMAND ............................................................... 170
6.4.3 BATCH RESET COMMAND............................................................................................. 172
7. CONTROL CODE SELECTION................................................................................................. 173
8. ERROR PROCESSING.............................................................................................................. 174
8.1 COMMUNICATION ERRORS ............................................................................................... 174
8.2 ERRORS IN ISSUING OR FEEDING.................................................................................... 174
8.3 ERRORS IN WRITABLE CHARACTER AND PC COMMAND SAVE MODES .................... 176
9. STATUS RESPONSE................................................................................................................. 177
9.1 SERIAL INTERFACE............................................................................................................. 177
9.1.1 FUNCTIONS..................................................................................................................... 177
9.1.2 STATUS FORMAT ........................................................................................................... 177
9.1.3 DETAIL STATUS.............................................................................................................. 178
9.2 PARALLEL INTERFACE ....................................................................................................... 179
10. LED INDICATIONS..................................................................................................................... 181
ii
Page
11. CHARACTER CODE TABLE..................................................................................................... 183
11.1 TIMES ROMAN, HELVETICA, LETTER GOTHIC, PRESTIGE ELITE, COURIER............... 183
11.2 PRESENTATION................................................................................................................... 190
11.3 TEC OUTLINE FONT 1 ......................................................................................................... 194
11.4 TrueType FONT..................................................................................................................... 201
12. BAR CODE TABLE.................................................................................................................... 208
13. DRAWING OF BAR CODE DATA.............................................................................................. 221
14. AUTOMATIC ADDING OF START/STOP CODE...................................................................... 242
1. SCOPE
This specification applies to the external equipment interface for use with the Model B-SV4D general­purpose thermal label/tag printers.
2. GENERAL DESCRIPTION
The external equipment interfac e connects a printer to the hos t com puter through a s erial interf ace ( RS­232C), parallel interface (Centronics), or a network for making various settings and printing labels.
This specification describes how to use the external equipment interface. The model configuration is described below.
B-SV4D
Flash ROM 1 MB
Memory DRAM 2 MB
Interface
Option LAN adapter
Strip module Option
Standard RS-232C
Centronics
USB
Full cut Cutter
Partial cut (option)
- 1 -
3. INTERFACE
3.1 SERIAL INTERFACE
(1) Type : Conforming to RS-232C (2) Mode of Communication : Full duplex (3) Transmission Speed : 2400 BPS
4800 BPS 9600 BPS 19200 BPS 38400 BPS
57600 BPS (4) Synchronization Method : Start-stop synchronization (5) Start Bit : 1 bit (6) Stop Bit : 1 bit
2 bits (7) Data Length : 7 bits
8 bits (8) Parity : None
Even
Odd (9) Error Detection : Parity Error Vertical parity error check
Framing Error This error occurs if no stop bit is found in the f ram e
specified starting with the start bit.
Overrun Error This error occurs if the next data is input bef ore the
data input to the UART from the host is r ead by the
printer CPU. (10) Protocol : No-procedure method (11) Data Input Code : ASCII code
European character set 8 bit code Graphics 8 bit code
(12) Receive Buffer : 515K bytes
- 2 -
(13) Transmission Control : XON/XOFF (DC1/DC3) Protocol READY/BUSY (DTR) Protocol XON/XOFF (DC1/DC3) Protocol + READY/BUSY (DTR)
Protocol
RTS Protocol
c
XON/XOFF (DC1/DC3) Protocol
z When initialized after power on, this printer becomes ready to receive data and sends an
XON code (11H). (Transmission or non-transmission of the XON code is selectable by means of the parameter setting.)
z The printer sends an XOFF code (13H) when the blank positions in the receive buffer
become 1K bytes or less.
z The printer sends an XON c ode ( 11H) when the blank pos itions in the rec eive buf f er are 2K
bytes or more.
z W hen there are no blank positions in the receive buffer, the printer discards data received
exceeding the receive buffer capacity, without storing it in the buffer. (After detecting the XOFF code, the host computer must stop transmission before the printer receive buffer becomes full.)
z The printer sends an XOFF code (13H) when the power is off. (Transmission or non-
transmission of the XOFF code is selectable by means of the parameter setting.)
d
READY/BUSY (DTR) Protocol
z W hen initialized after power on, this printer becomes ready to receive data and turns the
DTR signal to “High” level (READY).
z The printer turns the DTR signal to “Low” level (BUSY) when the blank positions in the
receive buffer are 1K bytes or less.
z The printer turns the DTR signal to “High” level (READY) when the blank positions in the
receive buffer are 2K bytes or more.
z W hen there are no blank positions in the receive buffer, the printer discards data received
exceeding the receive buffer capacity, without storing it in the buffer. (After detecting the BUSY signal, the host computer mus t stop transmission before the printer receive buff er becomes full.)
z The RTS signal is always “High”.
- 3 -
e
XON/XOFF (DC1/DC3) Protocol + READY/BUSY (DTR) Protocol
z W hen initialized after power on, this printer becomes ready to receive data and turns the
DTR signal to “High” level (READY). The printer also sends an XON code (11H).
z W hen the blank positions in the receive buff er are 1K bytes or less, the printer turns the
DTR signal to “Low” level (BUSY) and sends an XOFF code (13H).
z When the blank positions in the receive buffer are 2K bytes or mor e, the printer turns the
DTR signal to “High” level (READY) and sends an XON code (11H).
z W hen there are no blank positions in the receive buffer, the printer discards data received
exceeding the receive buffer capacity, without storing it in the buffer. (After detecting the XOFF code or BUSY signal, the host computer must s top transmission before the printer
receive buffer becomes full.) z The printer sends an XOFF code (13H) when the power is off. z The RTS signal is always “High”.
f
RTS Protocol
z When initialized after the power is turned on, this printer turns the RTS signal to “High”
(READY). z The printer turns the RTS signal to “Low” (BUSY) when the blank positions in the receive
buffer are 1K bytes or less. z T he printer turns the RTS signal to “High” (READY) when the blank positions in the r eceive
buffer are 2K bytes or more. z W hen there are no blank positions in the receive buffer, the printer discards data received
exceeding the receive buffer capacity, without storing it in the buffer. (After detecting the
BUSY signal, the host computer mus t stop transmission before the printer receive buff er
becomes full.) z The DTR signal is always “High” (READY).
- 4 -
(14) RS-232 Interface pin configuration
Host Function 9 Pin 25 Pin 9 Pin Printer Function
1 +5V RxD 2 3 2 TxD TxD 3 2 3 RxD
DTR 4 20 4 DSR GND 5 7 5 GND DSR 6 6 6 RDY RTS 7 4 7 N/C CTS 8 5 8 RDY
9 +5V
(15) Connector Pin Assignment and Signal Description
Pin No.
1 +5V Provide the power of 5V 2 TxD Transmit data Printer 3 RxD Receive data Host 4 DSR Data set ready Host 5 GND General Ground 6 RDY Printer ready Printer 7 N/C Not connected 8 RDY Printer ready Printer 9 +5V Provide the power of 5V
Signal
Name
Function Signal Direction
- 5 -
3.2 PARALLEL INTERFACE
(1) Type : Centronics (2) Mode : Conforms to IEEE1284 compatible mode (3) Data Input Method : Parallel 8 bits (DATA1 ~ 8) (4) Control Signals : ACK, BUSY, SELECT, DATA • STB, FAULT, PE, INIT (Not used),
AUTOFD (Not used), SELECTIN (Not used)
(5) Data Input Code : ASCII code
European character set 8 bit code Graphics 8 bit code
(6) Receive Buffer : 515K bytes
(7) Connector : Printer
Amp. Japan 552742-1 or equivalent DDK 57RE-40360-73B or equivalent
Cable
Amp. Japan 552470-1 or equivalent DDK 57E-30360 or equivalent
- 6 -
(8) Connector Pin Diagram:
Pin No. Signal Name Pin No. Signal Name
1 DATA • STB 19 TWISTED PAIR GND (PIN1) 2 DATA 1 20 TWISTED PAIR GND (PIN2) 3 DATA 2 21 TWISTED PAIR GND (PIN3) 4 DATA 3 22 TWISTED PAIR GND (PIN4) 5 DATA 4 23 TWISTED PAIR GND (PIN5) 6 DATA 5 24 TWISTED PAIR GND (PIN6) 7 DATA 6 25 TWISTED PAIR GND (PIN7) 8 DATA 7 26 TWISTED PAIR GND (PIN8)
9 DATA 8 27 TWISTED PAIR GND (PIN9) 10 ACK 28 TWISTED PAIR GND (PIN10) 11 BUSY 29 TWISTED PAIR GND (PIN11) 12 PE 30 TWISTED PAIR GND (PIN31) 13 SELECT 31 INIT (Not used) 14 AUTOFD (Not used) 32 FAULT 15 NC 33 0V 16 0V 34 NC 17 CHASSIS GND 35 NC 18 +5V 36 SELECTIN (Not used)
19
36
18 1
- 7 -
4. KEY OPERATION FUNCTIONS
4.1 SYSTEM MODE (POWER UP WITH KEY PRESSED)
There are 6 LED light indications with following sequence. (1) Solid orange indicates the printer has entered into system mode
(2) Green and red alternate (3) Flashing orange (4) Green and orange alternate (5) Orange and red alternate (6) Solid green
4.1.1 Firmware downloading mode
1) Release FEED key at LED light sequence (2) and push again immediately.
2) Copy the firmware file to printer parallel port by the following command is MS-DOS pr ompt mode.
C:\>COPY XXXXXX.NEW /B LPT1:
3) The LED will change to green color and blinking every one-second. When firmware update is completed, printer will reset automatically.
4.1.2 Auto call cancellation
1) Release FEED key at LED light sequence (3).
2) The printer will cancel Auto Call execution. (Refer to 6.3.24)
4.1.3 Parameter clearance
1) Release FEED key at LED light sequence (4).
2) The printer will restore to manufacturer’s default setting and reset automatically.
4.1.4 Sensor calibration
1) Install a label/tag roll with the sensor located at proper position.
2) Release FEED key at LED light sequence (5).
3) The printer will set the sensor property for the installed media and measures label length.
4.1.5 Self-test / Dump mode
1) Release FEED key at LED light sequence (6).
2) The printer will print self-test then enter the dump mode.
- 8 -
[Self-test printing]
a. Printing program version & check sum b. Printing various parameters
Parameter Initial value
Print density fine adjustment 0 Print position fine adjustment 0 mm Amount for finely the cut position 0 mm Type of character code PC-850 Font of zero 0 (without slash) Communication speed 9600 bps Data length 8 bits Stop bit length 1 bit Parity NONE Transmission control 2 Forward feed wait ON Control code AUTO Feed key function FEED Euro code B0 H X-coordinate adjustment 0 mm Sensor selection Transmissive
4.2 ONLINE MODE FUNCTIONS
The online mode provides the following functions for issuing labels. (1) Issuing labels (by external equipment interface commands) (2) Paper feed (by the [FEED] key) (3) Error indication (4) Sensor selection
Transmissive sensor, reflective sensor and non-sensor mode are available. To select the sensor f or the media, turn on power to let printer online mode. Open printer cover, the LED will be turned off. Press FEED k ey for over 5 seconds , and then releas e the button, the n printer will enter sensor selection mode. In sensor selection mode, if LED is changed to green color and press FEED key again, then reflective sensor is selected. If LED is changed to orange color and press FEED key again, then non-sensor is selected. If LED is changed to red color and press FEED key again, then transmissive sensor is selected.
- 9 -
5. TRANSMISSION SEQUENCE
This section describes the outline of the transmission sequence.
5.1 INITIALIZATION
Writable characters, logo, and PC interface commands must be stored before the label issue operation.
(1) Storing writable characters and logo
(Add/change)
No
z
Storing PC interface commands
z
Label issue operation
Power ON
No
<New>
Yes
Memory board
Format Command
Bit Map Writable
Character Command
Completion of storing
all characters
Yes
[ESC] J1: Formats the flash memory on the
memory board.
[ESC] XD: Stores writable characters or a
logo on the flash memory board.
NOTES: (1) The storage of PC commands is only performed if it is required. (2) When the flash memory board is used, and the Memory board Format Command is not
sent before storing already stored writable characters or logos, memory will be taken up with every such storing.
(3) When the flash memory board is used, and another operation (storing PC interface
commands or label issue operation) is performed after storing writable characters or logos, the image buffer will be cleared automatically.
(4) If another storing operation does not take place after storing writable characters or
logos, the printer automatically enters the online mode (label issue operation) after about 10 seconds. In this case, when the flash memory board is used, the image buffer will be cleared automatically.
- 10 -
(2) Storing PC interface commands
(Add/change)
Power ON
No
<New>
Yes
Memory board
Format Command
Save Start Command
Label Size Set Command
Position Fine
Adjust Command
Print Density Fine
Adjust Command
Image Buffer Clear Command
[ESC] J1: Formats the flash memory board.
[ESC] XO: Declares the start of saving PC interface
commands.
[ESC] D: Sets the label size.
[ESC] AX: Adjusts the feed length, cut position, and
back feed length.
[ESC] AY: Adjusts the print density.
[ESC] C: Clears the image buffer.
z z
Line Format Command
Bit Map Font Format Command
Outline Font Format Command
Bar Code Format Command
Bit Map Font Data Command
Save Terminate Command
No
Storing writable characters or logos Label issue operation
Completion of
all storing
Yes
[ESC] LC: Sets the line format and draws it.
[ESC] PC: Sets the bit map font format.
[ESC] PV: Sets the outline font format.
[ESC] XB: Sets the bar code format.
[ESC] RC: Draws data of the bit map font. [ESC] XP: Declares the termination of saving PC
interface commands.
NOTES: (1) The storage of PC commands is only performed if it is required. (2) When the flash memory card is used, and the Memory board Format Command is not
sent before storing already stored PC interfac e commands, memory will be taken up with every such storing.
(3) When the flash memory board is used, and another operation (storing writable char acters
or logos, label issue operation) is performed after storing PC interface commands, the
image buffer will be cleared automatically. (4) Select commands to be stored as the occasion demands. (5) If another storing operation does not take place after storing PC interface commands, the
printer enters the online mode (label issue operation) after about 10 seconds. In this
case, when the flash memory board is used, the image buffer will be cleared
automatically.
- 11 -
5.2 LABEL ISSUE OPERATION
j
j
An example of the label issue operation is described below. (1) Where the Saved Data Call Command is not used:
Label Size Set Command
Image Buffer Clear Command
Bit Map Font Format Command
Outline Font Format Command
Bar Code Format Command
Power ON
Place paper
Position Fine
Ad
ust Command
Print Density Fine Ad
ust Command
Feed Command
Line Format Command
[ESC] D: Sets the label size. [ESC] AX: Adjusts the feed length, cut position, and
back feed length.
[ESC] AY: Adjusts the print density. [ESC] T: Feeds one sheet of paper and aligns it
with the first printing position.
[ESC] C: Clears the image buffer. [ESC] LC: Sets the line format and draws it. [ESC] PC: Sets the bit map font format.
[ESC] PV: Sets the outline font format.
[ESC] XB: Sets the bar code format.
Bit Map Font Data Command
Outline Font Data Command
Bar Code Data Command
Issue Command
Yes
<Change data issue>
Yes
<Format change>
Yes
<Label change>
Power OFF
No
No
No
[ESC] RC: Draws bit map font data. [ESC] RV: Draws outline font data. [ESC] RB: Draws bar code data. [ESC] XS: Issues (prints) the label.
NOTES: (1) When placing new paper, the Label Size Set Command and Feed Command must
always be sent. When using the same paper after the power is turned off and on, the Label Size Set Command and Feed Command may be omitted.
(2) After the power is turned off and on, the Bit Map Font Format Command, the Outline
Font Format Command, and the Bar Code Format Command should be sent as occasion demands because they are not protected in memory.
- 12 -
(2) Where the Saved Data Call Command is used:
Saved Data Call Command
Bit Map Font Data Command
Outline Font Data Command
Bar Code Data Command
Yes
Yes
Power ON
Place paper
Feed Command
Issue Command
<Change data issue>
No
<Label change>
[ESC] XQ: Calls the label format stored in the flash
memory board.
[ESC] T: Feeds one sheet of paper and aligns it with
the first printing position.
[ESC] RC: Draws bit map font data.
[ESC] RV: Draws outline font data.
[ESC] RB: Draws bar code data.
[ESC] XS: Issues (prints) the label.
Power OFF
No
NOTES: (1) When placing new paper, the Feed Command must always be sent. When us ing the
same paper after the power is turned off and on, the Feed Command may be omitted.
(2) If the option for “automatic call at power on” for the Saved Data Call Command has
previously been selected, the Saved Data Call Command may be omitted after the power is turned off and on.
- 13 -
6. I NTERFACE COMM ANDS
[
y
6.1 OUTLINE OF COMMANDS
(1) Format of Interface command
ESC Command & Data LF NUL
z The length from [ESC] to [LF] [NUL] must be as specified by each command. z There are the following three kinds of control codes:
c ESC (1BH), LF (0AH), NUL (00H)
d { (7BH), | (7CH), } (7DH)
(2) How to use reference
Function Describes the outline of the function of the command.
Format Shows the format of the command. The format designation method should conform to the following rules:
z
Each set of small letters (such as aa, bbbb) indicates a parameter item.
z
An item enclosed in parentheses may be omitted.
z
“…” indicates the repetition of an item.
z
Br ack ets and parenthes es are us ed only in coding, and must not be tr ansm itted
in practice.
z
Other symbols must always be inserted at the designated positions before being
transmitted.
Term Explains the term(s) used in the format.
z
“0 to 999” described in the entry range indicates that up to 3-digit var iable-length
entry is allowed. (Entry of “001” or “009” is also possible.) “000 to 999” indic ates that entry must be fixed as 3 digits.
Explanation Explains the command in detail.
Note Supplementary explanation of the command.
Refer to Related commands
Examples Explains the command examples.
The above corresponds to the transfer of the following:
(3) Precautions
The commands and parameters described in this specification must always be used. If any command or parameter other than those covered in this specification is used, the printer operation will not be guaranteed. The commands must be used in the online mode. If an command is transm itted in system mode, the printer will not operate. However, only the Reset Command can be used.
ESC] T20C30 [LF] [NUL]
1B 54 30 30 43 33 32 0A 00
[ESC]
T 2 0 C 3 0 [LF] [NUL]
- 14 -
NOTES:
1. If a command is not recognized as a command, it is ignored. e.g.) [ESC] H, [ESC]AA, and so on.
2. If the num ber of digits of the parameter is specified, when the num ber of in put digits does not match the specified number of digits, a command error occurs.
3. When a parameter is set to any character/value other than specified characters/values, a command error occurs.
e.g.) In the case that a value should be set for param eter, “0001” is acc eptable, however, “000A” results in an error.
In the case that a character should be set f or param eter, “A” is acceptable, however, “1” results in an error.
4. If the value range of the parameter is specif ied, when any value beyond the range is enter ed, a command error occurs. (Except for the D command)
5. When a parameter is missing, which cannot be omitted, a command error occurs.
6. The parameter should be set to either a value or a character, even if the parameter is defined as “Ignore”.
e.g.) a : Ignore If it is omitted, a command error occurs, except when the parameter is omissible. If the number of digits of the parameter is specified, when the number of input digits does not
match the specified number of digits, a command error occurs.
7. W hen any value/character other than available values/characters for the parameter function is s et, a command error occurs.
e.g.) Parameter “e” for the LC command. e: Type of line 0: Line 1: Rectangle If “2” is set to parameter “e”, a command error occurs.
8. About D command
1) Parameter “aaaa”, “bbbb” and “cccc” When any value lager than max imum value is entered for these three parameters, the entered
value is internally changed to the maximum value. When any value smaller than minimum value is entered for these tree parameters, the entered value is internally changed to the minimum value.
2) When “aaaa” is smaller than “cccc”, a command error occurs.
3) When “aaaa – cccc < 2mm”, it is internally changed to “cccc = aaaa – 2mm”.
- 15 -
6.2 LIST OF COMMANDS
(1) Commands related to setting
Label Size Set Command [ESC] D......................................17
(2) Commands related to fine adjustment
Position Fine Adjust Command [ESC] AX....................................22
Print Density Fine Adjust Command [ESC] AY....................................27
(3) Commands related to clear
Image Buffer Clear Command [ESC] C......................................28
Clear Area Command [ESC] XR ...................................29
(4) Commands related to drawing format setting
Line Format Command [ESC] LC....................................31
Bit Map Font Format Command [ESC] PC ...................................35
Outline Font Format Command [ESC] PV....................................49
Bar Code Format Command [ESC] XB....................................63
(5) Commands related to print data
Bit Map Font Data Command [ESC] RC...................................94
Outline Font Data Command [ESC] RV ...................................97
Bar Code Data Command [ESC] RB .................................100
(6) Commands related to issue and feed
Issue Command [ESC] XS..................................113
Feed Command [ESC] T....................................123
Eject Command [ESC] IB ...................................128
Forward/Reverse Feed Command (Reserved for future) [ESC] U1, [ESC] U2.................129
(7) Commands related to writable characters
Storage Area Allocate Command [ESC] XF..................................131
Memory Card Format Command [ESC] J1...................................133
2-byte Writable Character Code Range Command [ESC] XE..................................134
Bit Map Writable Character Command [ESC] XD .................................135
(8) Commands related to graphics
Graphic Command [ESC] SG.................................146
(9) Commands related to PC command saving
Memory Card Format Command [ESC] J1...................................133
Save Start Command [ESC] XO.................................154
Save Terminate Command [ESC] XP..................................156
Saved Data Call Command [ESC] XQ.................................157
(10) Commands related to control
Reset Command [ESC] WR ................................158
Batch Reset Command [ESC] Z0..................................172
(11) Commands related to status
Status Request Command [ESC] WS ................................159
Receive Buffer Free Space Status Request Command [ESC] WB ................................160
Version Information Acquire Command [ESC] WV, [ESC] WI ...............162
(12) Commands related to printer information
Information Store Command [ESC] IG...................................165
Information Request Command [ESC] IR.................................. 166
(13) Commands related to parameter setting
Parameter Set Command [ESC] Z2;1...............................167
Fine Adjustment Value Set Command [ESC] Z2;2.............................. 170
- 16 -
6.3 COMMANDS FOR CREATING APPLICATION
6.3.1 LABEL SIZE SET COMMAND [ESC] D
Function Sets the size of a label or tag.
Format [ESC] Daaaa, bbbb, cccc (,dddd) [LF] [NUL]
Term aaaa: Pitch length of the label or tag
4 and 5 digits (in 0.1 mm units) 4 digits: Max. 6096(609.6 mm) 5 digits: Max. 06096 (609.6 mm)
bbbb: Effective print width
Fixed as 4 digits (in 0.1 mm units)
cccc: Effective print length
4 and 5 digits (in 0.1 mm units) 4 digits: Max. 6096 (609.6 mm) 5 digits: Max. 06096 (609.6 mm)
dddd: (Omissible) Function: Ignore
Explanation
[Labels]
Origin of coordinates
(0, 0)
Effective print length
0
Y
[Print direction: Printing bottom first]
Backing paper
Label
Label pitch
X
Effective
print width
Paper feed direction
Effective print length
X
Y
0
Effective
print width
Paper feed direction
Backing paper
Label
Label pitch
Origin of coordinates
(0, 0)
[Printing direction: Printing top first]
- 17 -
[Tags]
Origin of coordinates
(0, 0)
Black mark (Back side of print)
Tag
Black mark (Back side of print)
Tag
Effective print length
[Setting range]
Stop position
Cut position
X
0
Y
Effective
print width
Paper feed direction
[Print direction: Printing bottom first]
I
Origin c
H
Origin d
Tag pitch
Effective print length
X
Y
0
Effective
print width
Paper feed direction
Tag pitch
Origin of coordinates
(0, 0)
[Printing direction: Printing top first]
Black mark (Back side
Stop position
E
B
Cut position
A
I
Origin
c
H
Origin d
of print)
Tag
F
A
G D C
Paper feed direction
G C
[Labels] [Tags]
- 18 -
[mm]
Model B-SV4D
Item Method Batch Strip Cutter Thermal head dot density 8 dots/mm
Thermal head width 108 A: Label pitch Tag pitch Min. 10.0 25.4 15.0
Label
Max. 609.6
Min. 10.0 15.0 Tag
Max. 609.6
B: Label length
Min. 10.0 25.4 15.0
Max. 607.6 C: Backing paper width Min. 25.4 Tag width Max. 112 D: Label width Min. 22.4
Max. 109 E: Label-to-label gap Min. 2.0 6.0
Max. 10.0 F: Black m ark length Min. 2.0 6.0
Max. 10.0 G: Eff ective print width Min. 13
Max. 108 ± 0.2 H: Effective print length Min. 8.0 23.4 13.0
Label
Max. 607.6
Min. 8.0 13.0 Tag
Max. 607.6 607.6
I: Slow up interval 1.0
- 19 -
Notes (1) Before changing the label size or type of sensor, the Label Size Set Command
must first be transmitted.
(2) The Label Size Set Comm and is pr otected in m em ory (even if the power is turned
off).
(3) After sending the Label Size Set Command, one sheet of paper must be f ed by the
Feed Command ([ESC] T) and must be aligned with the first print position pr ior to printing.
(4) The origin of drawing coordinates, print stop position (head pos ition at stop), and
cut position are determined according to the parameters of the Label Size Set Command as shown in the figure on the preceding page. For the print stop position in strip issue mode, refer to the section of the Position Fine Adjust Command. The effective print area is centered on the label/tag.
(5) Printing cannot be perform ed in the slow up (1 mm) and slow down (1 m m) ar eas.
Consequently, [A
: label/tag pitch] - [H: effective print length] 2 mm must be
assumed.
(6) The origin of drawing coordinates, print stop position (head pos ition at stop), and
cut position are adjustable by the Fine Adjust Commands and ac cor ding to the f ine adjustment settings in System mode.
(7) The tag rotation designation of the Is sue Command ([ESC] X S) causes the origin
of drawing coordinates to be origin c in the case of “printing bottom first” and to be origin d in the case of “printing top first”, as shown in the figure.
(8) The parameters must be as shown in the figure and table. Any value or paper
outside the range results in a failure of printing or an error.
(9) The setting for the backing paper width is used for the control of the backing paper
rewind motor for a strip issue. Therefore, this setting is not ef fective f or any mode other than strip issue mode.
- 20 -
Examples (1) Labels (2) Tags
50.8 mm
46.8 mm
Effective print area
Label
76.2 mm
72.2 mm
[ESC] D0508, 0760, 0468, 0820 [LF] [NUL] [ESC] D0762, 0996, 0722 [LF] [NUL] [ESC] T20C30 [LF] [NUL] [ESC] T10C30 [LF] [NUL]
76.0 mm Backing paper
82.0 mm
Black mark (Back side of print)
Effective print area
Tag
99.6 mm
- 21 -
6.3.2 POSITION FINE ADJUST COMMAND [ESC] AX
Function c Adjusts the feed value s o that the label will be shifted f orward or back ward from the
automatically set first print start position.
d Adjusts the c ut position so that the label will be cut at a position shifted forward or
backward from the automatically set cut position, or adjusts the strip position s o that the label will be shifted forward or backward from the automatically set strip position.
e Adjusts the value for feeding the label back to the home position after cutting, or
adjusts the value for feeding the label back to the home position after stripping.
Format [ESC] AX; abbb, cddd, eff [LF] [NUL]
Term a: Indicates the direction, forward or backward, in which a fine adjustment is to
be made. +: Backward
-: Forward
bbb: Feed value to be finely adjusted.
000 to 500 (in 0.1 mm units)
c: Indicates the direction, forward or backward, in which a cut position
(or strip position) fine adjustment is to be made. +: Backward
-: Forward If cutter and strip module is not installed, this value is ignored.
ddd: Amount for finely adjusting the cut position (or strip position).
000 to 350 (in 0.1 mm units) If cutter and strip module is not installed, this value is ignored.
e: Indicates whether the back feed is to be increased or decreased.
+: Increase
-: Decrease
ff: Amount for finely adjusting the back feed.
00 to 99 (in 0.1 mm units)
- 22 -
Explanation [Feed Length Fine Adjustment] (To finely adjust the feed for shifting backward or forward)
0.0 mm
One label
First print position
+3.0 mm
One label
First print position
-3.0 mm
Paper feed direction
First print position
One label
[Cut Position Fine Adjustment] (To finely adjust the cut position for shifting backward or
forward)
0.0 mm
Cut position
+3.0 mm
Cut position
- 3.0 mm
Cut position
Paper feed direction
- 23 -
[Strip Position Fine Adjustment]
0.0 mm
+3.0 mm
-3.0 mm
Printing in strip issue m ode is stopped at the position where the
distance from the middle point of the label-to-label gap to the
3 mm 2 mm
end of the strip shaft is 3 mm, since the label-to-label gap is assumed to be 2 mm.
W hen the print stop position is not proper, the print s top position
2 mm
should be adjusted using the strip position f ine adjust function. When the label-to- label gap is 5 mm or mor e, the effective print length should be set to the maxim um (label pitch -2 mm). T hen, the print stop position should be adjusted using the st rip pos ition fine adjust function.
[Back Feed Fine Adjustment] (To finely adjust the back feed for shifting backward or forward)
0.0 mm
First print position (home position after back feed)
+3.0 mm
First print position (home position after back feed)
- 3.0 mm
First print position (home position after back feed)
Paper feed direction
- 24 -
Notes (1) If the feed value fine adjustm ent, cut position (or strip position) fine adjustm ent or
back feed value fine adjus tment has been set in system mode (k ey operation on the printer), the fine adjustm ent value will be the fine adjustment in system m ode. The max. fine adjustment values are as follows. However, the max. feed fine adjustment value is limited within the label pitch.
Feed value fine adjustment...................................................±50.0 mm
Cut position (or strip position) fine adjustment......................±35.0 mm
Back feed value fine adjustment...........................................±9.9 mm
(2) After changing the fine adjustm ent value by this command, one label must be fed
by the Feed Command ([ESC] T) to adjust the first print position.
(3) Each fine adjustment value is protected in m emory (even if the power is turned
off).
(4) If a fine adjustment value is improper, printing will not be performed correctly. For ex ample, if the back f eed fine adjustm ent value is not set properly,
the print positions without cutting and after cutting will be different from each other. If the label is fed back excessively, the paper will not be fed correctly during printing.
In the strip issue mode, the print position may differ between the first
label and the second label. The back f eed fine adjustment is used to adjust the length so that the label is correctly fed back to the position placed before the forward feed is performed.
(5) The cut position (or the strip position) fine adjustment and back feed value fine
adjustment are effective only when the printer is in cut issue or strip issue mode.
- 25 -
Examples (1) Cut issue
3.5 mm Cut
2.0 mm
Preprinted
2.0 mm
z
Finely adjust the print
position by +2.0 mm .
z
Finely adjust the cut
position by +3.5 mm .
z
Finely adjust the back
feed value by +1.0 mm . (3.0 - 2.0 = 1.0)
3.0 mm
Cut
Paper feed
[ESC] AX; +020, +035, +10 [LF] [NUL]
direction
[ESC] T21C30 [LF] [NUL]
(2) Strip issue
1.0 mm
z
A B C
1.0 mm
Finely adjust the strip
position by +2.0 mm .
z
Finely adjust the print
position by +1.0 mm .
3.0 mm
A B C
[ESC] AX; +010, +020, +00 [LF] [NUL]
Paper feed
direction
[ESC] T20D30 [LF] [NUL]
- 26 -
6.3.3 PRINT DENSITY FINE ADJUST COMMAND [ESC] AY
Function Adjusts the automatically set print density.
Format [ESC] AY; abb, c [LF] [NUL]
Term a: Indicates whether to increase or decrease the density.
+: Increase (darker)
-: Decrease (lighter)
bb: Print density fine adjustment value
00 to 10 (in units of 1 step)
c: Indicates the mode for fine adjustment, thermal transfer or direct thermal.
1: Direct thermal
Explanation (1) T he print density fine adjustment is per formed by adjusting the tim e that voltage is
applied to the thermal head.
(2) If the print density fine adjustment value has been set in system mode (key
operation on the printer), the fine adjustment value will be the sum of the fine adjustment by this comm and and the fine adjustment in system mode. T he max. fine adjustment values for thermal transfer/direct thermal print modes are each ±10.
(3) The fine adjustm ent values in thermal transfer print mode and direct thermal print
mode can be set independently.
(4) T he Print Density Fine Adjust Com mand is protected in m emory (even if the power
is turned off).
(5) The fine adjustment value for both the fine adjust comm and and the system mode
fine adjustment is 00 at shipment from the factory.
Notes Even if the print density is set to the value of +08 to +10, it will be automatically
converted to +07 in order to protect the thermal head.
Examples To set the density in thermal transfer print mode to -2. [ESC] AY; -02, 0 [LF] [NUL]
To set the density in direct thermal print mode to +3. [ESC] AY; +03, 1 [LF] [NUL]
- 27 -
6.3.4 IMAGE BUFFER CLEAR COMMAND [ESC] C
Function Clears the image buffer for drawing characters, lines, bar codes, and graphics.
Format [ESC] C [LF] [NUL]
Explanation (1) After changing the label size, the image buffer must be cleared. (2) The increment/decrement designation (described later) is valid until the Image
Buffer Clear Command is transmitted.
(3) T he link field designation (described later) is eff ective until the Image Buf fer Clear
Command is sent.
Examples [ESC] D0508, 0760, 0468 [LF] [NUL]
[ESC] T20C51 [LF] [NUL] [ESC] C [LF] [NUL] [ESC] RC000; ABC [LF] [NUL] [ESC] RC001; DEF [LF] [NUL] [ESC] XS; I, 0001, 0002C3000 [LF] [NUL]
- 28 -
6.3.5 CLEAR AREA COMMAND [ESC] XR
Function Clears the designated area or reverses the white/black dot pattern in the designated
area in the drawing area.
Format [ESC] XR; aaaa, bbbb, cccc, dddd, e [LF] [NUL]
Term aaaa: Designated area start point X-coordinate
Fixed as 4 digits (in 0.1 mm units)
bbbb: Designated area start point Y-coordinate
4 or 5 digits (in 0.1 mm units)
cccc: Designated area end point X-coordinate
Fixed as 4 digits (in 0.1 mm units)
dddd: Designated area end point Y-coordinate
4 or 5 digits (in 0.1 mm units)
e: Type of clear
A: Clears the contents in the designated area to zeros. B: Reverses the white/black dot pattern in the designated area.
Explanation
Origin of
coordinates
(0, 0)
Backing paper
Label
Label
End point
Start point
Effective
print width
Origin of coordinates
(0, 0)
Paper feed direction
Effective
print length
0
Y
X
Start point
End point
Effective
print width
Paper feed direction
Effective
print length
X
Y
0
[Print direction: Printing bottom first] [Print direction: Printing top first]
Notes (1) The result is the same even if the start and end point coordinates are reversed. (2) The result is the same even if the start and end point coordinates are set to an
upper right and a lower left points, respectively.
(3) The start and end coordinates of the designated area must be set within the
effective print area set by the Label Size Set Command ([ESC] D).
- 29 -
[Effective print area] [mm]
Model B-SV4D
Item Method Batch Strip Cutter Effective print width Min. 13.0
Max. 108 ± 0.2 Effective print length Min. 8.0 23.4 13.0
Label
Max. 607.6
Min. 8.0 Tag 13.0
Max. 607.6 607.6
Examples
Origin (0, 0)
Start point of designated area
58.5 mm
10.0 mm
34.5 mm
76.2 mm
[ESC] XR; 0345, 0100, 0762, 0585, A [LF] [NUL]
[ESC] RC000; ABC [LF] [NUL] [ESC] RC001; DEF [LF] [NUL] [ESC] XS; I, 0001, 0002C3000 [LF] [NUL]
Effective print area
Designated area
End point of designated area
- 30 -
6.3.6 LINE FORMAT COMMAND [ESC] LC
Function Sets the line format and draws the line.
Format [ESC] LC; aaaa, bbbb, cccc, dddd, e, f (, ggg) [LF] [NUL]
Term aaaa: Start point X-coordinate
Fixed as 4 digits (in 0.1 mm units)
bbbb: Start point Y-coordinate
4 or 5 digits (in 0.1 mm units)
cccc: End point X-coordinate
Fixed as 4 digits (in 0.1 mm units)
dddd: End point Y-coordinate
4 or 5 digits (in 0.1 mm units)
e: Type of line
0: Line (horizontal, vertical, slant) 1: Rectangle
f: No. of line width dots
1 to 9 (in 0.1 mm units)
ggg: Radius of rounded corners of rectangles
(Omissible. If omitted, the chamfering process for rectangle corners is not performed.) Fixed as 3 digits (in 0.1 mm units)
Explanation
Origin of
coordinates
(0, 0)
Backing paper
Label
Effective
print length
Start point
End point
Effective
print length
X
0
Y
Effective
print width
Paper feed direction
X
Backing paper
Label
End
point
Effective
print width
Y
Paper feed direction
0
Start point
Origin of coordinates
(0, 0)
[Print direction: Printing bottom first] [Print direction: Printing top first]
- 31 -
[Line]
(
)
(1) Horizontal line (In the case of |Y
(X1,Y1) (X2,Y2)
(2) Vertical line (In the case of |X
(X1,Y1)
2
(X
2,Y2
)
Line width
(3) Slant line A ( |X
- X1| |Y2 - Y1| ) (4) Slant line B ( |X2 - X1| > |Y2 - Y1| )
2
- Y1| = 0)
2
- X1| = 0)
Line width
(X1,Y1)
(X1,Y1)
(X1,Y1)
2
Line width
Line width
(X1,Y1)
(X
2,Y2
)
Line width
(X2,Y2)
Line width
X2,Y
(X2,Y2)
- 32 -
[Rectangle]
(1) Radius of rounded corners = 000 or parameter omitted
(X1,Y1)
(X
2,Y2
)
(X2,Y2) (X1,Y1)
Line width
(2) Radius of rounded corners 000
(X1,Y1)
Radius
Line width
Line
width
Line width
Line width
(X2,Y2)
Line width
Notes (1) In line designation, a horizontal line, vertical line, or slant line A/B is drawn
according to the start and end point coordinates. (2) The result is the same even if the start and end point coordinates are reversed. (3) The start and end point coordinates must be set so that the result of line drawing
will be within the effective print area set by the Label Size Set Command ([ESC]
D).
- 33 -
(4) Program ming the radius of the rounded corner is ef fective only when the type of
line is 1 (rectangle). When the type of line is 0, designation of the radius is
ignored. When the type of line is 1, and the radius of the rounded corner is 000 or omitted,
a rectangle is printed. (5) A circle is assumed when:
| X
- X1 |
2
2
=
| Y2 - Y1 |
2
[Radius of rounded corners]
[Effective print area] [mm]
Model B-SV4D
Item Method Batch Strip Cutter Effective print width Min. 13.0
Max. 108 ± 0.2 Effective print length Min. 8.0 23.4 13.0
Label
Max. 607.6
Min. 8.0 Tag 13.0
Max. 607.6 607.6
Examples
28.0 mm
5.0 mm
20.0 mm
[ESC] C [LF] [NUL]
[ESC] LC; 0200, 0350, 0305, 0050, 0, 4 [LF] [NUL] [ESC] LC; 0200, 0050, 0200, 0280, 0, 4 [LF] [NUL] [ESC] XS; I, 0001, 0002C3000 [LF] [NUL]
Origin (0, 0)
Effective print area
0.4 mm
0.4 mm
30.5 mm
- 34 -
6.3.7 BIT MAP FONT FORMAT COMMAND [ESC] PC
Function Sets the format indicating on the label at which the bit map f ont is to be printed and how
it is to be printed.
Format c [ESC] PCaaa; bbbb, cccc, d, e, ff (, ghh), ii, j (, Jkkll) (, Mm) (, noooooooooo)
(, Zpp) (, Pq) (=rrr------rrr) [LF] [NUL]
d [ESC] PCaaa; bbbb, cccc, d, e, ff (, ghh), ii, j (, Jkkll) (, Mm) (, noooooooooo)
(, Zpp) (, Pq) (; ss
, ss2, ss3, ------, ss20) [LF] [NUL]
1
Term aaa: Character string number
000 to 199 (two digits, 00 to 99, also acceptable)
bbbb: Print origin of X-coordinate of character string
Fixed as 4 digits (in 0.1 mm units)
cccc: Print origin of Y-coordinate of char acter string
4 or 5 digits (in 0.1 mm units)
d: Character horizontal magnification
1 to 9 (in magnifications)
* Two digit designation enables magnifications in 0.5 units
(05 ~ 95: 0.5 to 9.5 magnifications). The magnification can be designated in 0.1 units between 0.5 to 1.
(06 ~ 09: 0.6 to 0.9 magnifications). d d Designation in 0.5 magnification units : 0 or 5 (5 to 9, up to 1 magnification)
Designation in magnifications : 0 to 9 e: Character vertical magnification
1 to 9 (in magnifications)
* Two digit designation enables magnifications in 0.5 units
(05 ~ 95: 0.5 to 9.5 magnifications). The magnification can be designated in 0.1 units between 0.5 to 1.
(06 ~ 09: 0.6 to 0.9 magnifications). e e Designation in 0.5 magnification units : 0 or 5 (5 to 9, up to 1 magnification)
Designation in magnifications : 0 to 9 ff: Type of font
E: Times Roman (Bold) 14 point
J: Helvetica (Bold) 12 point M: Presentation (Bold) 18 point N: Letter Gothic (Medium) 9.5 point O: Prestige Elite (Medium) 7 point Q: Courier (Medium) 10 point
U: Kanji (16×16 dots)/Writable character (16×16 dots) (Square Gothic)
For the JA model only
V: Kanji (24×24 dots)/Writable character (24×24 dots) (Square Gothic) W: Kanji (32×32 dots)/Writable character (32×32 dots) (Square Gothic) X: Kanji (48×48 dots)/Writable character (48×48 dots) (Square Gothic)
- 35 -
01 (a): Writable character 1 (1×1 dot to 720×720 dots)
to
40 (a): Writable character 40 (1×1 dot to 720×720 dots) 51 (a): 2-byte code set writable character 1 (1×1 dot to 720×720 dots)
to
55 (a): 2-byte code set writable character 5 (1×1 dot to 720×720 dots) a: Drive
(Omissible. If omitted, flash ROM on the CPU board is selected.)
0: Flash ROM on the CPU board
1:Flash ROM on the memory board (Option) 2:Flash ROM on the memory board (Option)
* The following fonts are proportional: E, J ghh: Fine adjustment of character-to-character space
(Omissible. If omitted, space is adjusted according to the designated font.)
g: Designates whether to increase or decrease the character-to-character
space. +: Increase
-: Decrease
hh: No. of space dots between characters
00 to 99 (in dots)
ii: Rotational angles of a character and character string
00: 0° (char.) 0° (char.-string) 11: 90° (char.) 90° (char.-string) 22: 180° (char.) 180° (char.-string) 33: 270° (char.) 270° (char.-string)
j: Character attribution
B: Black character W (aabb): Reverse character
aa: No. of dots from the character string to the end of the black
background in the horizontal direction
bb: No. of dots from the character string to the end of the black
background in the vertical direction
aa: 01 to 99 (in units of dots)
bb: 01 to 99 (in units of dots) F (aabb): Boxed character aa: No. of dots from the character string area to the box in the
horizontal direction bb: No. of dots from the character string area to the box in the vertical
direction aa: 01 to 99 (in units of dots)
bb: 01 to 99 (in units of dots) C (aa): Stroked out character aa: No. of dots from the character string area to the end of the stroke aa: 01 to 99 (in units of dots) * Descriptions in parentheses are omissible.
(If omitted, it is character magnification (the larger one of horizontal or vertical magnifications) × 6 dots.)
- 36 -
Jkkll: Bold character designation
(Omissible. If omitted, this process is not performed.)
kk: No. of horizontal shift dots
00 to 16 (in dots)
ll: No. of vertical shift dots
00 to 16 (in dots)
Mm: Type of check digits to be attached.
(Omissible. If omitted, this process is not performed)
m: Type of check digit
0: Modulus 10 (Draws data and check digit)
1: Modulus 43 (Draws data and check digit) 2: DBP Modulus 10 (Draws data and check digit)
noooooooooo: Increment and decrement (Omissible. If omitted, incrementing/decrementing is not performed.) n: Designates whether to increment or decrement.
+: Increment
-: Decrement
oooooooooo: Skip value 0000000000 to 9999999999
Zpp: Zero suppression
(Omissible. If omitted, the zero suppression process is not performed.)
pp: No. of zeros to be suppressed 00 to 20
Pq: Alignment (Omissible, If omitted, the alignment is set to left.) q: Designates the character position 1: Left
2: Center 3: Right
4aaaa: Equal space aaaa: X direction of character string area
0050 to 1040 (in 0.1 mm units) bbb: Line feed length
010 to 500 (in 1 mm units) cc: Number of lines
01 to 99 rrr------rrr: Data string to be printed (Omissible)
Max. 255 digits
ss
, ss2, ss3, ------, ss20: Link field No. (Omissible)
1
01 to 99 (1 to 99 can be also used.) Up to 20 fields can be designated using commas.
- 37 -
Explanation (1) Character string number
(
W hen drawing by the Data Command ([ESC] RC), the form at designated by the
character string number is selected.
(2) Print origin of coordinates
Origin of
coordinates
0, 0)
Backing paper
Label
Backing paper
Label
Effective
print length
X
0
Y
Sample
Effective print
width
Print origin of coordinates
Paper feed direction
Effective
print length
X
Print origin of coordinates
Origin of
Effective print
Y
0
width
Paper feed direction
coordinates
(0, 0)
[Printing direction: Printing bottom first] [Printing direction: Printing top first]
The print origin of coordinates mus t be set so that the result of character drawing will be within
the effective print area set by the Label Size Set Command ([ESC] D).
- 38 -
[Effective print area] [mm]
Model B-SV4D
Item Method Batch Strip Cutter Effective print width Min. 13.0
Max. 108 ± 0.2 Effective print length Min. 8.0 23.4 13.0
Label
Max. 607.6
Min. 8.0 Tag 13.0
Max. 607.6 607.6
(3) Horizontal magnification and vertical magnification
Vertical magnification
Horizontal magnification
Horizontal
magnification
Vertical
magnification
- 39 -
g
[Relationship between drawing coordinates and magnification]
Point of
origin
Char.
height
Left offset
Char. width
Horizontal spacing/
proportional spacing
(4) Type of font
Times Roman
Helvetica
Presentation
Letter Gothic
Prestige Elite
Point of origin of next char.
Char. height × Vertical magnification
Enlarge
Point of
ori
in
Char. Width ×
Horizontal magnificat i on
(Horizontal spacing/proportional spacing)
× Horizontal magnificat i on
Point of origin of next char.
Courier
- 40 -
(5) Fine adjustment of character-to-character space
B A
B A
B A
If no character-to-character space is specified or the number of space dots between
characters is 0, drawing will take place according to the horizontal spacing/proportional spacing determined for each character. If character-to-character space is specified, drawing will take place according to the value obtained by adding the character spacing/proportional spacing to the specified value.
Point of
origin
Point of origin of next char.
(Horizontal spacing/proportional
spacing) × Horizontal magnif i cation
No. of fine adjust spac e dots between characters
(6) Rotational angles of a character and character string
Origin
Sample
0° (00) 90° (11) 180° (22) 270° (33)
(7) Selection of character attribution
No. of dots in the horizontal direction
No. of dots in the vertical direction
Black characters
Reverse characters
No. of dots in the horizontal direction
No. of dots in the vertical direction
No. of dots in the horizontal direction
Boxed characters
Stroked out characters
- 41 -
(8) Bold character designation
Horizontally
bold
Vertically
bold
Vertically/
horizontally
(9) Check digit to be attached
When Modulus 10 or Modulus 43 is selected, the check digit of a data row is calculated and attached to the data row for drawing.
When DBP Modulus 10 is selected, the check digit of a data row is calculated and only the check digit is drawn. When the data includes any data other than the numerals , drawing is not performed.
bold
Horizontally
bold
90°
Vertically
bold
Vertically/
horizontally
bold
* DBP Modulus 10 is Modulus 10 for Deutsche Bundespost Postdienst only. (10) Increment/decrement
Printing is performed while the data is incremented or decremented every time a label is
issued. W here the data row exceeds the maximum number of digits (40), the data row will not be drawn. When the font type is 51, 52, 53, 54, or 55, the incrementing/decrem enting cannot be designated. (If it is designated, it is ignored, and the printer operates as if there was no designation.)
Initial value 0000 0000 0000 0000 999999
INC/DEC +10 +10 +10 +10 +1
Zero suppression
Not
designated
5 3 0 3
1st label 0000 0000 000 0000 999999
2nd label 0010 0010 010 0010 000
3rd label 0020 0020 020 0020 001
4th label 0030 0030 030 0030 002 5th label 0040 0040 040 0040 003
- 42 -
Letters and numerals for increment/decrement For the data string, up to 40 digits (including letters, numerals, and symbols) are
possible. Only the numerals are picked up and calculated for incrementing/decrem enting, and then are returned to the previous position to draw the data.
Example of increment/decrement calculation
Initial value 00000 A0A0A 7A8/9 A2A0A
INC/DEC +1 +1 +3 -3
1st label 00000 A0A0A 7A8/9 A2A0A
2nd label 00001 A0A1A 7A9/2 A1A7A
3rd label 00002 A0A2A 7A9/5 A1A4A 4th label 00003 A0A3A 7A9/8 A1A1A 5th label 00004 A0A4A 8A0/1 A0A8A
(11) Zero suppression
The leading zero(s) in a data row is replaced by a space(s) according to the designated
Designated origin
No. of zeros to be suppressed
0 1 2 2 3 4 5 Data 0000 0000 0000 0A12 0123 0123 0123 Print 0000 0 00 A12 123 0123 0123
number of digits. However, if the num ber of digits to be suppressed is greater than the data row, the data row will be drawn without zero suppression. Where the data row exceeds the maximum number of digits (40), the data row will not be drawn. W hen the font type is 51, 52, 53, 54 or 55, zero suppression is not designated. If it is designated, it is ignored, and the printer operates as if there was no designation.
(12) Alignment
No. of dots of charact er s tring area in the X direction
Left
Line feed length
Automatic line feed Automatic line feed
Automatic
No. of lines
Right E q u a l s p a c e Center
If characters are not placed on one line when equal space and automatic line feed is
designated, the following steps should be performed.
Decrease the value of the character-to-character s pace. When characters are not placed
on one line if the value is set to 0, return the value to its default, and then reduce the horizontal magnification for a character by 0.5.
If characters are still not placed on one line, repeatedly decrease the value of the
character-to-character space, and then reduce the horizontal magnification. When characters are not placed on one line if the character magnification is set to 0.5 and the character-to-character space is set to 0, the field is not drawn. (The same previous field is also not drawn.)
- 43 -
(13) Data string to be printed Drawing data can be programmed by designating the number of digits after the symbol
“=.” Up to 255 digits can be printed. If the num ber of digits exceeds 255, the ex cessive data will be discarded.
For the character code table, refer to the character code table mentioned later. (14) Link field No.
T he link field No. can be programm ed by designating it after the symbol “;”. Af ter the link
field No. is designated using the Format Comm and, the data s trings ar e linked by the Link Field Data Command to draw an image.
Up to 20 fields can be linked. The following shows an example of linked fields on the two continuous labels.
[Format Command]
[ESC] PC01;................... ; 01 [LF] [NUL] : Link field No. 1 is designated.
[ESC] PC02;................... ; 03 [LF] [NUL] : Link field No. 3 is designated.
[ESC] PC03;................... ; 04 [LF] [NUL] : Link field No. 4 is designated.
[ESC] XB01; ........................ ; 03, 04 [LF] [NUL] : Link fields No. 3 and No. 4 are
designated.
[ESC] PC04;................... ; 02 [LF] [NUL] : Link field No. 2 is designated.
[ESC] PC05;................... ; 03 [LF] [NUL] : Link field No. 3 is designated.
[ESC] PC06;................... ; 04 [LF] [NUL] : Link field No. 4 is designated.
[ESC] XB02; ........................ ; 03, 04 [LF] [NUL] : Link fields No. 3 and No. 4 are
designated.
Designating link field No. [Data Command]
[ESC] RC; A [LF] B [LF] ABCD [LF] 001 [LF] [NUL]
Link field No. 4 Link field No. 3 Link field No. 2 Link field No. 1
A
ABCD 001
*ABCD001*
ABCD 001
*ABCD001*
B
- 44 -
Notes
(1) The check digit attach, increment/decrement, and zero suppress processes are
performed accor ding to the following priority. If any of the conditions is improper, no drawing will take place.
For example, the zero(s) is replaced by a space(s) as a result of zero
suppression but the modulus 10 designated to be attached cannot be calculated.
Increment/decrement > zero suppression > attachment of check digit (2) Up to 32 fields for which incrementing/decrem enting has been designated can be
drawn. If the total of bit map font, outline font or bar code increm ent/decrement fields exceeds 32, drawing will take place without incrementing/dec rementing any excessive field. The field to be incremented or decremented is incremented or decremented until the Image Buffer Clear Command ([ESC] C) is transmitted.
[Example]
1) Format Command (Increment character string No. 001 (+1))
2) Format Command (No incrementing for character string No. 002)
3) Format Command (Increment character string No. 003 (+2))
4) Image Buffer Clear Command
5) Data Command (Character string No. 001 “0001”)
6) Data Command (Character string No. 002 “AB-”)
7) Data Command (Character string No. 003 “0100”)
8) Issue Command (2 labels)
9) Issue Command (1 label)
10) Image Buffer Clear Command
11) Data Command (Character string No. 002 “00000”)
12) Issue Command (1 label)
0001
AB - 0100
0002
AB - 0102
0003
AB - 0104
00000
- 45 -
(3) The Bit Map Font Form at Command may be connected to the Outline Font Format
Command when transmitted.
[ESC] P C001; 0100, 0150, 1, 1, A, 00, B [LF]
C002; 0350, 0180, 1, 1, A, 00, B [LF] C005; 0200, 0300, 25, 2, C, +05, 00, B, +0000000001 [LF] V01; 0500, 0400, 0100, 0100, A, 00, B [LF] [NUL]
(4) W hen the drawing data is changed per label issue dur ing printing, the field of the
drawing data for the previous label is automatically cleared using the character string number, then the next drawing data is printed. Therefore, the character string number which diff ers according to the drawing fields should be designated. Since the automatic field clear is not performed between the Clear Command ([ESC] C) and Issue Comm and ( [ESC] X S), the fixed data may be drawn using the same character string number. In this case, the Format Command and Data Command should be sent alternately. (After the Issue Command is sent, the f ields with the same character string number are automatically cleared until the Clear Command is sent.)
(5) T he link field designation is cleared by omitting the link f ield designation using the
same character string No. and reformatting data.
The link field designation can be also cleared by the Image Buffer Clear
Command.
(6) A print data string and link field No. cannot be programmed at the same time.
(7) The sam e character s tring number cannot be program med m ore than onc e in one
format (one page).
Refer to Bit Map Font Data Command ([ESC] RC)
Outline Font Format Command ([ESC] PV) Bar Code Format Command ([ESC] XB)
- 46 -
Examples
(1)
Origin (0, 0)
12.5 mm
30.0 mm
S a m p l e
Effective print area
55.0 mm
A B C D
20.0 mm
65.0 mm
[ESC] C [LF] [NUL]
[ESC] PC000; 0200, 0300, 1, 1, A, 00, B=ABCD [LF] [NUL] [ESC] PC001; 0200, 0125, 1, 1, C, 00, B [LF] [NUL] [ESC] PC002; 0650, 0550, 2, 2, G, 33, B, +0000000001 [LF] [NUL] [ESC] RC001; Sample [LF] [NUL] [ESC] RC002; 001 [LF] [NUL] [ESC] XS; I, 0002, 0002C3000 [LF] [NUL]
- 47 -
(2)
Origin (0, 0)
30.0
55.0 mm
mm
S 0 0 1
Effective print area
20.0 mm
65.0 mm
[ESC] C [LF] [NUL]
[ESC] PC001; 0200, 0300, 1, 1, C, 00, B; 01, 02 [LF] [NUL] [ESC] PV01; 0650, 0550, 0200, 0150, B, 33, B; 02 [LF] [NUL] [ESC] XB01; 0200, 0550, 3, 1, 03, 03, 08, 08, 03, 0, 0150; 01, 02 [LF] [NUL] [ESC] RC; S [LF] 001 [LF] [NUL] [ESC] XS; I, 0002, 0002C3000 [LF] [NUL]
- 48 -
6.3.8 OUTLINE FONT FORMAT COMMAND [ESC] PV
Function Sets the format to indicate the position on the label, at which the outline font is to be
printed and how it is to be printed.
~
Fonts other than TrueType font
Format c [ESC] PVaa; bbbb, cccc, dddd, eeee, f (, ghhh), ii, j (, Mk) (, lmmmmmmmmmm)
(, Znn) (, Po) (=ppp------ppp) [LF] [NUL]
d [ESC] PVaa; bbbb, cccc, dddd, eeee, f (, ghhh), ii, j (, Mk) (, lmmmmmmmmmm)
(, Znn) (, Po) (; qq
, qq2, qq3, ------, qq20) [LF] [NUL]
1
Term aa: Character string number
00 to 99
bbbb: Print origin of X-coordinate of the character string
Fixed as 4 digits (in 0.1 mm units)
cccc: Print origin of Y-coordinate of the character string
4 or 5 digits (in 0.1 mm units)
dddd: Character width
0020 to 0850 (in 0.1 mm units)
eeee: Height of the character
0020 to 0850 (in 0.1 mm units)
f: Type of font
A: TEC FONT1 (Helvetica [bold]) B: TEC FONT1 (Helvetica [bold] proportional)
ghhh: Fine adjustment of character-to-character space
(Omissible. If omitted, space is adjusted according to the designated font.)
g: Designates whether to increase or decrease the character-to-character
space. +: Increase
-: Decrease
hhh: No. of space dots between characters
000 to 512 (in dots)
ii: Rotational angles of a character and character string
00: 0° (char.) 0° (char.-string) 11: 90° (char.) 90° (char.-string) 22: 180° (char.) 180° (char.-string) 33: 270° (char.) 270° (char.-string)
- 49 -
j: Character attribution
B: Black character W (aabb): Reverse character
aa: No. of dots from the character string to the end of the black
background in the horizontal direction.
bb: No. of dots from the character string to the end of the black
background in the vertical direction.
aa: 01 to 99 (in units of dots)
bb: 01 to 99 (in units of dots)
F (aabb): Boxed character aa: No. of dots from the character string area to the box in the
horizontal direction.
bb: No. of dots from the character string area to the box in the vertical
direction.
aa: 01 to 99 (in units of dots)
bb: 01 to 99 (in units of dots)
C (aa): Stroked out character aa: No. of dots from the character string area to the end of the stroke aa: 01 to 99 (in units of dots)
* Descriptions in parentheses are omissible.
(If omitted, it is character size (the larger character width or height) ÷ 8 dots.)
Mk: Type of the check digit to be attached
(Omissible. If omitted, the check digit is not drawn.) k: Type of check digit 0: Modulus 10 (Draws data and check digit) 1: Modulus 43 (Draws data and check digit) 2: DBP Modulus 10 (Draws check digit only)
lmmmmmmmmmm: Increment and decrement
(Omissible. If omitted, incrementing/decrementing is not performed.)
l: Designates whether to increment or decrement.
+: Increment
-: Decrement
mmmmmmmmmm: Skip value
0000000000 to 9999999999
Znn: Zero suppression
(Omissible. If omitted, the zero suppression process is not performed.) nn: No. of zeros to be suppressed 00 to 20
- 50 -
Po: Alignment (Omissible. If omitted, the alignment is set to left.)
o: Designates the character position. 1: Left
2: Center 3: Right 4aaaa: Equal space
aaaa: X direction of character string area
0050 to 1040 (in 0.1 mm units)
ppp------ppp: Data string to be printed (Omissible)
Max. 255 digits
qq
, qq2, qq3, ------, qq20: Link field No. (Omissible)
1
01 to 99 (1 to 99 can be also used.) Up to 20 fields can be designated using commas.
- 51 -
~
TrueType font
Format [ESC] PVaa; bbbb, cccc, dddd, eeee, ff, g (, hiii), jj, k (,Lmm)(=ppp ------ ppp) [LF] [NUL]
Term aa: Character string number
00 to 99
bbbb: Print origin of X-coordinate of the character string
Fixed as 4 digits (in 0.1 mm units)
cccc: Print origin of Y-co ordinate of the character string
4 or 5 digits (in 0.1 mm units)
dddd: Character width
0020 to 0850 (in 0.1 mm units)
eeee: Height of the character
0020 to 0850 (in 0.1 mm units)
ff: Type of font
01: BalloonPExtBol (File name: Ballp_eb.ttf) 02: BlacklightD (File name: Blklt_rg.ttf) 03: BrushScrD (File name: Brush_rg.ttf) 04: CG Times (File name: Tec_cgt.ttf) 05: CG Times Bold (File name: Tec_cgtb.ttf) 06: CG Times Italic (File name: Tec_cgti.ttf) 07: Clarendon Condensed Bold (File name: Tec_clcd.ttf) 08: FlashPBol (File name: Flash_bd.ttf) 09: Garamond Kursiv Halbfett (File name: Tec_gmkh.ttf) 10: GoudyHeaP (File name: Gdyhp_rg.ttf) 11: GilliesGotDBol (File name: Gilli_bd.ttf) 12: GilliesGotLig (File name: Gilli_lt.ttf) 13: NimbusSanNovTUltLigCon (File name: Nsnct_ul.ttf) 14: Ryahd (File name: ryahd.ttf) 15: Ryahd Bold (File name: ryahdbd.ttf) 16: CG Triumvirate (File name: Trium.ttf) 17: CG Triumvirate Condensed Bold (File name: Triumcb.ttf) 18: Univers Medium (File name: Tec_uni.ttf) 19: Univers Bold (File name: Tec_unib.ttf) 20: Univers Medium Italic (File name: Tec_unii.ttf) 21: add_on TrueType font 1 (File name: addttf01.ttf) 22: add_on TrueType font 2 (File name: addttf02.ttf) 23: add_on TrueType font 3 (File name: addttf0e.ttf) 24: add_on TrueType font 4 (File name: addttf04.ttf) 25: add_on TrueType font 5 (File name: addttf05.ttf)
(*1) The font types 21 to 25 are the fonts that a user adds. These fonts can
be used by specifying “addttf01.ttf” to “addttf05.ttf” for the file names and installing these in the memory board.
(*2) For the fonts stored in flash ROM on the CPU board, parameter “ ff” for
the type of font corresponds to the font type according to the setting made when fonts are stored.
- 52 -
g: Drive
Indicates where the TrueType font files are stored.
0: Flash ROM on the CPU board
1: Flash ROM on the memory board (Option) 2: Flash ROM on the memory board (Option)
hiiii: Fine adjustment of character-to-character space
(Omissible. If omitted, space is adjusted according to the designated font.)
h: Designates whether to increase or decrease the character-to-character
space. +: Increase
-: Decrease
iii: No. of space dots between characters
000 to 512 (in dots)
jj: Rotational angles of a character and character string
00: 0° (char.) 0° (char.-string) 11: 90° (char.) 90° (char.-string) 22: 180° (char.) 180° (char.-string)
(Reserved for future)
33: 270° (char.) 270° (char.-string)
k: Character attribution
B: Black character
Lmm: True Type font size (Omissible)
Points (1/72 inch per point) ppp------ppp: Data string to be printed (Omissible)
Max. 255 digits
* TrueType fonts are not included in the standard character generator data. T herefore,
they must be installed in flash ROM on the CPU board, or the memory board. For installation of TrueT ype font and details, refer to the TrueType Font Specif ication (TAA-1184).
* If Arabic is selected as the character code, letters are written from right to left.
Origin
0° (00) 90° (11) 180° (22) 270° (33)
- 53 -
Explanation (1) Character string number W hen drawing by the Data Command ([ESC] RV), the format designated by the
character string number is selected.
(2) Print origin of coordinates
Origin of
coordinates
(0, 0)
Effective
print length
0
Y
Sample
Effective
X
print width
Paper feed direction
[Print direction: Printing bottom first] [Print direction: Printing top first]
Backing paper
Label
Print origin of coordinates
Effective
print length
X
Backing paper
Label
Print origin of coordinates
Origin of coordinates
Effective
print width
Y
Paper feed direction
0
(0, 0)
• The print origin of coordinates must be set so that the res ult of character drawing will be within the effective print area set by the Label Size Set Command ([ESC] D).
(3) True Type Font Size
To designate the font size and the unit is 1/72 inch per point.
- 54 -
[Effective print area] [mm]
Model B-SV4D
Item Method Batch Strip Cutter Effective print width Min. 13.0
Max. 108 ± 0.2 Effective print length Min. 8.0 23.4 13.0
Label
Max. 607.6
Min. 8.0 Tag 13.0
Max. 607.6 607.6
(4) Character width and character height
Char. width
Char.
height
Char.
height
Char.
height
Standard size
(256 × 256 dots)
Char. width
Char. width
- 55 -
(5) Fine adjustment of character-to-character space
B A
B A
B A
B A
If no character-to-character space is specified or the number of space dots
between characters is 0, drawing will take place according to the horizontal spacing/proportional spacing determined for each character. If character-to­character space is specified, drawing will take place according to the value obtained by adding the character spacing/proportional spacing to the specified value. When equal spac e is s elected for the alignm ent, the c haracter -to-c haracter space setting is invalid. (The horizontal spacing/proportional spacing are increased or decreased depending on the character size.)
A B C
(6) Rotational angles of a character and character string
(7) Selection of character attribution
Origin
Sample
0° (00) 90° (11) 180° (22) 270° (33)
A B
Black characters
No. of dots in the horizontal direction
No. of dots in the horizontal direction
Reverse characters
No. of dots in the horizontal direction
No. of dots in the vertical direction
Boxed characters
- 56 -
No. of dots in the vertical direction
Stroked out characters
(8) Increment/decrement Printing is performed while the data is increm ented or decremented each time a label is
issued. W here the data row exceeds the maximum number of digits (40), the data row will not be drawn.
Initial value 0000 0000 0000 0000 999999
INC/DEC +10 +10 +10 +10 +1
Zero suppression
1st label 0000 0000 000 0000 999999
2nd label 0010 0010 010 0010 000
3rd label 0020 0020 020 0020 001
4th label 0030 0030 030 0030 002 5th label 0040 0040 040 0040 003
Letters and numerals for increment/decrement For the data string, up to 40 digits (including letters, numerals and symbols) are
possible. Only the numerals are picked up and calculated for incrementing/ decrementing, and then are returned to the previous position to draw the data.
Example of increment/decrement calculation
Not
designated
5 3 0 3
Initial value 00000 A0A0A 7A8/9 A2A0A
INC/DEC +1 +1 +3 -3
1st label 00000 A0A0A 7A8/9 A2A0A
2nd label 00001 A0A1A 7A9/2 A1A7A
3rd label 00002 A0A2A 7A9/5 A1A4A 4th label 00003 A0A3A 7A9/8 A1A1A 5th label 00004 A0A4A 8A0/1 A0A8A
(9) Data string to be printed Drawing data can be programmed by designating the number of digits after the symbol
“=.” Up to 255 digits can be printed. When the number of digits exceeds 255, the excessive data will be discarded.
For the character code table, refer to the character code table mentioned later.
- 57 -
(10) Link field No. T he link field No. can be programm ed by designating it after the symbol “;.” Af ter the link
field No. is designated using the Format Comm and, the data s trings ar e linked by the Link Field Data Command to draw an image.
Up to 20 fields can be linked. The following shows an example of linked fields on the two continuous labels.
[Format Command]
[ESC] PV01;................... ; 01 [LF] [NUL] : Link field No. 1 is designated.
[ESC] PV02;................... ; 03 [LF] [NUL] : Link field No. 3 is designated.
[ESC] PV03;................... ; 04 [LF] [NUL] : Link field No. 4 is designated.
[ESC] XB01; ........................ ; 03, 04 [LF] [NUL] : Link fields No. 3 and No. 4 are
designated.
[ESC] PV04;................... ; 02 [LF] [NUL] : Link field No. 2 is designated.
[ESC] PV05;................... ; 03 [LF] [NUL] : Link field No. 3 is designated.
[ESC] PV06;................... ; 04 [LF] [NUL] : Link field No. 4 is designated.
[ESC] XB02; ........................ ; 03, 04 [LF] [NUL] : Link fields No. 3 and No. 4 are
designated.
Designating link field No. [Data Command]
[ESC] RV; A [LF] B [LF] ABCD [LF] 001 [LF] [NUL]
Link field No. 4 Link field No. 3 Link field No. 2 Link field No. 1
Notes (1) The check digit attach, increment/decrement, and zero suppress processes are
For example, the zero(s) is replaced by a space(s) as a r es ult of zero suppres s ion
Increment/decrement > zero suppression > attachment of check digit
ABC
D
*ABCD001*
performed accor ding to the following priority. If any of the conditions is improper, no drawing will take place.
but the modulus 10 designated to be attached cannot be calculated.
A
ABCD 001
*ABCD001*
B
(2) Up to 32 fields for which incr ementing/decrementing has been des ignated can be
drawn. If the total of bit map font, outline font, or bar code increm ent/decrement fields exceeds 32, drawing will take place without incrementing/dec rementing any excessive field. The field to be incremented or decremented is incremented or decremented until the Image Buffer Clear Command ([ESC] C) is transmitted.
- 58 -
[Examples]
1) Format Command (Increment character string No. 01 (+1))
2) Format Command (No incrementing for character string No. 02)
3) Format Command (Increment character string No. 03 (+2))
4) Image Buffer Clear Command
5) Data Command (Character string No. 01 “0001”)
6) Data Command (Character string No. 02 “AB-”)
7) Data Command (Character string No. 03 “0100”)
8) Issue Command (2 labels)
9) Issue Command (1 label)
10) Image Buffer Clear Command
11) Data Command (Character string No. 02 “00000”)
12) Issue Command (1 label)
(3) The Outline Font Format Command may be connected to the Bit Map Font Format
[ESC] PC001; 0100, 0150, 1, 1, A, 00, B [LF]
C005; 0200, 0300, 25, 2, C, +05, 00, B, +0000000001 [LF] V01; 0500, 0400, 0100, 0100, A, 00, B [LF] [NUL]
0001
AB-0100
0002
AB-0102
0003
AB-0104
00000
Command when transmitted.
C002; 0350, 0180, 1, 1, A, 00, B [LF]
- 59 -
(4) W hen the drawing data is changed per label issue dur ing printing, the field of the
drawing data for the previous label is automatically cleared using the character string number, then the next drawing data is printed. Therefore, the character string number which diff ers according to the drawing fields should be designated. Since the automatic field clear is not performed between the Clear Command ([ESC] C) and Issue Comm and ( [ESC] X S), the fixed data may be drawn using the same character string number. In this case, the Format Command and Data Command should be sent alternately. (After the Issue Command is sent, the f ields with the same character string number are automatically cleared until the Clear Command is sent.)
(5) W hen charac ters overlap due to the charac ter-to-char acter space f ine adjustm ent,
the outline font is not painted properly. Program the fine adjust value so that characters will not overlap. Also, when drawings such as lines or character s are on the outline font drawing position, the outline font is not painted pr operly. For font types A and B, the fine adjustment value should be set so that other drawings do not overlap the area in which the outline font is to be drawn. For font types C, E, F and G, the fine adjustment value should be set s o that other drawings do not overlap the area for the designated character width and height.
(6) T he link field designation is cleared by omitting the link f ield designation using the
same character string No. and reformatting data.
The link field designation can be also cleared by the Image Buffer Clear
Command.
(7) A print data string and link field No. cannot be programmed at the same time.
(8) The sam e character s tring number c annot be program med m ore than onc e in one
format (one page).
Refer to Outline Font Data Command ([ESC] RV)
Bit Map Font Format Command ([ESC] PC) Bar Code Format Command ([ESC] XB)
- 60 -
Examples
A B C D
(1)
Origin (0, 0)
12.5 mm
30.0 mm
S a m p l e
Effective print area
55.0 mm
20.0 mm
65.0 mm
[ESC] C [LF] [NUL] [ESC] PV00; 0200, 0300, 0080, 0080, B, 00, B=ABCD [LF] [NUL] [ESC] PV01; 0200, 0125, 0100, 0100, B, 00, B [LF] [NUL] [ESC] PV02; 0650, 0550, 0200, 0150, B, 33, B, +0000000001 [LF] [NUL] [ESC] RV01; Sample [LF] [NUL] [ESC] RV02; 001 [LF] [NUL] [ESC] XS; I, 0002, 0002C3000 [LF] [NUL]
- 61 -
(2)
Origin (0, 0)
55.0 mm
30.0 mm
S 0 0 1
20.0 mm
65.0 mm
Effective print area
[ESC] C [LF] [NUL] [ESC] PC001; 0200, 0300, 1, 1, C, 00, B; 01, 02 [LF] [NUL] [ESC] PV01; 0650, 0550, 0200, 0150, B, 33, B; 02 [LF] [NUL] [ESC] XB01; 0200, 0550, 3, 1, 03, 03, 08, 08, 03, 0, 0150; 01, 02 [LF] [NUL] [ESC] RV; S [LF] 001 [LF] [NUL] [ESC] XS; I, 0002, 0002C3000”; LF$; NUL$;
- 62 -
6.3.9 BAR CODE FORMAT COMMAND [ESC] XB
Function Sets the format to indicate the position on the label, at which the bar code is to be
printed and how it is to be printed.
~
In the case of WPC, CODE93, CODE128, UCC/EAN128, Custom er bar c ode, POST NET , RM4SCC,
KIX CODE
(WPC is the generic name for bar codes of JAN, EAN and UPC.)
Format c [ESC] XBaa; bbbb, cccc, d, e, ff, k, llll (, mnnnnnnnnnn, ooo, p, qq)
(= sss ------ sss) [LF] [NUL]
d [ESC] XBaa; bbbb, cccc, d, e, ff, k, llll (, mnnnnnnnnnn, ooo, p, qq)
(; tt
, tt2, tt3, ------, tt20) [LF] [NUL]
1
Term aa: Bar code number
00 to 31
bbbb: Print origin of X-coordinate of the bar code
Fixed as 4 digits (in 0.1 mm units)
cccc: Print origin of Y-coordinate of the bar code
4 or 5 digits (in 0.1 mm units)
d: Type of bar code
0: JAN8, EAN8 5: JAN13, EAN13 6: UPC-E 7: EAN13 + 2 digits 8: EAN13 + 5 digits 9: CODE128 (with auto code selection) A: CODE128 (without auto code selection) C: CODE93 G: UPC-E + 2 digits H: UPC-E + 5 digits I: EAN8 + 2 digits J: EAN8 + 5 digits K: UPC-A L: UPC-A + 2 digits M: UPC-A + 5 digits N: UCC/EAN128 R: Customer bar code (Postal code for Japan) S: Highest priority customer bar code (Postal code for Japan) U: POSTNET (Postal code for U.S) V: RM4SCC (ROYAL MAIL 4 STATE CUSTOMER CODE) (Postal code for U.K) W: KIX CODE (Postal code for Belgium)
- 63 -
e: Type of check digit 1: Without attaching check digit 2: Check digit check
WPC Modulus 10 CODE93 Modulus 47 CODE128 PSEUDO 103
3: Check digit auto attachment (1)
WPC Modulus 10 CODE93 Modulus 47 CODE128 PSEUDO 103 UCC/EAN128 Modulus 10 + Modulus 103 Customer code Special check digit POSTNET Special check digit RM4SCC Special check digit
4: Check digit auto attachment (2)
WPC Modulus 10 + Price C/D 4 digits
5: Check digit auto attachment (3)
WPC Modulus 10 + Price C/D 5 digits
* For the Customer bar code, POSTNET, and RMC4SCC, only “3:
Check digit auto attachment (1)” is effective.
ff: 1-module width
01 to 15 (in dots)
k: Rotational angle of bar code
0: 0° 1: 90° 2: 180° 3: 270°
llll: Height of the bar code
0001 to 1000 (in 0.1 mm units)
For the Customer bar code, POSTNET, RMC4SCC, KIX CODE, the height of
the long bar is specified.
mnnnnnnnnnn: Increment/decrement
(Omissible. If omitted, incrementing/decrementing is not performed.)
m: Indicates whether to increment or decrement
+: Increment
-: Decrement
nnnnnnnnnn: Skip value
0000000000 to 9999999999
ooo: Length of WPC guard bar
(Omissible. If omitted, the guard bar is not attached.) 000 to 100 (in 0.1 mm units)
p: Selection of print or non-print of numerals under bars
(Omissible. If omitted, the numerals under the bars are not printed.) 0: Non-print 1: Print
- 64 -
qq: No. of zeros to be suppressed
(Omissible. If omitted, the zero suppression process is not performed.) 00 to 20
sss ------ sss: Data string to be printed (Omissible)
Max. 126 digits. However, it varies depending on the type of bar code.
tt
, tt2, tt3, ------. tt20: Link field No. (Omissible)
1
01 to 99 (1 to 99 can be also used.) Up to 20 fields can be designated using commas.
* Omiss ible parameters (such as “Increment/decrement”, “Selection of print or non- print
of numerals under bars” and “No. of zeros to be suppres sed”) cannot be set when the postal code (Customer bar code, POSTNET, RM4SCC, KIX CODE) is selected.
- 65 -
~
In the case of MSI, Interleaved 2 of 5, CODE39, NW7, and Industrial 2 of 5
Format c [ESC] XBaa; bbbb, cccc, d, e, ff, gg, hh, ii, jj, k, llll (, mnnnnnnnnnn, p, qq) (, r)
(=sss------sss) [LF] [NUL]
d [ESC] XBaa; bbbb, cccc, d, e, ff, gg, hh, ii, jj, k, llll (, mnnnnnnnnnn, p, qq) (, r)
(; tt
, tt2, tt3, ------, tt20) [LF] [NUL]
1
Term aa: Bar code number
00 to 31
bbbb: Print origin of X-coordinate of the bar code
Fixed as 4 digits (in 0.1 mm units)
cccc: Print origin of Y-coordinate of the bar code
4 or 5 digits (in 0.1 mm units)
d: Type of bar code
1: MSI 2: Interleaved 2 of 5 (ITF) 3: CODE39 (standard) 4: NW7 B: CODE39 (full ASCII) O: Industrial 2 of 5
e: Type of check digit 1: Without attaching check digit
2: Check digit check
CODE39 Modulus 43 MSI IBM modulus 10 ITF Modulus 10 Industrial 2 of 5 Modulus check character
3: Check digit auto attachment (1)
CODE39 Modulus 43 MSI IBM modulus 10 ITF Modulus 10 Industrial 2 of 5 Modulus check character
4: Check digit auto attachment (2)
MSI IBM modulus 10 + IBM modulus 10 ITF DBP Modulus 10
5: Check digit auto attachment (3)
MSI IBM modulus 11 + IBM modulus 10
ff: Narrow bar width
01 to 99 (in dots)
gg: Narrow space width
01 to 99 (in dots)
* In the case of industrial 2 of 5, an element-to-element space is designated. hh: Wide bar width
01 to 99 (in dots)
- 66 -
ii: Wide space width
01 to 99 (in dots)
* In the case of industrial 2 of 5, the value is fixed to 00. jj: Character-to-character space width
01 to 99 (in dots)
* In the case of MSI and ITF, character-to-character space width is set to 00. k: Rotational angle of bar code
0: 0° 1: 90° 2: 180° 3: 270°
llll: Height of the bar code
0000 to 1000 (in 0.1 mm units)
mnnnnnnnnnn: Increment/decrement
(Omissible. If omitted, incrementing/decrementing is not performed.)
m: Indicates whether to increment or decrement
+: Increment
-: Decrement
nnnnnnnnnn: Skip value
0000000000 to 9999999999
p: Selection of print or non-print of numerals under bars
(Omissible. If omitted, the numerals under the bars are not printed.)
0: Non-print
1: Print
qq: No. of zeros to be suppressed
(Omissible. If omitted, the zero suppression process is not performed.) 00 to 20
r: Designates the attachment of start/stop code
(Omissible. If omitted, the start/stop code is automatically attached.)
T: Attachment of start code only
P: Attachment of stop code only N: Start/stop code unattached
sss------sss: Data string to be printed (Omissible) Max. 126 digits. However, the number of digits varies depending on
the type of bar code.
tt
, tt2, tt3, ------, tt20: Link field No. (Omissible)
1
01 to 99 (1 to 99 can be also used.)
Up to 20 fields can be designated using commas.
- 67 -
~
In the case of Data Matrix (Two-dimensional code)
Format
c
[ESC] XBaa; bbbb, cccc, d, ee, ff, gg, h (, Ciiijjj) (, Jkkllmmmnnn) (= ooo ------ooo)
[LF] [NUL]
d [ESC] XBaa; bbbb, cccc, d, ee, ff, gg, h (, Ciiijjj) (, Jkkllmmmnnn)
(= pp
, pp2, pp3, ------, pp20) [LF] [NUL]
1
Term aa: Bar code number
00 to 31
bbbb: Print origin of X-coordinate of the bar code
Fixed as 4 digits (in 0.1 mm units)
cccc: Print origin of Y-coordinate of the bar code
4 or 5 digits (in 0.1 mm units)
d: Type of bar code
Q: Data Matrix (Two-dimensional code)
ee: ECC type
00 to 14: If value “00” to “14” is designated, barcode command is ignored. 20: ECC200
ff: 1-cell width
00 to 99 (in dots)
gg: Format ID
No function (ignore)
h: Rotational angle of bar code
0: 0° 1: 90° 2: 180° 3: 270°
Ciiijjj: No. of cells
(Omissible. If omitted, it is automatically set.) iii: No. of cells in X direction 000 to 144 jjj: No. of cells in Y direction 000 to 144 * Cell setting varies according to the ECC type.
ECC200
No. of cells to be
Even numbers only designated Min./Max. No. of cells 10 × 10 to 144 × 144 Rectangular code 18 × 8
32 × 8 26 × 12 36 × 12 36 × 16 48 × 16
• W hen this parameter is om itted, the number of cells is automatic ally set. Also, when any data other than the above values is des ignated for the number of cells in X and Y directions, the number of c ells is automatically set.
- 68 -
Jkkllmmmnnn: Connection setting
(Omissible. No connection if this parameter is omitted.) kk: Code number 01 to 16 ll: No. of divided codes 02 to 16 mmm: ID number 1 001 to 254 nnn: ID number 2 001 to 254
ooo ------ ooo: Data string to be printed (Omissible)
Max. 2048 digits. pp1, pp2, pp3, ------, pp20: Link field No. (Omissible)
01 to 99 (1 to 99 can also be used.)
Up to 20 fields can be designated using commas.
- 69 -
~
In the case of PDF417 (Two-dimensional code)
Format c [ESC] XBaa; bbbb, cccc, d, ee, ff, gg, h, iiii (=jjj------jjj) [LF] [NUL] d [ESC] XBaa; bbbb, cccc, d, ee, ff, gg, h, iiii (; kk
1
Term aa: Bar code number
00 to 31
bbbb: Print origin of X-coordinate of the bar code
Fixed as 4 digits (in 0.1 mm units)
cccc: Print origin of Y-coordinate of the bar code
4 or 5 digits (in 0.1 mm units)
d: Type of bar code
P: PDF417 (Two-dimensional code)
ee: Security level 00: Level 0
01: Level 1 02: Level 2 03: Level 3 04: Level 4 05: Level 5 06: Level 6 07: Level 7 08: Level 8
, kk2, kk3, ------, kk20) [LF] [NUL]
ff: 1-module width
01 to 10 (in dots)
gg: No. of columns (strings)
01 to 30
h: Rotational angle of bar code
0: 0° 1: 90° 2: 180° 3: 270°
iiii: Bar height
0000 to 0100 (in 0.1 mm units)
jjj-----jjj: Data string to be printed (Omissible)
Max. 2,048 digits
kk
, kk2, kk3, ------, kk20: Link field No. (Omissible)
1
01 to 99 (1 to 99 can be also used.)
Up to 20 fields can be designated using commas.
- 70 -
~
In the case of MicroPDF417 (Two-dimensional code)
Format c [ESC] XBaa; bbbb, cccc, d, ee, ff, gg, h, iiii (=jjj------jjj) [LF] [NUL] d [ESC] XBaa; bbbb, cccc, d, ee, ff, gg, h, iiii (; kk
1
Term aa: Bar code number
00 to 31
bbbb: Print origin of X-coordinate of the bar code
Fixed as 4 digits (in 0.1 mm units)
cccc: Print origin of Y-coordinate of the bar code
4 or 5 digits (in 0.1 mm units)
d: Type of bar code
X: MicroPDF417 (Two-dimensional code)
ee: Security level 00: Fixed
ff: 1-module width
01 to 10 (in dots)
gg: No. of columns/rows
00 to 38
h: Rotational angle of bar code
0: 0° 1: 90° 2: 180° 3: 270°
, kk2, kk3, ------, kk20) [LF] [NUL]
iiii: Bar height
0000 to 0100 (in 0.1 mm units)
jjj-----jjj: Data string to be printed (Omissible)
Max. 366 digits
kk
, kk2, kk3, ------, kk20: Link field No. (Omissible)
1
01 to 99 (1 to 99 can also be used.)
Up to 20 fields can be designated using commas.
- 71 -
The maximum number of columns and rows for the MicroPDF417
Parameter
(gg)
No. of columns No. of rows
Max. number of digits
for binary mode
Max. number of digits for
upper case letter/space mode
Max. number of digits
for numeric mode
00 – – 150 250 366 01 1 – 22 38 55 02 2 – 43 72 105 03 3 – 97 162 237 04 4 – 150 250 366
05 11 3 6 8 06 14 7 12 17 07 1 17 10 18 26 08 20 13 22 32 09 24 18 30 44 10 28 22 38 55
11 8 8 14 20 12 11 14 24 35 13 14 21 36 52 14 2 17 27 46 67 15 20 33 56 82 16 23 38 64 93 17 26 43 72 105
18 6 6 10 14 19 8 10 18 26 20 10 15 26 38 21 12 20 34 49 22 3 15 27 46 67 23 20 39 66 96 24 26 54 90 132 25 32 68 114 167 26 38 82 138 202 27 44 97 162 237
28 4 8 14 20 29 6 13 22 32 30 8 20 34 49 31 10 27 46 67 32 12 34 58 85 33 4 15 45 76 111 34 20 63 106 155 35 26 85 142 208 36 32 106 178 261 37 38 128 214 313 38 44 150 250 366
“–” for parameter 00 to 04 indicates that the numbers of c olumns/rows are automatically set by the printer. In this case, the pattern which has a smaller number of code words is automatically selected. When the numbers of code words is equal, the smaller number of columns is selected.
- 72 -
~
In the case of QR code (Two-dimensional code)
Format c [ESC] XBaa; bbbb, cccc, d, e, ff, g, h (, Mi) (, Kj) (, Jkkllmm) (= nnn --- nnn) [LF] [NUL] d [ESC] XBaa; bbbb, cccc, d, e, ff, g, h (, Mi) (, Kj) (, Jkkllmm ) (= oo
[LF] [NUL]
Term aa: Bar code number
00 to 31
bbbb: Print origin of X-coordinate of the bar code
Fixed as 4 digits (in 0.1 mm units)
cccc: Print origin of Y-coordinate of the bar code
4 or 5 digits (in 0.1 mm units)
d: Type of bar code
T: QR code (Two-dimensional code)
e: Designation of error correction level
L: High density level M: Standard level Q: Reliability level H: High reliability level
ff: 1-cell width
00 to 52 (in dots)
g: Selection of mode
M: Manual mode A: Automatic mode
, oo2, oo3 ------ oo20)
1
h: Rotational angle of the bar code
0: 0° 1: 90° 2: 180° 3: 270°
Mi: Selection of model
(Omissible. If omitted, Model 1 is automatically selected.)
i = 1: Model 1
2: Model 2 Kj: Mask number
(Omissible. If omitted, the number is automatically set.)
j = 0 to 7: Mask number 0 to 7
8: No mask Jkkllmm: Connection setting
(Omissible. No connection if this parameter is omitted.) kk = 01 to 16: Value indicating which divided code is connected.
ll = 01 to 16: Number of divided codes mm = 00 to FF: A value for all data to be printed, to which XOR is applied
in units of bytes (Not divided)
nnn --- nnn: Data string to be printed (Omissible)
Max. 2000 digits
oo
--- oo20: Link field No. (Omissible)
1
01 to 99 (1 to 99 can also be used.) Up to 20 digits can be designated using commas.
- 73 -
~
In the case of MaxiCode (Two-dimensional code)
Format c [ESC] XBaa; bbbb, cccc, d (, e) (, Jffgg) (, Zh) [LF] [NUL]
Term aa: Bar code number
00 to 31
bbbb: Print origin of X-coordinate of the bar code
Fixed as 4 digits (in 0.1 mm units)
cccc: Print origin of Y-coordinate of the bar code
4 or 5 digits (in 0.1 mm units)
d: Type of bar code
Z: MaxiCode (Two-dimensional code)
e: Mode selection (Omissible)
Omitted: Mode 2 0: Mode 0 (Old specification) 1: Mode 1 (Old specification) 2: Mode 2 (New specification) 3: Mode 3 (New specification) 4: Mode 4 (New specification) 5: Mode 2 (New specification) 6: Mode 6 (New specification) 7: Mode 2 (New specification) 8: Mode 2 (New specification) 9: Mode 2 (New specification)
Jffgg: Connection setting (Omissible. No connection if this parameter is omitted.)
(If mode 0 or mode 1 is designated, it is ignored.)
ff: Code number 01 to 08
gg: No. of divided codes 01 to 08 Zh: Attachment of Zipper block and Contrast block (If mode 0 or mode 1 is
designated, it is ignored.) (Omissible. If omitted, they are not attached.)
h= 0: No attachment of Zipper block and Contrast block
1: Attachment of Zipper block and Contrast block 2: Attachment of Zipper block 3: Attachment of Contrast block
- 74 -
Explanation (1) Bar code number W hen drawing by the Data Command ([ESC] RB), the format designated by the
bar code is selected.
(2) Print origin of coordinates
Origin of
coordinates
(0, 0)
Backing paper
Label
Effective
print
length
Print origin of coordinates
Effective
print
length
Print origin of coordinates
X
0
Y
[Print direction: Printing bottom first]
Effective
print width
Paper feed direction
Y
0
X
[Print direction: Printing top first]
Effective
print width
Paper feed direction
The print origin of coordinates must be set so that the result of bar code drawing will be
within the effective print area set by the Label Size Set Command ([ESC] D).
Backing paper
Label
Origin of
coordinates
(0, 0)
[Effective print area] [mm]
Model B-SV4D
Item Method Batch Strip Cutter Effective print width Min. 13.0
Max. 108 ± 0.2 Effective print length Min. 8.0 23.4 13.0
Label
Max. 607.6
Min. 8.0 Tag 13.0
Max. 607.6 607.6
- 75 -
(3) Type of bar code 0: JAN8, EAN8 1: MSI
2: Interleaved 2 of 5 3: CODE39 (standard)
4: NW7 5: JAN13, EAN13
6: UPC-E 7: EAN13 + 2 digits
8: EAN13 +5 digits 9: A: CODE128
B: CODE39 (Full ASCII) C: CODE93
G: UPC-E + 2 digits H: UPC-E + 5 digits
I: EAN8 + 2 digits J: EAN8 + 5 digits
K: UPC-A L: UPC-A + 2 digits
- 76 -
M: UPC-A + 5 digits N: UCC/EAN128
O: Industrial 2 of 5 P: PDF417
Q: Data Matrix R: Customer bar code
S: Highest priority customer bar code T: QR code
U: POSTNET V: RM4SCC
W: KIX code X: MicroPDF417
Z: MaxiCode
- 77 -
(4) Type of check digit c Where no check digit is attached, the bar code of the data row will be drawn. d In the case of the check digit check, if each check digit checked according to
the type of bar code is normal, the bar code will be drawn. If the check digit not meeting the requirement is designated, the bar code will not be drawn.
e In the case of the check digit auto attachment, each check digit is attached
according to the type of bar code and the bar code is drawn.
f If the type of bar code is CODE93, CODE128 (with auto code selection), or
UCC/EAN128, the check digit will always be attached regardless of the designation of the type of check digit.
g If the type of bar code is JAN, EAN, or UPC, the designation of no chec k digit
attachment automatically assume the check digit check.
h DBP Modulus 10 is Modulus 10 for Deutsche Bundespost Postdienst only. (5) Bar width, space width, and character-to-character space
Designate the bar, space, and character-to-character space widths according to
the type of bar code. Note that the designated proper value differs ac cording to the rotational angle of bar code, type, number of digits, print s peed, paper used, etc. Examples of such designations are listed below. (1 dot = 1/12 mm)
In the case of JAN, EAN, UPC, CODE93, CODE128, UCC/EAN128, PDF417, or
MicroPDF417, a 2 to 6-module width is calc ulated automatically when a 1- module width is designated.
Type of bar code 1 module 2 modules 3 modules 4 modules 5 modules 6 modules
Bar Space Bar Space Bar Space Bar Space Bar Space Bar Space
JAN, EAN, UPC 4 8 12 16 - ­CODE93 3 6 9 12 - -
CODE128, EAN128
3 6 9 12 - ­PDF417 3 6 9 12 15 18 MicroPDF417 2 4 6 8 10 12
Type of bar code Narrow Wide Character-to-character
Bar Space Bar Space space
MSI 3 3 8 8 0 ITF 3 3 8 8 0 CODE39 3 3 8 8 3 NW7 3 3 8 8 3 Industrial 2 of 5 3 3 8 0 3
W hen NW7 is used, transm ission of the space character assumes the space of (narrow
space ×12) dots. In this case, the space is max. 255 dots.
In the case of Data Matrix
1-cell width
When 1-c ell width is 00 for the Data Matrix, a two-dimensional code is not drawn.
1-cell width = 3
However, the two-dimensional code printed on the previous label is cleared.
- 78 -
In the case of QR code
1-cell width
1-cell width
When the 1-cell width is 0, a two-dimensional code is not drawn. However, the bar
code printed on the previous label is cleared.
In the case of a postal code
1-module width
(6) Rotational angle of bar code
Point of origin
90° 180° 270°
Point of origin
90° 180° 270°
- 79 -
(7) Bar code height
Height
[PDF417, MicroPDF417]
Height
[Postal code]
Height
Height
Height
W hen the bar code height is 0000, bar code (including guard bars ) and numerals
under bars are not drawn. However, the bar code printed on the pr evious label is cleared.
(8) Length of guard bar The length of guard bar is valid only when the type of bar code is WPC.
It is ignored in any other cases.
Height of bar code
Length of guard bar
- 80 -
(9) Numerals under bars Numerals are not or provided under bars according the parameter for the
presence or absence of num erals under bars. The contents of numerals under bars to be printed vary according to the type of bar code. The character s et of numerals under bars is OCR-B. Such numerals are enlarged or reduced only horizontally according to the width of the bar code. They are drawn vertically in the
fixed one magnification. [Drawing positions of numerals under bars] c In the case of JAN and EAN
(Example) EAN13 + 2 digits
(Example) EAN8
d In the case of UPC
(Example) UPC-A + 2 digits
(Example) UPC-E
- 81 -
e In the case of bar codes other than JAN, EAN, and UPC
(Example) CODE39
(Example) UCC/EAN128
(10) Start/Stop Code y This parameter is valid only when the type of bar code is CODE39 and NW7.
y Where the parameter is designated, the progr am will not check if the tr ansmit pr int data
is with a start code and stop code.
y When the param eter is om itted in the case of CODE39 and NW7, a start/stop code will
be attached. The code to be added is “*” in the cas e of CODE39, and “ a” in the case of NW7.
y For details , refer to “Auto Attachment of Start/Stop Code” to be discus sed later in this
specification.
(11) Increment/decrement Printing is performed while the data is incremented or decrem ented every time a label is
issued. Where the data row exceeds the m aximum number of digits (40), the data row will not be drawn.
When CODE128 (without auto code selection) is used, the number of the star t code ( c ode
A, code B, and code C) digits is regarded as 2.
Initial value 0000 0000 0000 0000 999999
INC/DEC +10 +10 +10 +10 +1
Zero suppression
1st label 0000 0000 000 0000 999999
2nd label 0010 0010 010 0010 000
3rd label 0020 0020 020 0020 001
4th label 0030 0030 030 0030 002 5th label 0040 0040 040 0040 003
Not
designated
5 3 0 3
- 82 -
Letters and numerals for increment/decrement For CODE39 (standard), CODE39 (f ull ASCII), NW-7, CODE93, CODE128, if a data
string other than numerals is included in the data, increm ent/decrem ent designation is performed. If any code which does not exist in eac h bar code table is c ontained in the data, increment/decrement designation is not performed.
Up to 40 digits (including letters, numerals and symbols) are possible. Only the
numerals are picked up and calculated f or incrementing/decrementing, and then are returned to the previous position to draw the data.
Example of increment/decrement calculation
Initial value 00000 A0A0A 7A8/9 A2A0A
INC/DEC +1 +1 +3 -3
1st label 00000 A0A0A 7A8/9 A2A0A
2nd label 00001 A0A1A 7A9/2 A1A7A
3rd label 00002 A0A2A 7A9/5 A1A4A 4th label 00003 A0A3A 7A9/8 A1A1A
5th label 00004 A0A4A 8A0/1 A0A8A Example of increment/decrement of data including the special codes of CODE128 Increment/decrement calculation starts f rom the last digit in the data strings. W hen
the data string to be calculated is numeric , and the next (upper) digit is “>”, that is a special code (shown with underline below). The next digit is calculated without incrementing/decrementing these two digits.
Example of increment/decrement calculation of CODE128
Initial value 00000 00>0
8 0A>08 0A9>08
INC/DEC +1 +1 +1 +1
1st label 00000 00>08 0A>08 0A9>08
2nd label 00001 00>09 0A>09 0A9>09
3rd label 00002 01>00 1A>00 1A0>00
4th label 00003 01>01 1A>01 1A0>01
5th label 00004 01>02 1A>02 1A0>02
(12) Zero suppression
No. of zeros to be suppressed
0 1 2 2 3 4 5
Data 0000 0000 0000 0A12 0123 0123 0123 Print 0000 0 00 A12 123 0123 0123
The leading zero(s) in a data row is replaced by a space(s) according to the designated
number of digits. However, if the num ber of digits to be suppress ed is greater than the data row, the data row will be drawn without zero suppression. Where the data row exceeds the maximum number of digits (40), the data row will not be drawn.
When the print data including start/stop code is sent to sending print data, the start/s top
code is also counted as a digit. When the bar code type is JAN, EAN, UPC, or UCC/EAN 128, the data will be drawn without zero suppression.
- 83 -
(13) Data string to be printed Drawing data can be programmed by designating the number of digits after the symbol
“=.” The maxim um number of digits to be printed varies according to the types of bar codes. For codes, refer to the bar code table mentioned later.
(14) Link field No. T he link field No. can be programmed by designating it after the symbol “; .” After the link
field No. is designated using the Format Com mand, the data string ar e linked by the Link Field Data Command to draw an image.
Up to 20 fields can be linked. The following shows an example of linked fields on the two continuous labels. [Format Command]
[ESC] PC01;................... ; 01 [LF] [NUL] : Link field No. 1 is designated.
[ESC] PC02;................... ; 03 [LF] [NUL] : Link field No. 3 is designated.
[ESC] PC03;................... ; 04 [LF] [NUL] : Link field No. 4 is designated.
[ESC] XB01; ........................ ; 03, 04 [LF] [NUL] : Link fields No. 3 and No. 4 are
designated.
[ESC] PC04;................... ; 02 [LF] [NUL] : Link field No. 2 is designated.
[ESC] PC05;................... ; 03 [LF] [NUL] : Link field No. 3 is designated.
[ESC] PC06;................... ; 04 [LF] [NUL] : Link field No. 4 is designated.
[ESC] XB02; ........................ ; 03, 04 [LF] [NUL] : Link fields No. 3 and No. 4 are
designated.
Designating link field No. [Data Command]
[ESC] RB; A [LF] B [LF] ABCD [LF] 001 [LF] [NUL]
Link field No. 4 Link field No. 3 Link field No. 2 Link field No. 1
ABCD 001
*ABCD001*
A
ABCD 001 *ABCD001*
B
- 84 -
(15) Explanation for Data Matrix
Data Matrix contains a function to correct a code reading error using an error
The max imum number of digits varies according to the ECC type. Since each Kanji
For the maximum number of digits in cell units, see the next page.
The connection setting is used to comprise data with a set of two-dim ensional codes
c
ECC type
correction code (ECC) and restor e normal data. Since there ar e several ECCs. ECC should be designated according to usage. The gener al correction ability is as follows. However, it may vary according to the error conditions.
ECC type Overhead by ECC
ECC200 Approx. 30%
d
Format ID No function (Ignore)
e
Maximum number of digits
character uses 2 bytes, the maximum number of digits for it becomes half of the following values.
Numeric Alphanumeric 8 bit
ECC200 2000 2000 1556
f
Connection setting
when the data cannot be expressed with a two-dimensional code. W hen three two­dimensional codes are used to comprise data, identification information of 1/3, 2/3, and 3/3 is inserted into each two-dimensional c ode. The ID num ber is pr ogram m ed to include a proper combination of two-dimensional codes when one label contains plural connecting symbols. For example, when there are two kinds of data containing identification information for 1/2 and 2/2 in the same label, combination of two­dimensional codes is unclear. By adding the ID number, the combination is made clear.
- 85 -
Cell size and the effective data capacity
ECC200
Symbol size
Row Col
Alphanum
capacity
capacity
8-bit byte
Capacit
y
Numeric
10 10 6 3 1 12 12 10 6 3 14 14 16 10 6 16 16 24 16 10 18 18 36 25 16 20 20 44 31 20 22 22 60 43 28 24 24 72 52 34 26 26 88 64 42 32 32 124 91 60 36 36 172 127 84 40 40 228 169 112 44 44 288 214 142 48 48 348 259 172 52 52 408 304 202 64 64 560 418 278 72 72 736 550 366 80 80 912 682 454 88 88 1152 862 574
96 96 1392 1042 694 104 104 1632 1222 814 120 120 2000 1573 1048 132 132 2000 1954 1302 144 144 2000 2000 1556
Rectangular code
ECC200
Symbol size
Row Col
Alphanum
capacity
capacity
8-bit byte
capacity
Numeric
8 18 10 6 3
8 32 20 13 8 12 26 32 22 14 12 36 44 31 20 16 36 64 46 30 16 48 98 72 47
- 86 -
(16) Explanation for the PDF417 and MicroPDF417
The PDF417 contains a function to correct a code reading error using an error
For the MicroPDF417, the printer sets the security level automatically.
The number of rows is variable in the PDF417. The row length (No. of data s trings) is
The number of columns (data strings) is variable between 1 and 30. If the number of co lum ns is s m all when data amount is large and s ecurity level is high,
c
Security level
correcting code word and restore normal data. The security level should be designated according to usage to perform the error correction function.
Security level Error Correction Ability
Level 0 0 Level 1 2 Level 2 6 Level 3 14 Level 4 30 Level 5 62 Level 6 126 Level 7 254 Level 8 510
d
No. of columns (strings)
also variable. Therefore, a symbol can be c reated in a f orm that can be eas ily printed, by changing the proportion of the height and width.
drawing may not be performed. This is becaus e the number of rows exceeds 90 when the number of colum ns becomes small. (W hen the PDF417 is used, the number of rows of symbols is limited from 3 to 90.)
Low
High
No. of error correction
code words
For the MicroPDF417, not only the number of columns (data strings) but also the
number of rows (data lines) can be designated. When these are to be designated, see the table on page 72. Note that the max. number of digits for the set param eter (gg) varies according to the character type. If data over the max. number of digits f or the set parameter (gg) is set, the bar code is not printed. T he number of columns (data strings) is variable from 1 to 4.
However, the max. number of lines, which is 44, depends on the number of columns.
(17) Explanation for QR code
The QR code contains functions to detect and correct an error. If one of the data
There are 4 levels that can be designated. T he level should be specif ied acc ording to
c
Error correction level
characters is damaged, the information can be restored when this code is read.
usage. The general correction ability is as follows.
Level Error correction ability
High density level Low 7%
Standard level 15%
Overhead by correcting
an error
Reliability level 25%
High reliability level High 30%
- 87 -
d
1-cell width
1-cell width
1-cell width
When the 1-c ell width is 0, a two-dimensional code is not drawn. However, the two-
dimensional code printed on the previous label is cleared.
e
Selection of mode
All codes including alphanumerics, symbols, and Kanj i can be used in one QR code.
Manual mode or automatic mode can be selected to perform the operation.
f
Selection of model
Model 1: Original specification Model 2: Extended specification which enhances the function of position correction
and can contain a large amount of data.
g
Mask number
To be sure to read the QR code, it is preferable that white and black modules are
arranged in this symbol in a balanced manner. This prevents the bit pattern “1011101”, which is characteristically seen in the position detecting pattern, from appearing in the symbol as much as possible.
The mask number is 0 to 7. The pattern is determined by placing each masking
pattern for the mask number upon the module pattern. When the mask num ber is set to 8, masking is not perf orm ed. W hen the param eter is om itted, the m ost appropriate mask number is automatically selected to perform masking.
h
Connection setting
For QR code, data can be divided into several codes. Even though there is only a
narrow print space, the code can be entered in the space by dividing the c ode. The data can be divided into a max. of 16 codes . Parity data is obtained by XORing all input data in units of bytes before dividing. The input data is calculated bas ed on shif t
JIS for Kanji, or on JIS 8 for others. Examples are shown below: “0123456789 ” is divided into “0123”, “4567”, and “89 ”. Code No. 1 No. of divided codes: 3 Parity data: 84 Data “0123”
Code No. 2 No. of divided codes: 3 Parity data: 84 Data “4567”
Code No. 3 No. of divided codes: 3 Parity data: 84 Data “89 ” * The parity data is the XORed value for “0123456789 ”.
30 31 32 33 34 35 36 37 38 39 93 FA 96 7B = 84
(18) Explanation for MaxiCode
c
Connection setting
For MaxiCode, data can be divided into a max. of 8 codes.
- 88 -
Notes (1) The check digit attach and increment/decrement, and zero suppress processes are
performed according to the following priority. If any of the conditions is improper, no drawing will take place.
For exam ple, the zero(s) is replaced by a space(s) as a result of zero suppression but
the modulus 10 designated to be attached cannot be calculated. Increment/decrement > zero suppression > attachment of check digit (2) Up to 32 fields for which increm enting/decrementing has been designated c an be drawn. If
the total of bit map font, outline font or bar code increment/decrement fields exceeds 32, drawing will take place without incrementing/decrementing any excessive field. The field to be incremented or decrem ented is increm ented or decr em ented until the Im age Buff er Clear Command ([ESC] C) is transmitted.
[Example]
c
Format Command (Increment bar code No. 01 (+1))
d
Format Command (Increment bar code No. 02 (+2))
e
Image Buffer Clear Command
f
Data Command (Bar code No. 01 “0001”)
g
Data Command (Bar code No. 02 “0100”)
h
Issue Command (2 labels)
i
Issue Command (1 label)
(0001)
(0100)
(0002)
(0102)
(0003)
- 89 -
j
Image Buffer Clear Command
k
Data Command (Bar code No. 02 “3000”)
l
Issue Command (1 label)
(0104)
(3000)
(3) More than one Bar Code Format Command can be connected when transmitted. [ESC] XB01; 0100, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF]
B02; 0350, 0150, 3, 1, 02, 02, 06, 06, 02, 0, 0150 [LF] [NUL]
(4) When the dr awing data is changed per label issue during printing, the field of the drawing
data for the previous label is automatically cleared using the bar code number, then the nex t drawing data is printed. Therefore, the bar code number which differs according to the drawing fields should be designated. Since the automatic field clear is not performed between the Clear Command ([ESC] C) and iss ue Command ([ESC] XS), the fixed data may be drawn using the same bar code num ber. In this case, the Format Comm and and Data Command should be sent alternately. (After the Issue Com mand is sent, the f ields with the same bar code number are automatically cleared until the Clear Command is sent.)
(5) The link field designation is c leared by omitting the link field designation us ing the sam e bar
code No. and reformatting data.
The link field designation can be also cleared by the Image Buffer Clear Command. (6) A print data string and link field No. cannot be programmed at the same time.
(7) The same barcode number cannot be programmed more than once in one format (one
page).
Refer to Bit Map Font Format Command ([ESC] PC)
Outline Font Format Command ([ESC] PV) Bar Code Data Command ([ESC] RB)
- 90 -
Examples
(1)
Origin (0, 0)
55.0 mm
12.5 mm
15.0 mm
Effective print area
20.0 mm
83.0 mm
15.0 mm
[ESC] C [LF] [NUL] [ESC] XB01; 0200, 0125, 3, 1, 03, 03, 08, 08, 03, 0, 0150=12345 [LF] [NUL] [ESC] XB02; 0830, 0550, 3, 1, 02, 04, 07, 08, 04, 3, 0150, +0000000000, 1, 00, N [LF] [NUL] [ESC] RB02; *ABC* [LF] [NUL] [ESC] XS; I, 0002, 0002C3000 [LF] [NUL]
- 91 -
S 0 0 1
(2)
Origin (0, 0)
30.0
55.0 mm
mm
Effective print area
20.0 mm
65.0 mm
[ESC] C [LF] [NUL] [ESC] PC001; 0200, 0300, 1, 1, C, 00, B; 01, 02 [LF] [NUL] [ESC] PV01; 0650, 0550, 0200, 0150, B, 33, B; 02 [LF] [NUL] [ESC] XB01; 0200, 0550, 3, 1, 03, 03, 08, 08, 03, 0, 0150; 01, 02 [LF] [NUL] [ESC] RB; S [LF] 001 [LF] [NUL] [ESC] XS; I, 0002, 0002C3000 [LF] [NUL]
- 92 -
(3)
Origin (0, 0)
12.5 mm
Effective print area
55.5 mm
20.0 mm
83.0 mm
[ESC] C [LF] [NUL] [ESC] XB01; 0200, 0125, P, 04, 02, 03, 0, 0010 [LF] [NUL] [ESC] XB02; 0830, 0550, Q, 08, 03, 05, 3 [LF] [NUL] [ESC] RB01; PDF417 [LF] [NUL] [ESC] RB02; Data Matrix [LF] [NUL] [ESC] XS; I, 0002, 0002C3000 [LF] [NUL]
- 93 -
6.3.10 BIT MAP FONT DATA COMMAND [ESC] RC
Function Provides data for the bit map font row.
Format c [ESC] RCaaa; bbb ------ bbb [LF] [NUL] d Link Field Data Command
[ESC] RC; ccc ------ ccc [LF] ddd ------ ddd [LF] ------ [LF] xxx ------ xxx [LF] [NUL]
Term aaa: Character string number
000 to 199 (Two digits, 00 to 99, also acceptable.)
bbb ------ bbb: Data string to be printed
Max. 255 digits (Max. 127 digits when the font type is 51, 52, 53, 54, or 55.) Any excess data will be discarded. For the character codes, refer to the character code table to be given
later in this specification. ccc ------ ccc: Data string of link field No. 1 ddd ------ ddd: Data string of link field No. 2
to xxx ------ xxx: Data string of link field No. 99
Explanation (1) Link field data string
• After the link field No. is des ignated in the Format Com mand, data strings are
linked using the Link Field Data Command to draw an image.
• Up to 255 digits of data strings can be linked. However, when the font type is
51, 52, 53, 54, or 55, only up to 127 digits can be linked. When the number of digits exceeds the maximum value, excess data will be discarded.
• Up to 99 data strings can be linked.
• Up to 2048 bytes can be used as the com mand length ([ESC] to [NUL]) of the
Link Field Data Command.
• W hen the data string is omitted in the Link Field Data Com mand, the following
process is performed:
• The Link Field Data Command can be used for the bit map font fields, outline
c
No process will be performed for the field which c ontains no print data due
to the omission.
d
When the field partially loses print data due to the omission, the only
remaining data will be processed as print data.
font fields, and bar code fields. (The same result is obtained when any of the “RC,” “RV” or “RB” command code is designated.)
Refer to Bit Map Font Format Command ([ESC] PC)
- 94 -
Examples
Sample
(1)
Origin (0, 0)
12.5 mm
Effective print area
55.0 mm
20.0 mm
65.0 mm
[ESC] C [LF] [NUL] [ESC] PC001; 0200, 0125, 1, 1, C, 00, B [LF] [NUL] [ESC] PC002; 0650, 0550, 2, 2, G, 33, B, +0000000001 [LF] [NUL] [ESC] RC001; Sample [LF] [NUL] [ESC] RC002; 001 [LF] [NUL] [ESC] XS; I, 0002, 0002C3000 [LF] [NUL]
- 95 -
S 0 0 1
(2)
Origin (0, 0)
30.0 mm
Effective print area
55.0 mm
20.0 mm
65.0 mm
[ESC] C [LF] [NUL] [ESC] PC001; 0200, 0300, 1, 1, C, 00, B; 01, 02 [LF] [NUL] [ESC] PV01; 0650, 0550, 0200, 0150, B, 33, B; 02 [LF] [NUL] [ESC] XB01; 0200, 0550, 3, 1, 03, 03, 08, 08, 03, 0, 0150; 01, 02 [LF] [NUL] [ESC] RC; S [LF] 001 [LF] [NUL] [ESC] XS; I, 0002, 0002C3000 [LF] [NUL]
- 96 -
Loading...