BIXOLON SPP-R300 Mobile Printer Command Manual

BIXOLON SPP-R300 Mobile Printer Command Manual
SPP-R300 Command Manual
Rev. 1.01
http://www.bixolon.com
SPP-R300 Command Manual
■ Contents
1. Notice ........................................................................................................................................................................................................ 3
2. SPP-R300 Supported Commands........................................................................................................................................................... 4
2-1 Command Description Items ................................................................................................................................................................ 5
2-2 Details of Control Commands ............................................................................................................................................................... 6
Rev. 1.01
BIXOLON
-2-
SPP-R300 Command Manual
1. Notice
This document contains proprietary information of BIXOLON Corporation and its affiliates. You may utilize the information solely for the
purpose of facilitating authorized sales and service of, or developing software and similar products for authorized use with, BIXOLON
products, provided that such proprietary information may not be used, reproduced, or disclosed to any other parties for any other purpose
without the prior written permission of BIXOLON Corporation. BIXOLON has no liability for loss or damage arising from or relating to your
use of or reliance on the information in the document.
We at BIXOLON maintain ongoing efforts to enhance and upgrade the functions and quality of all our products. In following, product
specifications and/or user manual content may be changed without prior notice.
Rev. 1.01
BIXOLON
-3-
SPP-R300 Command Manual
2. SPP-R300 Supported Commands
No.
1
2
3
4
5
6
7
Command
EOT
HT
LF
FF
CR
DLE
CAN
Function
Transmit status
Horizontal tab
Print and line feed
Form feed (in page mode)
Print and carriage return
Set real-time command mode
Cancel the print data in page mode
No.
32
33
34
35
36
37
38
8
ESC SP
Set the character right space
39
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ESC !
ESC $
ESC *
ESC ESC 2
ESC 3
ESC =
ESC @
ESC D
ESC E
ESC G
ESC J
ESC L
ESC M
ESC R
ESC S
ESC T
ESC W
ESC \
ESC a
ESC d
ESC t
ESC {
Set print mode
Set absolute print position
Specify bit image mode
Turn underline mode on/off
Select default line spacing
Set line spacing
Select peripheral device
Initialize printer
Set horizontal tab positions
Turn emphasized mode on/off
Turn double-strike mode on/off
Print and feed paper
Select page mode
Select character font/ MSR card read
Specify an international character set
Select standard mode
Select print direction in page mode
Set print area in page mode
Set relative print position
Set position alignment
Print and feed n lines
Select character code table
Turn upside-down print mode on/off
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Rev. 1.01
BIXOLON
Command
FS &
FS .
GS !
GS $
GS ( A
GS ( F
GS ( k
GS ( L
GS 8 L
GS :
GS B
GS H
GS I
GS I b
GS L
GS T
GS W
GS \
GS ^
GS a
GS f
GS h
GS k
GS r
GS v 0
GS w
BS L A
BS L L
BS L R
BS M
BS M S
Function
Select Kanji character mode
Cancel Kanji character mode
Select character size
Set absolute vertical print position in page mode
Execute test print
Set black mark control functions
Specify and print the symbol
Select graphics data
Start/end macro definition
Turn white/black reverse print mode on/off
Select print position of HRI characters
Transmit printer ID
Transmit battery status
Set left margin
Set print position to the beginning of print line
Set print area width
Set relative vertical print position in page mode
Execute macro
Enable/disable Automatic Status Back (ASB)
Select font for HRI characters
Set bar code height
Print bar code
Transmit status
Print raster bit image
Set bar code width
Execute automatic calibration in label mode
Select label mode
Select receipt mode
Select device font type
Sentinel character set up commands
-4-
SPP-R300 Command Manual
2-1 Command Description Items
Command
Function:
Command function outline
Code:
Command format expressed in ASCII, hexadecimal, and decimal codes
Range:
Argument value (Setting range) for the command
Default:
Initial argument value for the command
Description:
Detailed command function description
Remarks:
Additional information about using the command
Differences:
Variations depending on the printer model
Rev. 1.01
BIXOLON
-5-
SPP-R300 Command Manual
2-2 Details of Control Commands
EOT
Function:
Code:
Transmit status
ASCII
Hex
Decimal
Range:
1≤n≤4
Default:
None
EOT
04
4
n
n
n
Description: This command transmits the printer-related status specified by n as follows:
n
Function
1
Transmit printer status
2
Transmit off-line status
3
Transmit error status
4
Transmit paper roll sensor status
■
Printer transmits the following status
n=1: Printer status
Bit
0
1
2
3
4
5
6
7
Rev. 1.01
Binary
0
1
0
1
0
1
1
0
0
0
Hex
00
02
00
04
00
08
10
00
00
00
Decimal
0
2
0
4
0
8
16
0
0
0
Status
Not used. Fixed to Off
Not used. Fixed to On
Drawer kick-out connector pin 3 is LOW
Drawer kick-out connector pin 3 is HIGH
Online
Offline
Not used. Fixed to On
Not used. Fixed to Off
Not used. Fixed to Off
Not used. Fixed to Off
BIXOLON
-6-
SPP-R300 Command Manual
n=2: Off-line status
Bit
0
1
2
3
4
5
6
7
Off/On
Off
On
Off
On
Off
On
On
Off
On
Off
On
Off
Hex
00
02
00
04
00
08
10
00
20
00
40
00
Decimal
0
2
0
4
0
8
16
0
32
0
64
0
Status
Fixed
Fixed
Cover is closed
Cover is open
Paper is not being fed by using the paper FEED button
Paper is being fed by the paper FEED button
Fixed
No paper-end stop
Printing is being stopped
No error
Error has occurred
Fixed
n=3: Error status
Bit
0
1
2
3
4
5
6
7
Rev. 1.01
Binary
0
1
0
1
0
1
1
0
1
0
1
0
Hex
00
02
00
04
00
08
10
00
20
00
40
00
Decimal
0
2
0
4
0
8
16
0
32
0
64
0
Status
Not used. Fixed to Off
Not used. Fixed to On
No mechanical error
Mechanical error occurred
No autocutter error
Autocutter error occurred
Not used. Fixed to On
No unrecoverable error
Unrecoverable error occurred
No auto-recoverable error
Auto-recoverable error occurred
Not used. Fixed to Off
BIXOLON
-7-
SPP-R300 Command Manual
n=4: paper sensor status
Bit
0
1
2,3
4
5,6
7
Remarks:
■
■
Binary
0
1
00
11
1
00
11
0
Hex
00
02
00
0C
10
00
60
00
Decimal
0
2
0
12
16
0
96
0
Status
Not used. Fixed to Off
Not used. Fixed to On
Paper near end sensor: paper adequate
Paper near end sensor: paper near end
Not used. Fixed to On
Paper end sensor: paper present
Paper end sensor: paper not present
Not used. Fixed to Off
This command can be executed in a real time mode using DLE.
In a real time mode, the status is transmitted to the host upon being requested that can check the printer operational
condition with it and takes appropriate measures accordingly.
Differences: ■ Status not supported:
n=1: Drawer kick-out connector
n=2: Error
n=3: All of the status
n=4: Paper near end
Rev. 1.01
BIXOLON
-8-
SPP-R300 Command Manual
HT
Function:
Code:
Horizontal tab
ASCII
Hex
Decimal
HT
09
9
Range:
None
Default:
None
Description:
This command moves the print position to the next horizontal tab position. If the next horizontal tab position is not
specified, this command will be void.
Remarks:
■
Differences:
None
Rev. 1.01
The horizontal tab position is set by <ESC> D.
■ With the underline mode turned on, the underline printing is not applied to the tab space created by this command.
BIXOLON
-9-
SPP-R300 Command Manual
LF
Function:
Code:
Print and line feed
ASCII
Hex
Decimal
LF
0A
10
Range:
None
Default:
None
Description:
This command prints the data in the print buffer and feeds one line based on the current set line spacing in standard
mode.
Remarks:
■
Differences:
None
Rev. 1.01
In page mode, the printer does not perform actual printing, but moving only the print position to the next line.
BIXOLON
- 10 -
SPP-R300 Command Manual
FF
Function:
Code:
Form feed (in page mode)
ASCII
Hex
Decimal
FF
0C
12
Range:
None
Default:
None
Description:
This commands prints all data collected in the printer buffer In page mode. After completion of printing, the printer is
returned to standard mode.
Remarks:
■
■
Differences:
None
Rev. 1.01
The printer is returned to standard mode after completion of printing.
This command works in page mode enabled by ESC L
BIXOLON
- 11 -
SPP-R300 Command Manual
CR
Function:
Code:
Print and carriage return
ASCII
Hex
Decimal
CR
0D
13
Range:
None
Default:
None
Description:
This command prints the data. With auto line feed enabled, it performs printing and one line feeding same as LF.
Remarks:
■
Differences:
None
Rev. 1.01
Auto line feed is only enabled with a parallel interface using the DIP switch.
BIXOLON
- 12 -
SPP-R300 Command Manual
DLE
Function:
Code:
Set real-time command mode
ASCII
Hex
Decimal
DLE
10
16
Range:
None
Default:
None
Description:
This command enables commands to be operable in real-time.
Remarks:
■
■
■
Differences:
■
Rev. 1.01
A single command following this command is regarded as a real time command.
The real time command is stored into the receive buffer and executed with higher priority than other commands.
If this command is processed as a parameter of the other command, the data following this command might bring
about the unwanted result.
■ The commands that are allowed to be executed in real time mode vary depending on the printer model.
Commands that can be executed in real time mode: EOT, GS r, GS I, GS I b
BIXOLON
- 13 -
SPP-R300 Command Manual
CAN
Function:
Code:
Cancel the print data in page mode
ASCII
Hex
Decimal
CAN
18
24
Range:
None
Default:
None
Description:
This command clears the receive buffer and print buffers in page mode.
Remarks:
■
Differences:
None
Rev. 1.01
This command is effective only in page mode that is set by ESC L.
BIXOLON
- 14 -
SPP-R300 Command Manual
ESC SP
Function:
Set the character right space
Code:
ASCII
Hex
Decimal
Range:
0 ≤ n ≤ 255
Default:
n=0
Description:
■
This command sets the size of space to right of character.
• Right space = n × [horizontal motion units].
Remarks:
■
■
In a double width mode, the right space will be doubled.
Horizontal motion unit varies depending the printer model.
Differences:
■
Horizontal motion unit: 0.125mm(1/203 inch)
Rev. 1.01
ESC
1B
27
SP
20
32
n
n
n
BIXOLON
- 15 -
SPP-R300 Command Manual
ESC !
Function:
Set print mode
Code:
ASCII
Hex
Decimal
Range:
0 ≤ n ≤ 255
Default:
n=0
Description:
This command selects print mode(s) with bits having following meanings.
Bit
Off/On
Hex
Decimal
Function
Off
00
0
Character font A selected
0
On
01
1
Character font B selected
1,2
Off
00
0
Reserved
Off
00
0
Emphasized mode not selected
3
On
08
8
Emphasized mode selected
Off
00
0
Double-height mode not selected
4
On
10
16
Double-height mode selected
Off
00
0
Double-width mode not selected
5
On
20
32
Double-width mode selected
6
Off
00
0
Reserved
Off
00
0
Underline mode not selected
7
On
80
128
Underline mode selected
Remarks:
■
Differences:
■
Rev. 1.01
ESC
1B
27
!
21
33
n
n
n
As alternative to this command, ESC M, ESC E and ESC – can be used for the selection for character font,
emphasized mode and underline mode respectively.
■ The entire character print width is underlined, but the space skipped by HT is not.
■ If both double width and double height are selected, the characters will be quadrupled.
Character configuration(Font A, Font B): Font A(12 × 24), Font B(9 x 17)
BIXOLON
- 16 -
SPP-R300 Command Manual
ESC $
Function:
Code:
Set absolute print position
ASCII
Hex
Decimal
ESC
1B
27
$
24
36
nL
nL
nL
nH
nH
nH
Range:
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nH ≤ 255, 0 ≤ nL ≤ 255)
Default:
None
Description:
This command specifies the next print starting position in reference to the left edge of the print area. The printing start
position is calculated using (nL + nH x 256) x (vertical or horizontal motion units).
Remarks:
■
■
■
Differences:
■
Rev. 1.01
Any setting values that go beyond the printable area is ignored.
In standard mode, the horizontal motion unit is used for the calculation.
In page mode, the horizontal motion unit is applied when printing start poison is defined to the upper right or lower
right of print area using ESC T, otherwise, the vertical motion unit is used.
Horizontal motion unit: 0.125mm(1/203 inch)
BIXOLON
- 17 -
SPP-R300 Command Manual
ESC *
Function:
Code:
Specify bit image mode
ASCII
Hex
Decimal
ESC
1B
27
*
2A
42
m
m
m
nL
nL
nL
nH
nH
nH
Range:
m = 0, 1, 32, 33
0 ≤ nL ≤ 255
0 ≤ nH ≤ 3
0 ≤ d ≤ 255
k = nL + nH × 256 [in case of m = 0, 1]
k = (nL + nH × 256) × 3 [in case of m = 32, 33]
Default:
None
d1...dk
d1...dk
d1...dk
Description: ■ This command specifies the bit image for the mode m as to the number of dots specified by nL and nH.
• d specifies the bit image data with 1 for printed data and 0 for not printed.
• k denotes the number of horizontal dots.
DPI : Dots per Inch (25.4mm)
Number of dots in
Vertical dot
Horizontal dot
m
Mode
Number of bytes (k)
vertical direction
density (DPI)
density (DPI)
0
8-dot single-density
8
203/3
203/2
nL + nH x 256
1
8-dot double-density
8
203/3
203
nL + nH x 256
32
24-dot single-density
24
203
203/2
(nL + nH x 256) x 3
33
24-dot double-density
24
203
203
(nL + nH x 256) x 3
Remarks:
■
■
If the bit image data being entered is beyond the number of dots to be printed, the surplus will be discarded.
If the value of m is beyond the conditions, the subsequent data after m will be treated as normal data.
Differences: None
Rev. 1.01
BIXOLON
- 18 -
SPP-R300 Command Manual
ESC –
Function:
Code:
Turn underline mode on/off
ASCII
Hex
Decimal
ESC
1B
27
Range:
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
Default:
n=0
Description:
■
Remarks:
■
Differences:
None
Rev. 1.01
2D
45
n
n
n
This command enables the print data following it to be printer out underlined.
• The underline mode varied depending on the following values of n:
n
Function
0,48
Turns off underline mode
1,49
Turns on underline mode, set at 1-dot thick
2,50
Turns on underline mode, set at 2-dot thick
The spaces generated by horizontal tab are not underlined.
■ Using bit 7 of ESC !, the underline mode can be activated/deactivated as well.
BIXOLON
- 19 -
SPP-R300 Command Manual
ESC 2
Function:
Code:
Select default line spacing
ASCII
Hex
Decimal
ESC
1B
27
2
32
50
Range:
None
Default:
None
Description:
This command sets the default line spacing The default line spacing is approximately 3.75 mm, which is equivalent to 30
dots.
Remarks:
■
Differences:
■
Rev. 1.01
The line spacing can be set independently in standard mode and in page mode.
■ The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Default line spacing: 3.75 mm(30 dots)
BIXOLON
- 20 -
SPP-R300 Command Manual
ESC 3
Function:
Set line spacing
Code:
ASCII
Hex
Decimal
Range:
0 ≤ n ≤ 255
Default:
Corresponding to the default line spacing defined by ESC 2
Description:
■
Remarks:
■
■
Differences:
■
Rev. 1.01
ESC
1B
27
3
33
51
n
n
n
This command sets the line spacing using a following rule.
• Line spacing = n x (vertical or horizontal motion units)
With standard mode selected, the vertical motion unit is used.
In page mode, the horizontal motion unit is applied when printing start poison is defined to the upper right or lower
right of print area using ESC T, otherwise, the vertical motion unit is used.
■ The line spacing is settable independently for each of standard and page modes.
Vertical or horizontal motion unit and maximum line spacing settable:
Model
Vertical unit
Horizontal unit
SPP-R300
0.125mm (1/203 inches)
0.125mm (1/203 inches)
BIXOLON
Max line spacing
31.875mm
- 21 -
SPP-R300 Command Manual
ESC =
Function:
Code:
Select peripheral device
ASCII
Hex
Decimal
ESC
1B
27
=
3D
61
n
n
n
Range:
1≤n≤3
Default:
n =1
Description:
■
The selection of peripherals according to the n value is as follows.
n
Function
1,3
Printer Activation
2
Printer Deactivation
Remarks:
■
When the printer is deactivated, all received data is not recognized, but “ESC =” and real-time commands are
recognized.
Differences:
None
Rev. 1.01
BIXOLON
- 22 -
SPP-R300 Command Manual
ESC @
Function:
Code:
Initialize printer
ASCII
Hex
Decimal
ESC
1B
27
@
40
64
Range:
None
Default:
None
Description:
This command cancels conditions previously set and initializes the printer to the conditions having existed at power on.
Remarks:
■
■
■
■
■
The data in the printer buffer is cleared.
The settings of DIP switch are not re-read.
The data in the receive buffer is not discarded.
All of the settings such as print mode and line feed are cleared.
NV graphics and NV user memory are not cleared.
■ In page mode, this command removes the data in print areas, restores the initial settings and returns to standard
mode.
Differences:
Rev. 1.01
None
BIXOLON
- 23 -
SPP-R300 Command Manual
ESC D
Function:
Code:
Set horizontal tab position
ASCII
Hex
Decimal
ESC
1B
27
D
44
68
n1...nk
n1...nk
n1...nk
Range:
1 ≤ n ≤ 255 , 0 ≤ k ≤ 32
Default:
n=8, 16, 24, 32, 40,....., 232, 240, 248
Description:
■
Remarks:
■
■
■
■
Differences:
None
Rev. 1.01
NUL
00
0
This command sets the horizontal tab position.
• n defines the number of columns from the beginning of the line to the horizontal tab setting.
• k denotes the number of horizontal tab positions to be set.
• The horizontal tab position is stored as a value of [character width x n] measured form the beginning of the line.
The data [n]k signifying the set position is transmitted in the ascending order and ends with a NUL code.
ESC D NUL cancels all horizontal tab positions.
Tab position is set at the value of [character width x n] from the beginning of the line.
The character width includes the space to the right of the character, and it will be twice the normal character when the
double width characters are selected.
■ If the data [n]k is equal to or smaller than the preceding data [n]k-1, the horizontal tab setting has been completed.
■ Up to 32 horizontal tabs can be set, the data exceeding this limit is processed as normal ones.
■ Even if the character width is changed after setting the horizontal tab positions, the horizontal tab positions remain
unchanged.
BIXOLON
- 24 -
SPP-R300 Command Manual
ESC E
Function:
Turn emphasized mode on / off
Code:
ASCII
Hex
Decimal
Range:
0 ≤ n ≤ 255
Default:
n=0
Description:
■
This command turns emphasized mode on or off by toggling the least significant bit of n like following.
• When the LSB of n is 0, emphasized mode is turned off.
• When the LSB of n is 1, emphasized mode is turned on.
Remarks:
■
The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Differences:
None
Rev. 1.01
ESC
1B
27
E
45
69
n
n
n
BIXOLON
- 25 -
SPP-R300 Command Manual
ESC G
Function:
Turn double-strike mode on/off
Code:
ASCII
Hex
Decimal
Range:
0 ≤ n ≤ 255
Default:
n=0
Description:
■
This command turns double-strike mode on or off by toggling the least significant bit of n like following.
• When the LSB of n is 0, emphasized mode is turned off.
• When the LSB of n is 1, emphasized mode is turned on.
Remarks:
■
The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Differences:
None
Rev. 1.01
ESC
1B
27
G
47
71
n
n
n
BIXOLON
- 26 -
SPP-R300 Command Manual
ESC J
Function:
Print and feed paper
Code:
ASCII
Hex
Decimal
Range:
0 ≤ n ≤ 255
Default:
None
Description:
This command prints the data in the print buffer and feeds the paper [n X vertical motion unit].
Remarks:
■
■
■
Differences:
■
Rev. 1.01
ESC
1B
27
J
4A
74
n
n
n
The maximum feed amount available varies depending on the printer model.
With standard mode selected, the vertical motion unit is used.
In page mode, the horizontal motion unit is applied when printing start poison is defined to the upper right or lower
right of print area using ESC T, otherwise, the vertical motion unit is used.
■ When used in page mode, this command moves only the print position, not executing actual printing.
Vertical motion unit and maximum feed amount:
Model
Vertical unit
SPP-R300
0.125mm (1/203 inches)
BIXOLON
Max feed amount
31.875mm
- 27 -
SPP-R300 Command Manual
ESC L
Function:
Code:
Select page mode
ASCII
Hex
Decimal
ESC
1B
27
L
4C
76
Range:
None
Default:
None
Description:
This command switches from standard mode to page mode.
Remarks:
■
■
■
■
■
■
Differences:
Rev. 1.01
For printing in page mode, ESC T defines the print direction and starting position that is within the print area specified
by ESC W.
The conditions by the following commands are defined independently in standard mode and page mode.
• ESC SP, ESC 2, ESC 3, ESC U, and FS S
The following commands are not activated in page mode.
• ESC L, FS q, GS ( A, GS ( E, GS T
The following commands are not effective in page mode. The conditions set by these commands in page mode are
available when the printer returns to standard mode.
• ESC a, ESC {, GS L, and GS W
The printer resumes standard mode by the use of ESC S, FF, and [email protected]
In page mode, the command, FF, prompts printing the data in the printer buffer collectively. LF, CR, ESC J, and ESC
d just move the print position, not performing actual printing.
None
BIXOLON
- 28 -
SPP-R300 Command Manual
ESC M
Function:
Code:
Select character font/ MSR card read
ASCII
Hex
Decimal
ESC
1B
27
M
4D
77
n
n
n
Range:
n = 0,1,2, 48, 49 ,50 ,67, 68, 69, 70, 71, 72, 73
Default:
n=0
Description:
▪ Selects only 1byte character fonts
▪ Selects Card reader mode
n
Function
0, 48
Character font A (12 × 24) selected
1, 49
Character font B (9 × 17) selected
2, 50
Character font C(9 x 24)selected
70
Set 1 track card reader mode
71
Set 2 track card reader mode
72
Set 1,2 track card reader mode
73
Transmits the MSR setting value(s)
68
Set 3 track card reader mode
69
Set 2,3 track card reader mode
66
Set 1,2,3 track card reader mode
99
Cancel MSR reader mode
■ Magnetic card reader is provided with track 1, 2, and 3.
■ Magnetic card read out put format
Refer to function 3 memory switch #7 (8 - 6 & 7 setting) of GS ( E command and function 1 of BS M S command.
Rev. 1.01
BIXOLON
- 29 -
SPP-R300 Command Manual
- When set to Track 1 Read mode
Normal mode
02H 41H 31H 31H 1CH Max DATA 76 characters (1Track data) 03H 0DH 0AH
1byte sentinel character mode
02H 41H 31H 31H 1CH (Header) 25H (STX) Max DATA 76 characters (1Track data) 3FH (ETX) 03H 0DH 0AH (End)
Multi byte sentinel characters mode
START characters
END characters
Max DATA 76 characters (1Track data)
0DH 0AH
(Max 10 byte)
(Max 10 byte)
- When set to Track 2 Read mode
Normal mode
02H 42H 31H 31H 1CH Max DATA 37 characters (2Track data) 03H 0DH 0AH
1byte sentinel character mode
3BH Max DATA 37 characters 3FH 03H 0DH 0AH
(STX)
(2Track data)
(ETX)
(End)
Multi byte sentinel characters mode
START characters Max DATA 37 characters END characters
0DH 0AH
(Max 10 byte)
(2Track data)
(Max 10 byte)
02H 42H 31H 31H 1CH (Header)
- When set to Track 3 Read mode
Normal mode
Max DATA104 characters
02H 44H 31H 31H 1CH
03H 0DH 0AH
(3Track data)
1byte sentinel character mode
3BH Max DATA 104 characters 3FH 03H 0DH 0AH
02H 44H 31H 31H 1CH (Header)
(STX)
(3Track data)
(ETX)
(End)
Multi byte sentinel characters mode
START characters Max DATA 104 characters END characters
0DH 0AH
(Max 10 byte)
(3Track data)
(Max 10 byte)
Rev. 1.01
BIXOLON
- 30 -
SPP-R300 Command Manual
- When set to Track 1/2 Read mode
Normal mode
Max DATA 76 characters
Max DATA 37 Characters
02H 43H 31H 31H 1CH 1CH
1CH
03H 0DH 0AH
(1Track data)
(2Track data)
1byte sentinel character mode
02H 43H 31H 31H 1CH
Max DATA76
Max DATA37
03H 0DH
3BH
3FH
1CH
3BH
3FH
1CH
characters
Characters
0AH
(STX)
(ETX) (Separator) (STX)
(ETX)
(Header)
(1Track data)
(2Track data)
(End)
Multi byte sentinel characters mode
START characters Max DATA 76 characters END characters
0DH 0AH
(Max 10 byte)
(1Track data)
(Max 10 byte)
START characters Max DATA 37 characters END characters
0DH 0AH
(Max 10 byte)
(2Track data)
(Max 10 byte)
- When set to Track 2/3 Read mode
Normal mode
Max DATA 37 characters
Max DATA104 Characters
02H 45H 31H 31H 1CH 1CH
1CH
03H 0DH 0AH
(2Track data)
(3Track data)
1byte sentinel character mode
02H 45H 31H 31H 1CH
Max DATA37
Max DATA104
03H 0DH
3BH
3FH
1CH
3BH
3FH
1CH
characters
Characters
0AH
(STX)
(ETX) (Separator) (STX)
(ETX)
(Header)
(2Track data)
(3Track data)
(End)
Multi byte sentinel characters mode
START characters Max DATA 37 characters END characters
0DH 0AH
(Max 10 byte)
(2Track data)
(Max 10 byte)
START characters Max DATA 104 characters END characters
0DH 0AH
(Max 10 byte)
(3Track data)
(Max 10 byte)
- When set to Track 1/2/3 Read mode
Normal mode
Max DATA37
Max DATA104
Max DATA76 characters
02H 46H 31H 31H 1CH 1CH
1CH Characters 1CH Characters 03H 0DH 0AH
(1Track data)
(2Track data)
(3Track data)
Rev. 1.01
BIXOLON
- 31 -
SPP-R300 Command Manual
1byte sentinel characters mode
02H
46H
Max
Max
Max
03H
31H
DATA76
DATA37
DATA104
25H
3FH
1CH
3BH
3FH
1CH
3BH
3FH 0DH
31H
characters
Characters
Characters
(STX)
(ETX) (Separator) (STX)
(ETX) (Separator) (STX)
(ETX) 0AH
1CH
(1Track
(2Track
(3Track
(End)
1CH
data)
data)
data)
(Header)
Multi byte sentinel character mode
START characters Max DATA 76 characters END characters
0DH 0AH
(Max 10 byte)
(1Track data)
(Max 10 byte)
START characters Max DATA 37 characters END characters
0DH 0AH
(Max 10 byte)
(2Track data)
(Max 10 byte)
START characters Max DATA 104 characters END characters
0DH 0AH
(Max 10 byte)
(3Track data)
(Max 10 byte)
■
■
Rev. 1.01
The following shows the format of the MSR setting value transmitted from the printer.
Hexadecimal
Decimal
Header
37H
55
Flag
80H
128
Data
41H ~ 48H
65 ~ 72
NUL
00H
0
Amount of Data
1 byte
1 byte
1 bytes
1 byte
The following describes MSR read mode according to the MSR setting value.
MSR setting value(Hex)
MSR read mode
41
Track 1/2/3 read mode command (3 Track case)
42
Track 1 read mode AUTO trigger (3 Track case)
43
Track 2 read mode AUTO trigger (3 Track case)
44
Track 3 read mode AUTO trigger (3 Track case)
45
Track 1/2 read mode AUTO trigger (3 Track case)
46
Track 2/3 read mode AUTO trigger (3 Track case)
47
Track 1/2/3 read mode AUTO trigger (3 Track case)
48
MSR not used
BIXOLON
- 32 -
SPP-R300 Command Manual
■
The manual reading of a magnetic card is activated with MSR setting value of 41H that is set by SPP-R300 Unified
Utility. In this case, ESC M should be sent to the printer to receive the magnetic card read output prior to swiping the
card. In other cases, the printer receives automatically the output whenever the card is read.
Remarks:
■
■
The printer model has it own configuration of Font A and B.
The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Differences:
■
■
Configuration of Font A and B: Font A(12 × 24), Font B(9 x 17)
MSR read mode selection for SPP-R300 is specified using SPP-R300 Unified Utility.
Rev. 1.01
BIXOLON
- 33 -
SPP-R300 Command Manual
ESC R
Function:
Code:
Specify international character set
ASCII
Hex
Decimal
ESC
1B
27
R
52
82
n
n
n
Range:
0≤ n≤10
Default:
n=0
Description:
This command specifies international characters according to n values.
n
Character set
n
Character set
0
U.S.A
7
Spain I
1
France
9
Norway
2
Germany
10
Denmark II
3
U.K
11
Spain II
4
Denmark I
12
Latin America
5
Sweden
13
Korea
6
Italy
Remarks:
■
Differences:
None
Rev. 1.01
The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
BIXOLON
- 34 -
SPP-R300 Command Manual
ESC S
Function:
Code:
Select standard mode
ASCII
Hex
Decimal
ESC
1B
27
S
53
83
Range:
None
Default:
None
Description:
This command enables standard mode.
Remarks:
■
■
The data in the printer buffer is cleared and the setting by ESC W returns to the default.
The conditions by the following commands are defined independently in standard mode and page mode.
• ESC SP, ESC 2, ESC 3, ESC U, and FS S
■
In standard mode, CAN, GS $, and GS \ are ignored.
Differences:
Rev. 1.01
None
BIXOLON
- 35 -
SPP-R300 Command Manual
ESC T
Function:
Code:
Select print direction in page mode
ASCII
Hex
Decimal
ESC
1B
27
T
54
84
n
n
n
Range:
0 ≤ n ≤ 3, 48 ≤ n ≤ 51
Default:
n=0
Description:
This command selects the print direction and starting position in page mode.
n
Print Direction
Starting Position
0,48
Left right
Upper left
1,49
Bottom to top
Lower left
2,50
Right left
Lower right
3,51
Top bottom
Upper right
Remarks:
■
■
Differences:
None
Rev. 1.01
The print direction set by this command id not effective in standard mode.
If this command is processed in standard mode, the setting by this command is effective when the printer changes to
page mode.
■ Depending on the print starting position set by this command, the horizontal motion unit or vertical motion unit is used
for the following commands.
• When the starting position is the upper left or lower right of the print area; ESC SP, ESC $, ESC \ use the horizontal
motion unit and ESC 3, ESC J, GS $, GS \ the vertical motion unit.
• When the starting position is the upper right or lower left of the print area; ; ESC SP, ESC $, ESC \ use the vertical
motion unit and ESC 3, ESC J, GS $, GS \ the horizontal motion unit.
■ The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
BIXOLON
- 36 -
SPP-R300 Command Manual
ESC W
Function:
Code:
Set print area in page mode
ASCII
Hex
Decimal
ESC
1B
27
W
57
87
xL
xL
xL
xH
xH
xH
yL
yL
yL
yH
yH
yH
Range:
0 ≤ (xL + xH x 256) ≤ 65535 (0 ≤ xL ≤ 255, 0 ≤ xH ≤ 255)
0 ≤ (yL + yH x 256) ≤ 65535 (0 ≤ yL ≤ 255, 0 ≤ yH ≤ 255)
1 ≤ (dxL + dxH x 256) ≤ 65535 (0 ≤ dxL ≤ 255, 0 ≤ dxH ≤ 255)
1 ≤ (dyL + dyH x 256) ≤ 65535 (0 ≤ dyL ≤ 255, 0 ≤ dyH ≤ 255)
Default:
When paper width of 72mm is selected:
(xL + xH x 256) = 0 (xL=0, xH=0)
(yL + yH x 256) = 0 (yL=0, yH=0)
(dxL + dxH x 256) = 576 (dxL=64, dxH=2)
(dyL + dyH x 256) = 840 (dyL=72, dyH=3)
Description:
■
Remarks:
■
Rev. 1.01
dxL
dxL
dxL
dxH
dxH
dxH
dyL
dyL
dyL
dyH
dyH
dyH
This command set the position and the size of the printing area in page mode as following.
• Horizontal starting position = [(xL + xH x 256) x (horizontal motion units)]
• Vertical starting position = [(yL + yH x 256) x (vertical motion units)]
• Horizontal printing area width = [(dxL + dxH x 256) x (horizontal motion units)]
• Vertical printing area width = [(dyL + dyH x 256) x (vertical motion units)]
The horizontal and vertical starting positions are out of the printable area, this command is canceled and the following
data is processed as normal data.
■ If (Horizontal starting position + Horizontal printing area width) is beyond the printable area, the Horizontal printing
area width is set to (Horizontal printing area - Horizontal starting position).
■ If (Vertical starting position + Vertical printing area width) is beyond the printable area, the Vertical printing area width
is set to (Vertical printing area - Vertical starting position).
■ This command is not effective in standard mode. If this command is processed in standard mode, the setting by this
command is effective when the printer returns to page mode.
BIXOLON
- 37 -
SPP-R300 Command Manual
■
Differences:
Rev. 1.01
The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
The maximum printable area(Max horizontal printable area, Max vertical printable area):
Model
Max horizontal printable area
Max vertical printable area
SPP-R300
72mm(576dots)
105mm(840dots)
BIXOLON
- 38 -
SPP-R300 Command Manual
ESC \
Function:
Code:
Set relative print position
ASCII
Hex
Decimal
ESC
1B
27
\
5C
92
nL
nL
nL
nH
nH
nH
Range:
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nL 255, 0 ≤ nH ≤ 255)
Default:
None
Description:
■
Remarks:
■
■
■
■
Differences:
None
Rev. 1.01
This command sets the print starting position based on the current position to [(nL + nH × 256) × horizontal or vertical
motion unit]
• The print starting position is moved to (nL + nH x 256)in the right direction based on the current position.
The printer ignores any setting that exceeds the print area.
When the print area has been exceeded, this command is ignored.
With standard mode selected, the vertical motion unit is used.
In page mode, the horizontal motion unit is applied when printing start poison is defined to the upper right or lower
right of print area using ESC T, otherwise, the vertical motion unit is used.
■ Even if the underline mode is turned on, the space skipped by this command is not printed underlined.
BIXOLON
- 39 -
SPP-R300 Command Manual
ESC a
Function:
Code:
Set position alignment
ASCII
Hex
Decimal
ESC
1B
27
a
61
97
n
n
n
Range:
0 ≤ n ≤2, 48 ≤ n ≤50
Default:
n=0
Description:
This command specifies position alignment for all data in one line in standard mode, using n as follows:
n
Alignment
0, 48
Left alignment
1, 49
Center alignment
2, 50
Right alignment
Remarks:
■
Differences:
None
Rev. 1.01
This command is not effective in page mode. If this command is processed in page mode, the setting by this
command becomes effective when the printer returns to standard mode.
■ The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
BIXOLON
- 40 -
SPP-R300 Command Manual
ESC d
Function:
Print and feed n lines.
Code:
ASCII
Hex
Decimal
Range:
0 ≤ n ≤ 255
Default:
None
Description:
This command feeds the paper by n lines after printing the data in the print buffer.
Remarks:
■
■
■
The per-line paper feed amount is based on the value set by the line spacing related commands, ESC 2 and ESC 3.
In page mode, this command moves only the print position, not performing actual print.
If the feed amount set is beyond the maximum feed amount, the feed amount will be set to the maximum feed
amount automatically.
Differences:
■
Maximum feed amount: 255 lines.
Rev. 1.01
ESC
1B
27
d
64
100
n
n
n
BIXOLON
- 41 -
SPP-R300 Command Manual
ESC t
Function:
Code:
Select character code table
ASCII
Hex
Decimal
ESC
1B
27
t
74
116
n
n
n
Range:
0 ≤ n ≤ 5, 16 ≤ n ≤ 19, 21 ≤ n ≤ 31, 33 ≤ n ≤ 41, n=255
Default:
For model not supporting Thai character: n=0
For model supporting Thai character support : n = 20
Description:
This command specifies code page according to the value of n as follows:
n
Code page
0
Page 0
437 (USA, Standard Europe)
1
Page 1
Katakana
2
Page 2
850 (Multilingual)
3
Page 3
860 (Portuguese)
4
Page 4
863 (Canadian-French)
5
Page 5
865 (Nordic)
16
Page 16 1252 (Latin I)
17
Page 17 866 (Cyrillic #2)
18
Page 18 852 (Latin 2)
19
Page 19 858 (Euro)
21
Page 21 862 (Hebrew DOS code)
22
Page 22 864 (Arabic)
23
Page 23 Thai42
24
Page 24 1253 (Greek)
25
Page 25 1254 (Turkish)
Rev. 1.01
BIXOLON
- 42 -
SPP-R300 Command Manual
n
26
27
28
29
30
31
33
34
35
36
37
38
39
40
41
42
47
255
Remarks:
■
Differences:
None
Rev. 1.01
Code page
Page 26 1257 (Baltic)
Page 27 Farsi
Page 28 1251 (Cyrillic)
Page 29 737 (Greek)
Page 30 775 (Baltic)
Page 31 Thai14
Page 33 1255 (Hebrew New code)
Page 34 Thai 11
Page 35 Thai 18
Page 36 855 (Cyrillic)
Page 37 857 (Turkish)
Page 38 928 (Greek)
Page 39 Thai 16
Page 40 1256 (Arabic)
Page 41 1258 (Vietnam)
Page 42 KHMER(Cambodia)
Page 47 1250 (Czech)
User Code Page (Space)
The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
BIXOLON
- 43 -
SPP-R300 Command Manual
ESC {
Function:
Turns upside-down printing mode on/off
Code:
ASCII
Hex
Decimal
Range:
0 ≤ n ≤ 255
Default:
n=0
Description:
This command selects/deselects upside-down printing mode according to the least significant bit as follows.
LSB
Upside-down mode
0
Turned off
1
Turned on
Remarks:
■
ESC
1B
27
{
7B
123
n
n
n
This command is valid only when entered at the beginning of the line.
■ The upside-down print mode has no effect in page mode. If this command is processed in page mode, upside-down
printing mode is enabled when the printer returns to standard mode.
■ 180 rotated characters are printed from right to left in upside-down print mode.
■ The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Example
Normal
Differences:
Rev. 1.01
Upside- down Mode
None
BIXOLON
- 44 -
SPP-R300 Command Manual
FS &
Function:
Code:
Select Kanji character mode
ASCII
Hex
Decimal
FS
1C
28
&
26
38
Range:
None
Default:
None
Description:
This command sets Kanji character mode.
Remarks:
■
Differences:
None
Rev. 1.01
This command is available only for the Japanese, Chinese, and Korean models.
■ Kanji codes are comprised of 2 bytes and processed in order of the first and second byte.
■ The setting of this command remains effective until ESC !, ESC @, printer reset, power cycling or FS is executed.
BIXOLON
- 45 -
SPP-R300 Command Manual
FS .
Function:
Code:
Cancel Kanji character mode
ASCII
Hex
Decimal
FS
1C
28
.
2E
46
Range:
None
Default:
None
Description:
This command cancels Kanji character mode.
Remarks:
■
Differences:
None
Rev. 1.01
This command is available only for the Japanese, Chinese, and Korean models.
■ Kanji character mode is enabled using FS &.
■ Once Kanji character mode is canceled, the printer processes a character code as 1-byte code of alphanumeric
characters.
■ The setting of this command remains effective until ESC !, ESC @, printer reset, or power cycling is executed.
BIXOLON
- 46 -
SPP-R300 Command Manual
GS !
Function:
Code:
Select character size
ASCII
Hex
Decimal
GS
1D
29
!
21
33
n
n
n
Range:
0 ≤ n ≤ 255
(1 ≤ Vertical enlargement ≤ 8, 1 ≤ Horizontal enlargement ≤ 8)
Default:
n=0
Description:
■
This command selects the character height and width using bits 0 to 3, and bits 4 to 7 respectively as follows:
Bit
Function
Setting
0
1
2
3
4
5
6
7
Rev. 1.01
Specifies the number of times normal font
size in the vertical direction
Refer to Table 2
[Enlarged in vertical direction]
Specifies the number of times normal font
size in the horizontal direction
Refer to Table 1
[Enlarged in horizontal
direction]
BIXOLON
- 47 -
SPP-R300 Command Manual
•
Table 1 [Enlarged in horizontal direction]
Hex
Decimal
Enlargement
00
0
1 time (standard)
10
16
2 times
20
32
3 times
30
48
4 times
40
64
5 times
50
80
6 times
60
96
7 times
70
112
8 times
•
Table 2 [Enlarged in vertical direction]
Hex
Decimal
Enlargement
00
0
1 time (standard)
01
1
2 times
02
2
3 times
03
3
4 times
04
4
5 times
05
5
6 times
06
6
7 times
07
7
8 times
Remarks:
■
Differences:
None
Rev. 1.01
The character size set by this command is valid for alphanumeric, user-defined characters, multi-byte code
characters such as Chinese, Japanese, and Korean.
■ Double width and double height modes can be set by ESC !.
■ Multi-byte code characters are specified only by this command.
■ The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
BIXOLON
- 48 -
SPP-R300 Command Manual
GS $
Function:
Code:
Set absolute vertical print position in page mode
ASCII
Hex
Decimal
GS
1D
29
$
24
36
nL
nL
nL
nH
nH
nH
Range:
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255)
Default:
None
Description:
This command sets the absolute vertical print starting position to [(nL + nH × 256) × (vertical or horizontal motion unit)].
Remarks:
■
■
Differences:
None
Rev. 1.01
This command is activated only in page mode and ignored in standard mode.
Either vertical or horizontal motion unit is used according to the print direction set by ESC T as follows:
• With the starting position of the upper left or lower right on the print area, the vertical motion unit is used.
• In other cases, the horizontal motion unit is used.
■ The configuration beyond the print area set by ESC W is ignored.
BIXOLON
- 49 -
SPP-R300 Command Manual
GS ( A
Function:
Code:
Execute test print
ASCII
Hex
Decimal
GS
1D
29
(
28
40
A
41
65
Range:
(pL + pH x 256) = 2 (pL=2, pH=0)
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
1 ≤ m ≤ 3, 49 ≤ m ≤ 51
Default:
None
Description:
■
Remarks:
■
■
Differences:
None
Rev. 1.01
pL
pL
pL
pH
pH
pH
n
n
n
m
m
m
This command prints a specified pattern for testing on a roll paper.
• Roll paper is selected with n specified as follows:
n
Paper type
0, 48
1, 49
Roll paper
2, 50
• Different kinds of test patterns are selected according to m as follows:
m
Test pattern
1, 49
Hexadecimal dump mode
2, 50
Printer configuration printing
3, 51
Rolling pattern printing
The printer cancels a macro definition in progress If this command is processed. The macro becomes invalid.
After completion of this command, a software reset is executed automatically to restore the printer status set during
power cycling.
■ All of the data transmitted from the host to the printer is printed and identified in hexadecimal dump mode.
■ The real time command and ASB operations are not executed during the printing of printer configuration (m=2, 50)
and rolling pattern (m=3, 51).
BIXOLON
- 50 -
SPP-R300 Command Manual
GS ( F
Function:
Set black mark control functions
Code:
None
Range:
None
Default:
None
Description:
■ This command performs various functions to control the black mark(BM) paper as follows:
m
Format
Function
Sets the paper feed amount to adjust the print starting position after
1
GS ( F pL pH m a nL nH
sensing BM.
Sets the paper feed amount to adjust the paper cutting position after
sensing BM.
112
GS ( F pL pH m aL aH bL bH
Specifies the black mark paper format.
• pL, pH specifies (pL + (pH ×256)) as the number of bytes after pH (m and [parameter]).
2
Remarks:
■
Differences:
None
Rev. 1.01
GS ( F pL pH m a nL nH
This command is effective only when the BM(black mark) sensor is enabled.
■ This command is stored in the receive buffer and processed in FIFO so that the delay in execution of this command
might be occurred.
BIXOLON
- 51 -
SPP-R300 Command Manual
<Function 1> GS ( F pL pH m a nL nH (m=1)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
F
46
70
pL
04
4
pH
00
0
m
01
1
a
a
a
nL
nL
nL
nH
nH
nH
Range:
(pL + pH × 256) = 4 (pL = 4, pH = 0)
m=1
a = 0, 48
0 ≤ (nL + nH × 256) ≤ 65535 (0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255)
Default:
nL = 0, nH = 0
Description:
■
This command sets the value for the adjustment of print starting position after sensing BM.
• pL, pH specifies (pL + pH × 256) as the number of bytes after pH (m, a, nL, and nH)
• nL, nH specifies [(nL + nH × 256) × vertical motion units] as the adjustment value.
Remarks:
■
■
■
This command affects to the execution of the command FF.
This command is only effective for the forward paper feeding.
The maximum adjustable length is 400 mm. If the adjustment value to be specified exceeds the maximum value, the
adjustment value is automatically set to the maximum value.
Differences:
None
Rev. 1.01
BIXOLON
- 52 -
SPP-R300 Command Manual
<Function 2> GS ( F pL pH m a nL nH (m=2)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
F
46
70
pL
04
4
pH
00
0
m
02
2
Range:
(pL + pH × 256) = 4 (pL = 4, pH = 0)
m=2
a = 0, 48
0 ≤ (nL + nH × 256) ≤ 65535 (0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255)
Default:
nL = 0, nH = 0
Description:
■
Remarks:
■
Differences:
None
Rev. 1.01
a
a
a
nL
nL
nL
nH
nH
nH
This command sets the value for the adjustment of paper cutting position after sensing BM.
• pL, pH specifies (pL + pH × 256) as the number of bytes after pH (m, a, nL, and nH)
• nL, nH specifies [(nL + nH × 256) × vertical motion units] as the adjustment value.
This command affects to the cutting operations as follows:
• Paper cut by GS V m n.
• Paper cut after paper feeding triggered by the paper FEED button.
• Paper cut after initializing the BM.(optional)
• Paper cut after paper feeding with the cover closed.(optional)
■ This command is only effective for the forward paper feeding.
■ The maximum adjustable length is 400 mm. If the adjustment value to be specified exceeds the maximum value, the
adjustment value is automatically set to the maximum value.
BIXOLON
- 53 -
SPP-R300 Command Manual
<Function 112> GS ( F pL pH m aL aH bL bH (m=112)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
F
46
70
pL
05
5
pH
00
0
m
70
112
aL
aL
aL
aH
aH
aH
bL
bL
bL
bH
bH
bH
Range:
(pL + pH × 256) = 5 (pL = 5, pH = 0)
m = 112
0 ≤ (aL + aH × 256) ≤ 65535 (0 ≤ aL ≤ 255, 0 ≤ aH ≤ 255)
0 ≤ (bL + bH × 256) ≤ 65535 (0 ≤ bL ≤ 255, 0 ≤ bH ≤ 255)
Default:
aL = 141, aH = 0 (BM height(top of a BM ~ bottom of BM): 20 mm)
bL = 20, bH = 11 (BM interval(top of a BM ~ top of next BM): 400 mm)
Description:
■
This command sets the black mark paper format.
• pL, pH specifies (pL + pH × 256) as the number of bytes after pH (m, aL, aH,bL, bH).
• aL, aH specifies [(aL + aH × 256) × vertical motion units] as the BM height.
• bL, bH specifies as [(bL + bH × 256) × vertical motion units] as the BM interval.
Remarks:
■
■
■
■
The available BM height ranges from 4 to 20 mm.
If the BM height specified is out of range, this command is ignored.
The BM interval ranges from 40 to 400 mm.
If the BM interval specified is out of range, this command is ignored.
Differences:
None
Rev. 1.01
BIXOLON
- 54 -
SPP-R300 Command Manual
GS ( k
Function:
Specify and print the symbol
Code:
None
Range:
None
Default:
None
Description:
■
Rev. 1.01
This command processes the data concerning two-dimensional code.
• Symbol type is specified by cn.
• Function code is specified by fn.
cn
Type of Symbol
48
PDF417 (2-dimensional code)
49
QR CODE (2-dimensional code)
50
MAXI CODE(2-dimensional code)
51
DATAMATRIX(2-dimensional code)
BIXOLON
- 55 -
SPP-R300 Command Manual
cn
48
49
50
51
Rev. 1.01
fn
65
66
67
68
69
70
Function 065
Function 066
Function 067
Function 068
Function 069
Function 070
80
Function 080
81
Function 081
65
67
69
Function 165
Function 167
Function 169
80
Function 180
81
Function 181
65
Function 265
80
Function 280
81
Function 281
67
Function 367
80
Function 380
81
Function 381
Function
PDF417: Specify the number of columns
PDF417: Specify the number of rows
PDF417: Specify the width of module
PDF417: Specify the module height
PDF417: Specify the error correction level
PDF417: Specify the option
PDF417: Store the received data in the symbol
storage area
PDF417: Print the symbol data in the symbol
storage area
QR CODE: Select the module
QR CODE: Select the size of module
QR CODE: Select the error correction level
QR CODE: Store the data in the symbol
storage area
QR CODE: Print the data in the symbol storage
area
MAXI CODE: Select the mode
MAXI CODE: Store the data in the symbol
storage area
MAXI CODE: Print the symbol data saved in
The symbol storage area
DATAMATRIX: Select the size of module
DATAMATRIX: Store the symbol data in the
symbol storage area
DATAMATRIX: Print the symbol data in the
storage area
BIXOLON
- 56 -
SPP-R300 Command Manual
Remarks:
PDF417 symbol data (when cn=48)
■
■
■
■
■
■
■
■
■
■
■
■
Rev. 1.01
The symbol data is defined, stored to the symbol storage area by Function 080 and printed by the specification of
Function 081. The symbol data in the area remains reserved until the following processes are executed:
• Performing Function 080
• Performing ESC @
• Performing the printer reset and power-off
The setting values of Functions 065 to 070 are utilized for the processing of Function 080. The printable area must be
large enough to accommodate different-size symbols. If not, the symbol may not be printed.
The same symbol data is repeatedly printed by executing Function 081 after performing Function 080.
The same symbol data is printed differently by executing Function 081 after setting the feature of the symbol by using
Functions 065 through 070.
QRCODE Symbol Data (cn = 49)
The symbol data is defined, stored to the symbol storage area by Function 180 and printed by the specification of
Function 181. The symbol data in the area remains reserved until the following processes are executed:
• Performing Function 180
• Performing ESC @
• Performing the printer reset and power-off
The setting values of Functions 165 to 169 are utilized for the processing of Function 180. The printable area must be
large enough to accommodate different-size symbols. If not, the symbol may not be printed.
The same symbol data is repeatedly printed by executing Function 181 after performing Function 180.
The same symbol data is printed differently by executing Function 181 after setting the feature of the symbol by using
Functions 165 through 169.
MAXI CODE Symbol Data (cn = 50)
The symbol data is defined, stored to the symbol storage area by Function 280 and printed by the specification of
Function 281. The symbol data in the area remains reserved until the following processes are executed:
• Performing Function 280
• Performing ESC @
• Performing the printer reset and power-off
The setting value of Functions 265 is utilized for the processing of Function 281. The printable area must be large
enough to accommodate different-size symbols. If not, the symbol may not be printed.
The same symbol data is repeatedly printed by executing Function 281 after performing Function 280.
The same symbol data is printed differently by executing Function 281 after setting the mode by using Functions 265.
DATAMATRIX Symbol Data (cn=51)
BIXOLON
- 57 -
SPP-R300 Command Manual
The symbol data is defined, stored to the symbol storage area by Function 380 and printed by the specification of
Function 381. The symbol data in the area remains reserved until the following processes are executed:
• Performing Function 380
• Performing ESC @
• Performing the printer reset and power-off
■ The setting value of Functions 367 is utilized for the processing of Function 381. The printable area must be large
enough to accommodate different-size symbols. If not, the symbol may not be printed.
■ The same symbol data is repeatedly printed by executing Function 381 after performing Function 380.
■ The same symbol data is printed differently by executing Function 381 after setting the mode by using Functions 367.
■
Differences:
Rev. 1.01
None
BIXOLON
- 58 -
SPP-R300 Command Manual
<Function 065> GS ( k pL pH cn fn n (fn=65)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
Range:
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48, fn=65
0 ≤ n ≤ 30
Default:
n=0
Description:
■
Remarks:
■
■
■
Differences:
None
Rev. 1.01
pL
03
3
pH
00
0
cn
30
48
fn
41
65
n
n
n
This command specifies the number of columns in the data area of PDF417.
• When n=0, automatic processing is set
• When n is not 0, the number of columns of the data area is set to n code word.
Settings of this command affect the processing of Functions 081.
With auto processing (n=0) specified, the maximum number of columns in the data area is set to 30 columns.
The following data is excluded from the number of columns:
• Start and stop patterns
• Indicator code word of left and right
■ With auto processing (n=0) specified, the number of columns is calculated using the following information.
• Printing area when processing Functions 081
• Module width (Function 067)
• Option setting (Function 070)
■ The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
BIXOLON
- 59 -
SPP-R300 Command Manual
<Function 066> GS ( k pL pH cn fn n (fn=66)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
Range:
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48, fn=66
n=0, 3 ≤ n ≤ 90
Default:
n=0
Description:
■
Remarks:
■
■
■
Differences:
None
Rev. 1.01
pL
03
3
pH
00
0
cn
30
48
fn
42
66
n
n
n
This command specifies the number of rows in the data area of PDF417.
• When n=0, automatic processing is set
• When n is not 0, the number of rows is set to n rows.
Settings of this function affect the processing of Functions 081.
With auto processing (n=0) specified, the maximum number of rows is set to 90.
With auto processing (n=0) specified, the number of rows is calculated by using the following information:
• Printing area when processing Functions 081
• Module height (Function 068)
■ The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
BIXOLON
- 60 -
SPP-R300 Command Manual
<Function 067> GS ( k pL pH cn fn n (fn=67)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
03
3
pH
00
0
cn
30
48
fn
43
67
n
n
n
Range:
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48
fn=67
2≤n≤3
Default:
n=3
Description:
This command sets the width of the module of PDF417 symbol to n dots.
Remarks:
■
■
■
Settings of this command affect the processing of Functions 081.
The setting unit for printer models varies.
The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
Differences:
■
Setting unit(1 dot): 0,125 mm(1/203 inch)
Rev. 1.01
BIXOLON
- 61 -
SPP-R300 Command Manual
<Function 068> GS ( k pL pH cn fn n (fn=68)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
03
3
pH
00
0
cn
30
48
fn
44
68
n
n
n
Range:
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48
fn=68
2≤n≤8
Default:
n=3
Description:
This command sets the module height of PDF417 to [the module width x n]
Remarks:
■
■
Differences:
None
Rev. 1.01
Settings of this command affect the processing of Functions 081.
The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
BIXOLON
- 62 -
SPP-R300 Command Manual
<Function 069> GS ( k pL pH cn fn m n (fn=69)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
Range:
(pL + pH x 256) = 4 (pL=4, pH=0)
cn=48
fn=69
m=48
48 ≤ n ≤ 56
0≤n≤8
Default:
None
Description:
■
Remarks:
■
■
Differences:
None
Rev. 1.01
pL
04
4
pH
00
0
Cn
30
48
fn
45
69
m
m
m
n
n
n
This command specifies the error correction level for PDF417.
• The error correction level is set by “level”
Settings of this function affect the processing of Functions 081.
Error correction level specified by “level” (m=48) is as follows:
The number of the error correction codeword is unchanged regardless of the number of codeword in the data area.
n
Function
Number of error correction codeword
48
Error correction level 0
2
49
Error correction level 1
4
50
Error correction level 2
8
51
Error correction level 3
16
52
Error correction level 4
32
53
Error correction level 5
64
54
Error correction level 6
128
55
Error correction level 7
256
56
Error correction level 8
512
■ The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
BIXOLON
- 63 -
SPP-R300 Command Manual
<Function 070> GS ( k pL pH cn fn m (fn=70)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
03
3
pH
00
0
Range:
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48
fn=70
m=0,1
Default:
m=0
Description:
This command selects the option for PDF417.
m
Function
0
Select the standard PDF417
1
Select the simplified PDF417
Remarks:
■
■
■
Differences:
None
Rev. 1.01
cn
30
48
fn
46
70
m
m
m
Settings of this function affect the processing of Functions 081.
When simplified PDF417 symbol is canceled, standard PDF417 symbol is automatically selected.
The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
BIXOLON
- 64 -
SPP-R300 Command Manual
<Function 080> GS ( k pL pH cn fn m d1...dk (fn=80)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
pL
pL
pH
pH
pH
cn
30
48
fn
50
80
m
30
48
d1...dk
d1...dk
d1...dk
Range:
4 ≤ (pL + pH x 256) ≤ 65535 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 255)
cn=48
fn=80
m=48
0 ≤ d ≤ 255
k = (pL + pH x 256) – 3
Default:
None
Description:
This command stores the PDF417 symbol data (d1...dk) in the symbol storage area.
Remarks:
■
■
Differences:
None
Rev. 1.01
The data stored in the symbol storage area by this command remains reserved after processing Function 081.
The following data should not be included in the symbol data d1..dk since this information is automatically added by
the printer:
• Start pattern and stop pattern.
• Indicator codeword of left and right.
• The descriptor of symbol length. (the first code word in the data area)
• The error correction codeword calculated by modulus 929.
■ The setting of this command remains effective until the following processing is performed:
• Executing Function 080
• Executing ESC @
• Executing printer reset or power-off
BIXOLON
- 65 -
SPP-R300 Command Manual
<Function 081> GS ( k pL pH cn fn m (fn=81)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
03
3
pH
00
0
cn
30
48
fn
51
81
m
m
m
Range:
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=48
fn=81
m=48
Default:
None
Description:
This command encodes and prints the PDF417 symbol data in the symbol save area.
Remarks:
■
Rev. 1.01
In standard mode, this command is available only when printer is at the beginning of a line or the printer buffer is
empty.
■ A symbol exceeding the printing area in size can not be printed.
■ Printing operation is not processed under the following conditions:
• There is no data (Function 080 is not processed).
• If [(number of columns x number of rows) < number of code word] when automatic processing is specified for
number of columns and number of rows.
• Number of code word exceeds 928 in the data area.
■ The following data is added automatically by the encode processing:
• Start pattern and stop pattern.
• Indicator code word of left and right.
• The descriptor of symbol length. (the first code word in the data area)
• The error correction code word calculated by modulus 929.
• Pad codeword.
BIXOLON
- 66 -
SPP-R300 Command Manual
■
■
■
■
■
■
■
Differences:
Rev. 1.01
The data area includes the following codewords:
• Data specified by Function 080.
• The descriptor of symbol length. (the first code word in the data area)
• The error correction code word calculated by modulus 929.
• Pad codeword.
When automatic processing (Function 065) is specified, the number of columns is calculated using the following
information:
• Current printing area
• Module width (Function 067)
• Option setting (Function 070)
• Codeword in the data area
• The maximum number of columns is 30.
When auto processing (Function 066) is specified in page mode, the number of rows is calculated using the following
information:
• Current printing area
• Module height (Function 068)
• Codeword in the data area
• The maximum number of rows is 90.
Except for character size and upside-down printing mode, none of print mode such as emphasized, double-strike, etc,
affects the printing of the symbol.
In standard mode, the paper feed amount set by the paper feed setting command does not affect printing of the
symbol. The printing position returns to the left side of the printable area after printing the symbol.
In page mode, the printer stores the symbol data in the print buffer without executing actual printing.
The quiet zone is not included in the printing data. Be sure to include the adequate quiet zone for executing of this
command.
• The quiet zone means the spaces surrounding the symbol such as upper, lower, left, and right spaces.
None
BIXOLON
- 67 -
SPP-R300 Command Manual
<Function 165> GS ( k pL pH cn fn n1 n2 (fn=65)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
04
4
pH
00
0
Range:
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=49
fn=65
n1 = 49, 50
n2 =0
Default:
n1=50, n2 =0
Description:
This command sets the QR Code model as follows:
n1
Function
49
Model 1
50
Model 2
Remarks:
■
■
Differences:
None
Rev. 1.01
cn
31
49
fn
41
65
n1
n1
n1
n2
n2
n2
The setting of this command affects <Function 181>.
The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
BIXOLON
- 68 -
SPP-R300 Command Manual
<Function 167> GS ( k pL pH cn n (fn=67)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
03
3
pH
00
0
cn
31
49
fn
43
67
Range:
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=49
fn=67
0<=n<9
Default:
n=3
Description:
This command sets the size of the QR Code module to n dots.
Remarks:
■
■
■
Differences:
None
Rev. 1.01
n
n
n
The setting of this command affects the processing of <Function 181>.
Since the QR CODE module is square, n = module width = module height
The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
BIXOLON
- 69 -
SPP-R300 Command Manual
<Function 169> GS ( k pL pH cn n (fn=69)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
03
3
pH
00
0
cn
31
49
fn
45
69
n
n
n
Range:
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=49
fn=69
48≤n≤51
Default:
n=48
Description:
This command sets the error correction level for QR Code.
n
Function
Recovery Amount (%)
48
Error Correction Level L
7
49
Error Correction Level M
15
50
Error Correction Level Q
25
51
Error Correction Level H
30
Remarks:
■
■
■
Differences:
None
Rev. 1.01
The setting of this command affects the processing of <Function 181>.
Reed-Solomon correction is employed to generate a series of error correction codewords.
The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
BIXOLON
- 70 -
SPP-R300 Command Manual
<Function 180> GS ( k pL pH cn fn m d1...dk (fn=80)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
pL
pL
pH
pH
pH
cn
31
49
fn
50
80
m
30
48
Range:
4 ≤ (pL + pH x 256) ≤7092 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 27)
cn=49
fn=80
m=48
0 ≤ d ≤ 255
k = (pL + pH x 256) – 3
Default:
None
Description:
This command saves symbol data of the QR Code to the symbol storage area.
Remarks:
■
Differences:
None
Rev. 1.01
d1...dk
d1...dk
d1...dk
The symbol data is defined, stored to the symbol storage area by Function 180 and printed by the specification of
Function 181. The data remains reserved after completion of printing.
■ The following shows the data available for encoding of QR code.
Character Type
Usable Characters
Numeric Data
“0” ~ “9”
Alphanumeric Data
“0” ~ “9”, “A” ~ “Z”, SP, $, %, *, +, -, ., /, :
Kanji Data
Shift JIS value
8bit Byte Data
00H ~ FFH
■ The setting of this command remains effective until the following processing is performed:
• Performing Function 180
• Performing ESC @
• Performing the printer reset or power-off
BIXOLON
- 71 -
SPP-R300 Command Manual
<Function 181> GS ( k pL pH cn fn m (fn=81)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
03
3
pH
00
0
cn
31
49
fn
51
81
m
m
m
Range:
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=49
fn=81
m=48
Default:
None
Description:
This command encodes and prints QR Code symbol data saved in the symbol storage area.
Remarks:
■
Rev. 1.01
In standard mode, this command is available only when printer is at the beginning of a line or the printer buffer is
empty.
■ A symbol exceeding the printing area in size can not be printed.
■ Printing operation is not processed under the following conditions:
• There is no data. (Function 180 is not executed)
• If [(number of columns x number of rows) < number of code words], the numbers of columns and rows are
automatically processed.
• The four types of data compression modes are listed below. According to the symbol data in the data storage area,
automatically selects the best suitable compression mode.
*Numeric Data Code
*Alphanumeric Data mode
*Kanji Data mode
*8 bit Data mode
BIXOLON
- 72 -
SPP-R300 Command Manual
The following data is automatically added by the encoding processing:
• Position sensor pattern
• Segregator for the position sensor pattern
• Timing pattern
• Format information
• Version information
• Error correction code text
• Pad code text
• Indicator for counting bits of bytes
• Mode indicator
• Concluder
• Queue pattern (when model 2 is selected)
• Expansion pattern (when model 1 is selected)
■ Except for character size and upside-down printing mode, none of print mode such as emphasized, double-strike, etc,
affects the printing of the symbol.
■ In standard mode, the paper feed amount set by the paper feed setting command does not affect printing of the
symbol. The printing position returns to the left side of the printable area after printing the symbol.
■ In page mode, the printer stores the symbol data in the print buffer without executing actual printing.
■ The quiet zone is not included in the printing data. Be sure to include the adequate quiet zone for executing of this
command.
■
Differences:
Rev. 1.01
None
BIXOLON
- 73 -
SPP-R300 Command Manual
<Function 265> GS ( k pL pH cn fn n1 n2 (fn=65)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
03
3
pH
00
0
Range:
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=50
fn=65
50 ≤ n ≤ 52
Default:
n = 50
Description:
This command selects the mode for Maxi Code
n
Function
50
Mode 2 Setting
51
Mode 3 Setting
52
Mode 4 Setting
Remarks:
■
■
Differences:
None
Rev. 1.01
cn
32
50
fn
41
65
n
n
n
The setting of this command affects <Function 281>.
The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
BIXOLON
- 74 -
SPP-R300 Command Manual
<Function 280> GS ( k pL pH cn fn m d1...dk (fn=80)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
pL
pL
pH
pH
pH
cn
32
50
fn
50
80
m
30
48
Range:
4 ≤ (pL + pH x 256) ≤ 141 (4 ≤ pL ≤141, 0 ≤ pH ≤0)
cn=50
fn=80
m=48
0 ≤ d ≤ 255
k = (pL + pH x 256) – 3
Default:
None
Description:
This command stores Maxi Code symbol data in the symbol storage area.
Remarks:
■
Differences:
None
Rev. 1.01
d1...dk
d1...dk
d1...dk
The data stored in the symbol storage area by this command is processed by Functions 281. The data remains
reserved in the storage.
■ The setting of this command remains effective until the following processing is performed:
• Performing Function 280
• Performing ESC @
• Performing the printer reset or power-off
BIXOLON
- 75 -
SPP-R300 Command Manual
<Function 281> GS ( k pL pH cn fn m (fn=81)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
03
3
pH
00
0
cn
32
50
fn
51
81
m
m
m
Range:
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=50
fn=81
m=48
Default:
None
Description:
This command encodes and prints Maxi Code symbol data saved in the storage area.
Remarks:
■
Rev. 1.01
In standard mode, this command is available only when printer is at the beginning of a line or the printer buffer is
empty.
■ A symbol exceeding the printing area in size can not be printed.
■ Printing operation is not processed under the following conditions:
• There is no data. (Function 280 is not executed)
• The number of numeric characters exceeds 138
• The number of alphanumeric characters exceeds 93
• When mode 2 is selected, the primary message does not include all of the following:
Primary Message
Data Number
Character
Postal code
1~9
Numeric
ISO country code
1~3
Numeric
Service type code
1~3
Numeric
• When mode 3 is selected, the primary message does not include all of the following:
Primary Message
Data Number
Character
Postal code
1~6
Setting Code A
ISO country code
1~3
Numeric
Service type code
1~3
Numeric
BIXOLON
- 76 -
SPP-R300 Command Manual
Modes 2 and 3 are executed according to the following procedures:
(RS, GS indicates the control code of MAXI CODE. y indicates the 2-byte numeric data.)
a) 9-byte data including ” [)>”,”RS”,”01”,”GS”,”yy” are regarded as the Header.
• The next data following the Header is the Primary Message.
• When printing, the Header is placed at the beginning of the Secondary Message.
b) When Header data is absent, the data is regarded as Primary Message.
c) In the Primary Message, GS is used as the separator that divides message into Postal code, ISO country code,
and Class of service. This GS is ignored.
d) All data of the Secondary Message is regarded as symbol data.
■ In mode 4, 5, 6, all of the data in the symbol storage area is regarded as Primary Message and Secondary Message.
■ For error correction codeword, the Reed-Solomon algorithm is employed.
■ The following data is automatically added during the encoding process:
• Position sensor pattern
• Position pattern
• Error correction code text
• Mode separator
• Pad code text
■ In standard mode, the paper feed amount set by the paper feed setting command does not affect printing of the
symbol. The printing position returns to the left side of the printable area after printing the symbol.
■ In page mode, the printer stores the symbol data in the print buffer without executing actual printing.
■ The quiet zone is not included in the printing data. Be sure to include the adequate quiet zone for executing of this
command.
■
Differences:
Rev. 1.01
None
BIXOLON
- 77 -
SPP-R300 Command Manual
<Function 367> GS ( k pL pH cn n (fn=67)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
03
3
pH
00
0
Range:
(pL + pH x 256) = 3 (pL=3, pH=0)
cn=51
fn=67
2≤n≤3
Default:
n=3
Description:
This command sets the DATAMATRIX Code size.
Remarks:
■
■
■
Differences:
None
Rev. 1.01
cn
33
51
fn
43
67
n
n
n
This command affects the execution of <Function 381>.
The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
Since the DATAMATRIX Code module is square, n = module width = module height.
BIXOLON
- 78 -
SPP-R300 Command Manual
<Function 380> GS ( k pL pH cn fn m d1...dk (fn=80)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
pL
pL
pH
pH
pH
cn
33
51
fn
50
80
m
30
48
Range:
0 ≤ (pL + pH x 256) ≤ 3116 (0≤ pL ≤255, 0 ≤ pH ≤13)
cn=51
fn=80
m=48
0 ≤ d ≤ 255
k = (pL + pH x 256) – 3
Default:
None
Description:
This command stores DATAMATRIX symbol data in the symbol storage area.
Remarks:
■
Differences:
None
Rev. 1.01
d1...dk
d1...dk
d1...dk
The data stored to the symbol storage area by this command is executed by Function 381. The data remains
reserved in the symbol storage area.
■ The setting of this command remains effective until the following processing is performed:
• Performing Function 380
• Performing ESC @
• Performing the printer reset or power-off
BIXOLON
- 79 -
SPP-R300 Command Manual
<Function 381> GS ( k pL pH cn fn m (fn=81)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
k
6B
107
pL
03
3
pH
00
0
cn
33
51
fn
51
81
m
m
m
Range:
pL + pH x 256) = 3 (pL=3, pH=0)
cn=51
fn=81
m=48
Default:
None
Description:
This command encodes and prints DATAMATRIX symbol data saved in the storage area.
Remarks:
■
■
■
■
■
■
Rev. 1.01
In standard mode, this command is available only when printer is at the beginning of a line or the printer buffer is
empty.
A symbol exceeding the printing area in size can not be printed.
Printing operation is not processed under the following conditions:
• There is no data. (Function 380 cannot be executed)
• The number of alphanumeric characters exceeds 2334.
• The number of 8bit byte characters exceeds 1558.
• The number of numeric characters exceeds 3116.
DATAMATRIX uses ECC 200 symbols.
For error correction codeword, the Reed-Solomon algorithm is employed.
The following data is automatically added during the encoding process:
• Position pattern
• Error correction code text
• Mode separator
• Pad code text
BIXOLON
- 80 -
SPP-R300 Command Manual
In standard mode, the paper feed amount set by the paper feed setting command does not affect printing of the
symbol. The printing position returns to the left side of the printable area after printing the symbol.
■ In page mode, the printer stores the symbol data in the print buffer without executing actual printing.
■ The quiet zone is not included in the printing data. Be sure to include the adequate quiet zone for executing of this
command.
■
Differences:
Rev. 1.01
None
BIXOLON
- 81 -
SPP-R300 Command Manual
GS ( L, GS 8 L
Function:
Code:
Select graphics data
ASCII
Hex
Decimal
GS
1D
29
(
28
40
L
4C
76
pL
pL
pL
pH
pH
pH
m
m
m
fn
fn
fn
ASCII
Hex
Decimal
GS
1D
29
8
38
56
L
4C
76
p1
p1
p1
p2
p2
p2
p3
p3
p3
p4
p4
p4
[parameter]
[parameter]
[parameter]
m
m
m
fn
fn
fn
[parameter]
[parameter]
[parameter]
Range:
None
Default:
None
Description:
This command processes graphics data according to the function code (fn).
fn
Format
Function No.
Function
Transmits the NV graphics memory capacity.
0, 48
GS ( L pL pH m fn
Function 48
2, 50
GS ( L pL pH m fn
Function 50
Prints the graphics data in the print buffer.
Transmits the remaining capacity of the NV
3, 51
GS ( L pL pH m fn
Function 51
graphics memory.
Transmits the defined NV graphics key code list.
64
GS ( L pL pH m fn d1 d2
Function 64
Deletes all NV graphics data.
65
GS ( L pL pH m fn d1 d2 d3
Function 65
66
GS ( L pL pH m fn kc1 kc2
Function 66
Deletes the specified NV graphics data.
GS ( L pL pH m fn a kc1 kc2 b xL xH
Defines the raster graphics data in the non-volatile
67
Function 67
memory.
yL yH [c d1...dk]1...[c d1 dk]b
69
GS ( L pL pH m fn kc1 kc2 x y
Function 69
Prints the specified NV graphics data.
GS ( L pL pH m fn a bx by c xL xH
Stores the raster graphics data in the print buffer
112
Function 112
memory.
yL yH d1...dk
Remarks:
■
Rev. 1.01
This command is adapted to print image data.
BIXOLON
- 82 -
SPP-R300 Command Manual
pL, pH specifies the number of bytes following pH using (pL + pH x 256).
Since frequent writing operation could cause the damage to the NV memory, it is recommended to write only when
being required.
■ While storing data by this command, the printer is in BUSY state where receiving of data is not available. Therefore, it
is not recommended to send data during this process.
■ The real time commands and ASB operations are not allowed during NV memory operation process.
■
■
Differences:
Rev. 1.01
None
BIXOLON
- 83 -
SPP-R300 Command Manual
<Function 48> GS ( L pL pH m fn (fn=0, 48)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
L
4C
76
Range:
(pL + pH x 256) = 2 (pL=2, pH=0)
m=48, fn=0, 48
Default:
None
Description:
■
pL
pL
pL
pH
pH
pH
m
m
m
fn
fn
fn
Transmits the total capacity of the NV bit-image memory (number of bytes in the memory area).
Hexadecimal
Decimal
Amount of Data
Header
37H
55
1 byte
Flag
30H
48
1 byte
Data
30H - 39H
48 - 57
1 - 8 bytes
NUL
00H
0
1 byte
■ The total capacity data is converted to character codes corresponding to decimal data, then transmitted from the
MSB.
Remarks:
Differences:
Rev. 1.01
■
This command is available in both standard and page modes.
BIXOLON
- 84 -
SPP-R300 Command Manual
<Function 50> BS ^ L pL pH fn (fn=2, 50)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
L
4C
76
pL
pL
pL
pH
pH
pH
m
m
m
fn
fn
fn
Range:
(pL + pH x 256) = 2 (pL=2, pH=0)
m=48, fn=2, 50
Default:
None
Description:
This command prints the graphics data defined by the process of Function 112.
Remarks:
■
■
■
■
The graphics data stored in the printer buffer is printed.
This command is available in standard mode, not in page mode.
The graphics data is defined by Function 112.
The required amount of line feed pitch is used for printing graphics data, regardless of the existing setting value of the
pitch.
Differences:
■
This command is available in both standard and page modes.
Rev. 1.01
BIXOLON
- 85 -
SPP-R300 Command Manual
<Function 51> GS ( L pL pH m fn (fn=3, 51)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
L
4C
76
pL
pL
pL
pH
pH
pH
m
m
m
fn
fn
fn
Range:
(pL + pH x 256) = 2 (pL=2, pH=0)
m=48, fn=3, 51
Default:
None
Description:
▪ Transmits the number of bytes of remaining memory (unused area) in the NV user memory.
Hexadecimal
Decimal
Amount of Data
Header
37H
55
1 byte
Flag
31H
49
1 byte
Data
30H – 39H
48 - 57
1 - 8 bytes
NUL
00H
0
1 byte
■ The number of bytes of remaining memory is converted to character codes corresponding to decimal data, then
transmitted from the MSB.
■ The data length is variable.
Remarks:
Differences:
Rev. 1.01
None
BIXOLON
- 86 -
SPP-R300 Command Manual
<Function 64> GS ( L pL pH m fn d1 d2
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
L
4C
76
Range:
(pL + pH x 256) = 4 (pL=4, pH=0)
m=48
fn=64
d1=75, d2=67
Default:
None
Description:
■
pL
pL
pL
pH
pH
pH
m
m
m
Transmits the defined NV graphics key code list.
- When the key code is present :
Hexadecimal
Header
37H
Flag
72H
Status
40H or 41H
Data
30H - 39H
NUL
00H
fn
fn
fn
(fn=64)
d1
d1
d1
d2
d2
d2
Decimal
55
114
64 or 65
48 - 57
0
Amount of Data
1 byte
1 byte
1 byte
2 - 80 bytes
1 byte
- When the key code is not present :
Hexadecimal
Decimal
Header
37H
55
Flag
72H
114
Status
40H
64
NUL
00H
0
■ If the number of the key code exceeds 40, the key code is transmitted dividing up to 40.
- The status if the continuous transmission data block is present is 41H.
- The status if the continuous transmission data block is not present
is 40H.
Rev. 1.01
BIXOLON
Amount of Data
1 byte
1 byte
1 byte
1 byte
- 87 -
SPP-R300 Command Manual
After the [Header-NULL] is transmitted, the printer receives a response from the host; then it performs the process
defined by the response.
(See the tables below.)
- When the status (existence of the next data block) is Hexadecimal = 41H / Decimal = 65
Response
Process performed
ASCII
Decimal
ACK
6
Transmits the next data.
NAK
21
Transmits the previous data again.
CAN
24
Ends the process.
- When the status (for the last data block) is
Hexadecimal = 40H / 40H/Decimal = 64
Response
Process performed
ASCII
Decimal
ACK
6
Ends the process.
NAK
21
Transmits the previous data again.
CAN
24
Cancels the process.
■
Remarks:
Differences:
Rev. 1.01
None
BIXOLON
- 88 -
SPP-R300 Command Manual
<Function 65> GS ( L pL pH m fn d1 d2 d3 (fn=65)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
L
4C
76
pL
pL
pL
pH
pH
pH
Range:
(pL + pH x 256) = 5 (pL=5, pH=0)
m=48
fn=65
d1=67, d2=76, d3=82
Default:
None
Description:
This command removes all defined NV graphics data.
Remarks:
■
Differences:
None
Rev. 1.01
m
m
m
fn
fn
fn
d1
d1
d1
d2
d2
d2
d3
d3
d3
The graphics data is define by Function 67 into the NV graphics memory with the sector dedicated for storing NV
graphics data.
BIXOLON
- 89 -
SPP-R300 Command Manual
<Function 66> GS ( L pL pH m fn kc1 kc2 (fn=66)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
L
4C
76
pL
pL
pL
pH
pH
pH
m
m
m
fn
fn
fn
kc1
kc1
kc1
Range:
(pL + pH x 256) = 4 (pL=4, pH=0)
m=48
fn=66
32 ≤ kc1 ≤ 126
32 ≤ kc2 ≤ 126
Default:
None
Description:
This command deletes the NV graphics data corresponding to kc1 and kc2.
Remarks:
■
■
Differences:
None
Rev. 1.01
kc2
kc2
kc2
The graphics data is define by Function 67.
kc1 and kc2 is given to each of the graphics data groups to be stored into the NV graphics memory in the order of
download.
BIXOLON
- 90 -
SPP-R300 Command Manual
<Function 67> GS ( L pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b (fn=67)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
L
4C
76
pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b
pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b
pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b
Range:
GS ( L parameter
3 ≤ (pL + pH x 256) ≤ 65535 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 255)
[When using GS 8 L: 12 ≤ (p1 + ≤256 + p3 ≤65536 + p4 ≤16777216) ≤253119]
m=48, fn=67, a=48, 32 ≤ kc1 ≤ 126, 32 ≤ kc2 ≤ 126, b=1, 2, 1 ≤ (xL + xH x 256) ≤ 576, 1 ≤ (yL + yH x 256) ≤ 1662
c=49, 0 ≤ d ≤ 255, k = ( int ( ( xL + xH x 256 ) + 7 ) / 8 ) x ( yL + yH x 256 )
Default:
None
Description:
■
■
The total capacity of the NV graphic memory is only 256K bytes
Defines the raster graphics data in the NV graphics area.
- b specifies the number of the color of the defined data.
- xL, xH specifies the defined data in the horizontal direction to (xL + xH x 256) dots.
- xL, xH specifies the defined data in the vertical direction to (yL + yH x 256) dots.
- c specifies the color of the defined data.
C
Defined data color
49
Color 1
Remarks:
■
Color 1 means black
Differences:
■
Total capacity of the NV graphics memory:
• The total capacity of the NV graphics memory is 256K bytes.
Rev. 1.01
BIXOLON
- 91 -
SPP-R300 Command Manual
<Function 69> GS ( L pL pH m fn kc1 kc2 b x y (fn=69)
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
L
4C
76
pL
pL
pL
pH
pH
pH
m
m
m
fn
fn
fn
Range:
(pL + pH x 256) = 6 (pL=6, pH=0)
m=48, fn=69
32 ≤ kc1 ≤ 126
32 ≤ kc2 ≤ 126
x=1, 2
y=1, 2
Default:
None
Description:
■
Remarks:
■
■
■
This command prints the NV graphics data defined by Function 67.
In page mode, this command is not effective.
NV graphics data beyond the print area for one line is not printed.
Differences:
■
This command is effective both in standard and page modes.
Rev. 1.01
kc1
kc1
kc1
kc2
kc2
kc2
x
x
x
y
y
y
Prints the NV graphics data defined by the key codes kc1 and kc2. The graphics data is enlarged by x and y in the
horizontal and vertical directions.
BIXOLON
- 92 -
SPP-R300 Command Manual
<Function 112> GS ( L pL pH m fn a bx by c xL xH yL yH d1...dk
Code:
ASCII
Hex
Decimal
GS
1D
29
(
28
40
L
4C
76
(fn=112)
pL pH m fn a bx by c xL xH yL yH d1...dk
pL pH m fn a bx by c xL xH yL yH d1...dk
pL pH m fn a bx by c xL xH yL yH d1...dk
Range:
▪ GS ( L parameter
11 ≤ (pL + pH x 256) ≤ 65535 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 255)
▪ Common parameter for GS ( L
m=48, fn=112, a=48
bx=1, 2
by=1, 2
c=49
1 ≤ (xL+xHx256) ≤ 576
1 ≤ (yL + yH x 256) ≤ 1662 (when by = 1)
k = ( int ( ( xL + xH x 256 ) + 7 ) / 8 ) x ( yL + yH x 256 )
Default:
None
Description:
■
This command stores the raster graphics data in the print buffer, enlarged by bx and by in the horizontal and vertical
directions.
• xL, xH specifies the raster graphics data in the horizontal direction as (xL + xH x 256) dots.
• yL, yH specifies the raster graphics data in the vertical direction to (yL + yH x 256) dots.
• d denotes the stored data(raster format).
• k denotes the number of the graphics data.
• c specifies the color of the defined data.
c
Defined data color
49
Color 1
50
Color 2
• Color 1 means black, and Color 2 red or blue that is available for 2-color paper.
Remarks:
■
■
The graphics data is stored in the printer buffer directly.
Real time command is not effective during processing of this command.
Rev. 1.01
BIXOLON
- 93 -
SPP-R300 Command Manual
GS :
Function:
Code:
Start/end macro definition
ASCII
Hex
Decimal
GS
1D
29
:
3A
58
Range:
None
Default:
None
Description:
■
This command starts or ends macro definition.
Remarks:
■
The printer starts macro definition during normal operation and finishes it during macro definition upon receiving this
command.
The printer performs printing during macro definition.
The macro is executed by GS ^.
The maximum number of macro data to be defined varies with respect to printer models. The data exceeding this
limit is not stored.
ESC @ does not clear the existing defined macro. The macro remains effective until the printer reset and power
cycling are executed.
■
■
■
■
Differences:
Rev. 1.01
None
BIXOLON
- 94 -
SPP-R300 Command Manual
GS B
Function:
Turns white/black reverse printing mode on / off
Code:
ASCII
Hex
Decimal
Range:
0 ≤ n ≤ 255
Default:
n=0
Description:
■
This command selects white/black reverse printing mode by setting the least significant bit of n.
• When the LSB of n is 0, white/black reverse mode is turned off.
• When the LSB of n is 1, white/black reverse mode is turned on.
Remarks:
■
■
■
■
This command does not affect multi-byte characters such as Kanji, Japanese and Korean.
The right space defined by ESC SP is affected by this command.
In white/black reverse mode, the underline mode is not effective.
This mode remains effective until ESC @, printer reset or power cycling is executed.
Differences:
None
Rev. 1.01
GS
1D
29
B
42
66
n
n
n
BIXOLON
- 95 -
SPP-R300 Command Manual
GS H
Function:
Code:
Selects print position of HRI characters
ASCII
Hex
Decimal
GS
1D
29
H
48
72
n
n
n
Range:
0 ≤ n ≤ 3, 48 ≤ n ≤ 51
Default:
n=0
Description:
■
This command selects the printing position of HRI (Human Readable Interpretation) characters when printing a bar
code.
• The printing position is set according to the value of as follows:
n
Printing position
0, 48
Not printed
1, 49
Above the bar code
2, 50
Below the bar code
3, 51
Both above and below the bar code
Remarks:
■
■
The font of the HRI characters is defined by GS f.
The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
Differences:
None
Rev. 1.01
BIXOLON
- 96 -
SPP-R300 Command Manual
GS I
Function:
Transmits printer ID
Code:
ASCII
Hex
Decimal
Range:
1 ≤ n ≤ 69
Default:
None
Description:
■
Remarks:
■
Rev. 1.01
GS
1D
29
I
49
73
n
n
n
This command transmits the printer ID or information.
• Transmits 1 byte of printer ID, using n as follows:
n
Printer ID
Specification
1,49
Printer model ID
Printer model
2,50
Type ID
Printer type
3,51
Printer feature ID
Printing method and Printer size
• Transmits specified printer information, using n as follows:
n
Printer ID type
Specification
65
Firmware version
Firmware version
66
Manufacturer
BIXOLON
67
Printer model
Printer model
69
Code page
Currently enabled code page
Printer information (When n = 65, 66, 67, 69) consist of [Header ~ NULL] data as shown below:
Transmitted data
Hex
Decimal
Amount of data
Header
5FH
95
1byte
Printer information
Depends on the model
Depends on the model
0-15 bytes
NUL
00H
0
1byte
■ The firmware version can be confirmed by self test printing.
■ This command can be executed in real-time command mode using DLE.
BIXOLON
- 97 -
SPP-R300 Command Manual
Differences:
■
The printer ID is shown according to printer models as follows:
Printer ID
SPP-R300
1(Printer model ID)
0x41
Type ID varies depending on functions the printer supports as follows:
- 0x01 (Multi-byte character)
- 0x02 (Autocutter)
2(Type ID)
- 0x03 (Autocutter + Multi-byte character)
- 0x04 (Customer display)
- 0x05 (Multi-byte character + Display)
- 0x07 (Customer display + Autocutter + Multi-byte Character)
3(Printer feature ID)
0x69
66(Manufacturer)
BIXOLON
67(Printer model)
SPP-R300
69(Language of Font) Code page currently being used. Refer to cod page setting command, ESC t.
Rev. 1.01
BIXOLON
- 98 -
SPP-R300 Command Manual
GS I b
Function:
Code:
Transmits battery status
ASCII
Hex
Decimal
Range:
None
Default:
None
Description:
■
Remarks:
■
■
■
Differences:
None
Rev. 1.01
GS
1D
29
I
49
73
b
62
98
This command transmits the battery power status of the printer.
• The printer transmits [Header ~ NUL] data as shown below:
Transmitted data
Hex
Decimal
Amount of data
Header
37H
55
1byte
Identifier
45H
69
1byte
Remaining battery power
30h-34H
48-52
1byte
NUL
00H
0
1byte
• “Remaining battery power“ is indicated as following:
Hex
Decimal
Remaining battery power level
30H
48
Full(F)
31H
49
High(H)
32H
50
Middle(M)
33H
51
Low(L)
The remaining battery amount can be examined by the battery LED.
When the remaining battery power reaches Low level, the red LED of battery starts blinking as an alert signal.
This command can be executed in real-time command mode using DLE.
BIXOLON
- 99 -
SPP-R300 Command Manual
GS L
Function:
Code:
Set left margin
ASCII
Hex
Decimal
GS
1D
29
L
4C
76
nL
nL
nL
nH
nH
nH
Range:
0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255
Default:
(nL + nH x 256)=0 (nL=0, nH=0)
Description:
This command sets the left margin specified to [(nL + nH x 256) x (horizontal motion units)].
Remarks:
■
The left margin is not effective in page mode. If the left margin is enabled in page mode, the setting is available when
the printer returns to standard mode.
■ When the setting is beyond the printable area, the left margin is automatically set to the maximum value of the
printable area.
■ Since the left margin is the same as the leftmost side of the printable area, the left side of the printable area is
changed according to the left margin specified.
■ The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
Printable area
Left margin
Differences:
Rev. 1.01
Printing area width
None
BIXOLON
- 100 -
SPP-R300 Command Manual
GS T
Function:
Code:
Set print position to the beginning of print line
ASCII
Hex
Decimal
GS
1D
29
Range:
n=0, 1, 48, 49
Default:
None
Description:
■
Remarks:
■
■
Differences:
None
Rev. 1.01
T
54
84
n
n
n
This command sets the print position to the beginning of the print line.
• n specifies how data in the print buffer is processed when this command is executed.
n
Function
0, 48
Sets the print position after the data in the print buffer is deleted.
1, 49
Sets the print position after the data in the print buffer is printed.
This command is effective only in standard mode, and ignored in page mode.
When n =1,49, the printer prints the data in the print buffer and executes a line feed, based on the line feed amount
specified.
■ When n=0,48, the printer removes the print data in the print buffer.
■ After processing this command, the print position moves to the left of the print area. The printer buffer will be empty.
■ This command is ignored if the print position is already the begaining of the line.
BIXOLON
- 101 -
SPP-R300 Command Manual
GS W
Function:
Code:
Set printing area width
ASCII
Hex
Decimal
GS
1D
29
W
57
87
nL
nL
nL
nH
nH
nH
Range:
0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255
Default:
(nL + nH x 256)=576 (nL=64, nH=2)
Description:
This command sets the printing area width to [(nL + nH x 256) x (horizontal motion units)].
Remarks:
■
The printing area width is not effective in page mode. If the printing area width is enabled in page mode, the setting is
available when the printer returns to standard mode.
■ When (left margin + printing area width) exceeds the printable area, the printing area width is automatically set to
(printing area width - left margin).
■ The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
Printable area
Left margin
Differences:
Rev. 1.01
Printing area width
None
BIXOLON
- 102 -
SPP-R300 Command Manual
GS \
Function:
Code:
Set relative vertical print position in page mode
ASCII
Hex
Decimal
GS
1D
29
\
5C
92
nL
nL
nL
nH
nH
nH
Range:
0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255
Default:
None
Description:
This command moves the vertical print position to [(nL + nH x 256) x (vertical or horizontal motion units)] relative to the
current position in page mode.
Remarks:
■
■
■
■
Differences:
None
Rev. 1.01
This command is effective in page mode. When used in standard mode, it is ignored.
The setting exceeding the print area set by ESC W is ignored.
With standard mode selected, the vertical motion unit is used.
In page mode, the horizontal motion unit is used when printing start poison is defined to the upper right or lower right
of print area using ESC T, otherwise, the vertical motion unit is used.
BIXOLON
- 103 -
SPP-R300 Command Manual
GS ^
Function:
Execute macro
Code:
ASCII
Hex
Decimal
Range:
0 ≤ r ≤ 255
0 ≤ t ≤ 255
m=0, 1
Default:
None
Description:
■
This command executes a macro using parameters as following:
• r specifies the number of times to execute the macro.
• t specifies the waiting time before the macro is executed.
• m specifies macro executing mode as shown below.
m
Function
0
Executes the macro r times continuously at the interval specified by t.
The printer waits for the paper FEED button to be pressed for the time specified by t. The macro is
1
executed once when the button is pressed. This operation is repeated r times.
Remarks:
■
■
■
The macro is defined by GS:.
If the macro is not defined or r = 0, the command is ignored.
The macro function is useful to print the same data repeatedly.
Differences:
None
Rev. 1.01
GS
1D
29
^
5E
94
r
r
r
t
t
t
m
m
m
BIXOLON
- 104 -
SPP-R300 Command Manual
GS a
Function:
Enable/Disable Automatic Status Back (ASB)
Code:
ASCII
Hex
Decimal
Range:
0 ≤ n ≤ 255
Default:
n=0
GS
1D
29
a
61
97
n
n
n
Printers:
Description:
■
This enables or disables ASB (Automatic Status Back) according to n.
• ASB is enabled when n > 0.
Remarks:
■
ASB is the function that transmit the printer status such as cover open/close and Online/Offline] continuously at the
time interval specified regardless of the status change if ASB is enabled. Using this ASB function, the host can check
to see if the printer is running properly.
Once ASB has been enabled, the printer continues to transmit the current printer status at the specified interval until
ASB is disabled.
When n = 0, ASB is disabled. The printer stops transmitting the status.
With parallel and USB interface, the printer status is transmitted whenever the host computer changes to the reverse
mode regardless of the printer status change. It is recommended that the periodic time interval at which the host
changes to reverse mode is more than 500ms in order to receive the correct status.
With serial interface, ASB status is transmitted continuously at the interval of 1 sec even if the status is not changed.
The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
■
■
■
■
■
Rev. 1.01
BIXOLON
- 105 -
SPP-R300 Command Manual
■
The printer information transmitted is comprised of 4 bytes as follows:
• First byte(printer information)
Bit
Off/On
Hex
Decimal
Function
0
Off
00
0
Not used. Fixed to Off
1
Off
00
0
Not used. Fixed to Off
2
On
04
4
Not used. Fixed to On
Off
00
0
On-line
3
On
08
8
Off-line
4
Off
00
0
Not used. Fixed to Off
Off
00
0
Cover is close
5
On
20
32
Cover is open
Off
00
0
Paper is not being fed by the paper feed button
6
On
40
64
Paper is being fed by the paper feed butto
7
Off
00
0
Not used. Fixed to Off
Second byte(printer information)
Bit
Off/On
Hex
Decimal
0
Off
00
0
1
Off
00
0
2
Off
00
0
3
Off
00
0
4
Off
00
0
5
Off
00
0
6
Off
00
0
7
Off
00
0
•
Rev. 1.01
Function
Not used. Fixed to Off
Not used. Fixed to Off
Not used. Fixed to Off
Not used. Fixed to Off
Not used. Fixed to Off
Not used. Fixed to Off
Not used. Fixed to Off
Not used. Fixed to Off
BIXOLON
- 106 -
SPP-R300 Command Manual
Third byte (paper sensor information)
Bit
Off/On
Hex
Decimal
0,1
Off
00
0
Off
00
0
2,3
On
0C
12
4
Off
00
0
5
Off
00
0
6
Off
00
0
7
Off
00
0
Not used. Fixed to Off
Paper end sensor: paper present
Paper end sensor: no paper present
Not used. Fixed to Off
Not used. Fixed to Off
Not used. Fixed to Off
Not used. Fixed to Off
Fourth byte (paper sensor information)
Bit
Off/On
Hex
Decimal
0
On
01
1
1
On
02
2
2
On
04
4
3
On
08
8
4
Off
00
0
5
Off
00
0
6
Off
00
0
7
Off
00
0
Not used. Fixed to On
Not used. Fixed to On
Not used. Fixed to On
Not used. Fixed to On
Not used. Fixed to Off
Not used. Fixed to Off
Not used. Fixed to Off
Not used. Fixed to Off
•
Function
•
Rev. 1.01
Function
BIXOLON
- 107 -
SPP-R300 Command Manual
GS f
Function:
Code:
Select font for HRI characters
ASCII
Hex
Decimal
GS
1D
29
f
66
102
n
n
n
Range:
n=0, 1, 48, 49
Default:
n=0
Description:
This command selects a font for the HRI(Human Readable Interpretation) characters used when printing a bar code,
using n as follows:
n
Font
0, 48
Font A
1, 49
Font B
Remarks:
■
■
■
The setting of this command is applied to only HRI characters.
The printing position of HRI characters are specified by GS H.
The configurations of Font A and B vary depending on the printer model.
Differences:
■
Configuration of font: ForntA(12x24, Font B(9x24)
Rev. 1.01
BIXOLON
- 108 -
SPP-R300 Command Manual
GS h
Function:
Selects bar code height
Code:
ASCII
Hex
Decimal
Range:
1 ≤ n ≤ 255
Default:
n=162
Description:
This command sets the height of the bar code to n dots.
Remarks:
■
■
The unit of n depends on the printer model.
The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
Differences:
■
Unit of one dot: 0.125mm(1/203 inch)
Rev. 1.01
GS
1D
29
h
68
104
n
n
n
BIXOLON
- 109 -
SPP-R300 Command Manual
GS k
Function:
Print bar code
Code:
①
②
ASCII
Hex
Decimal
ASCII
Hex
Decimal
GS
1D
29
GS
1D
29
k
6B
107
k
6B
107
m
m
m
m
m
m
Range:
①0≤m≤6
② 65 ≤ m ≤ 73
K, m, n depend on the barcode system
Default:
None
Description:
■
Rev. 1.01
d1...dk
d1...dk
d1...dk
n
n
n
NUL
NUL
NUL
d1...dn
d1...dn
d1...dn
This command selects a bar code system and prints the bar code.
• k indicates the number of bytes of bar code data.
• n specifies the number of bytes of bar code data.
• d specifies the character code data of the bar code data to be printed.
For range ①
m
Bar Code System
Range of k
UPC-A
11 ≤ k ≤ 12
0
UPC-E
11 ≤ k ≤ 12
1
2
JAN13(EAN)
12 ≤ k ≤ 13
3
JAN8(EAN)
7≤k≤8
4
CODE39
1≤k
5
ITF
1 ≤ k (even number)
6
CODABAR
1≤k
BIXOLON
Range of d
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 90,
d=32,36,37,43,45,46,47
48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 68,
d=36,43,45,46,47,58
- 110 -
SPP-R300 Command Manual
For range ②
m
65
66
67
68
Bar Code System
UPC-A
UPC-E
JAN13(EAN)
JAN8(EAN)
Range of k
11 ≤ n ≤ 12
11 ≤ n ≤ 12
12 ≤ n ≤ 13
7≤n≤8
69
CODE39
1 ≤ n ≤ 255
70
ITF
1 ≤ n ≤ 255 (even number)
71
CODABAR
1 ≤ n ≤ 255
72
73
CODE93
CODE128
1 ≤ n ≤ 255
2 ≤ n ≤ 255
Remarks:
■
■
Differences:
None
Rev. 1.01
Range of d
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 90,
d=32,36,37,43,45,46,47
48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 68,
d=36,43,45,46,47,58
0 ≤ d ≤ 127
0 ≤ d ≤ 127
The bar code width exceeding the print area can not be specified.
Except for character size and upside-down printing mode, none of print mode such as emphasized, double-strike, etc,
affects the printing of the barcode.
■ The quiet zone of the bar code (left and right spaces of the bar code) should be considered when using this
command.
BIXOLON
- 111 -
SPP-R300 Command Manual
GS r
Function:
Code:
Transmit status
ASCII
Hex
Decimal
GS
1D
29
r
72
114
n
n
n
Range:
n=1, 2, 49, 50
Default:
None
Description:
The command transmits the status specified by n as follows:
n
Function
1, 49
Transmits paper sensor status
2, 50
Transmits drawer kick-out connector status
Remarks:
■
■
Rev. 1.01
The status is one byte.
The status to be transmitted is as follows:
• Paper sensor status (n=1, 49):
Bit
Off/On
Hex
Decimal
Off
00
0
0, 1
On
03
3
Off
00
0
2, 3
On
0C
12
4
Off
00
0
5
Off
00
0
6
Off
00
0
7
Off
00
0
Bits 2 and 3: This command can not be executed
status of bit 2 (1) and bit 3 (1) is not transmitted.
Function
Paper near-end sensor: Paper adequate
Paper near-end sensor: Paper near end
Paper end sensor: Paper present
Paper end sensor: Paper not present
Fixed
Reserved
Reserved
Fixed
when the printer is offline due to the lack of paper. Therefore, the
BIXOLON
- 112 -
SPP-R300 Command Manual
Drawer kick-out connector status (n=2, 50):
Bit
Off/On
Hex
Decimal
Off
00
0
0
On
01
1
1
Off
00
0
2
Off
00
0
3
Off
00
0
4
Off
00
0
5
Off
00
0
6
Off
00
0
7
Off
00
0
•
■
Differences:
Rev. 1.01
Function
Drawer kick-out connector pin 3 is LOW
Drawer kick-out connector pin 3 is HIGH
Reserved
Reserved
Reserved
Fixed
Reserved
Reserved
Fixed
This command can be executed in real-time mode using DLE.
None
BIXOLON
- 113 -
SPP-R300 Command Manual
GS v 0
Function:
Code:
Print raster bit image
ASCII
Hex
Decimal
GS
1D
29
v
76
118
0
30
48
m
m
m
xL xH
xL xH
xL xH
Range:
0 ≤ m ≤ 3, 48 ≤ m ≤ 51
1 ≤ (xL + xH x 256) ≤ 576 (0 ≤ xL ≤ 64, xh=2)
1 ≤ (yL + yH x 256) ≤ 1662 (0 ≤ yL ≤ 126, 0 ≤ yH ≤ 6)
0 ≤ d ≤ 255
1≤ k ≤ 119664
Default:
None
Description:
■
yL yH d1...dk
yL yH d1...dk
yL yH d1...dk
This command prints a raster bit image according to the mode defined by m.
DPI : Dots per Inch (25.4mm)
m
Mode
Vertical dot density (DPI)
Horizontal dot density (DPI)
0, 48
Normal
203
203
1, 49
Double-width
203
203/2
2, 50
Double-height
203/2
203
3, 51
Quadruple
203/2
203/2
• xL, xH specifies (xL + xH x 256) byte(s) in the horizontal direction for the bit image.
• yL, yH specifies (yL + yH x 256) dot(s) in the vertical direction for the bit image.
• d specifies the definition data of the bit image data.
Remarks:
Rev. 1.01
In standard mode, this command is effective when the printer buffer is empty and the printer is in the beginning of the
line. If the buffer is not empty, after processing m, the printer treats the following data as normal data.
■ In page mode, the bit image is stored in the print buffer, not being printed.
■ None of the print modes such as emphasized, double-strike, etc, affects the printing of the bit image.
■ The default dot density set by GS L is applied to printing of the bit image.
■
BIXOLON
- 114 -
SPP-R300 Command Manual
Differences:
m
0, 48
1, 49
2, 50
3, 51
Rev. 1.01
Mode
Normal
Double-width
Double-height
Quadruple
Vertical dot density (DPI)
203
203
203/2
203/2
BIXOLON
DPI : Dots per Inch (25.4mm)
Horizontal dot density (DPI)
203
203/2
203
203/2
- 115 -
SPP-R300 Command Manual
GS w
Function:
Code:
Set bar code width
ASCII
Hex
Decimal
Range:
2≤n≤6
Default:
n=3
Description:
■
Remarks:
■
Differences:
None
Rev. 1.01
GS
1D
29
w
77
119
n
n
n
This command sets the horizontal size of the bar code, using n as follows:
Binary-level bar code
Multi-level bar code module
n
width (mm)
Thin element width (mm)
Thick element width (mm)
2
0.250
0.250
0.625
3
0.375
0.375
1.000
4
0.500
0.500
1.250
5
0.625
0.625
1.625
6
0.750
0.750
2.000
• n specifies the bar code module width.
The setting of this command is effective for the following bar codes:
• Multi-level bar codes (UPC-A, UPC-E, JAN13, HAN8, CODE93, CODE128)
• Binary-level bar codes (CODE39, ITF, CODABAR)
■ The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
BIXOLON
- 116 -
SPP-R300 Command Manual
BS L A
Function:
Code:
Execute automatic calibration in label mode
ASCII
Hex
Decimal
BS
08
8
L
4C
76
A
41
65
Range:
None
Default:
None
Description:
This command executes auto calibration in label mode.
Remarks:
■
■
Differences:
None
Rev. 1.01
This command is effective only in the label mode.
This command feeds 3 labels or 3 black marks to read the light intensity reflected from the liner or black mark and
stores the optimal value into NV memory that is used to locate the label and black mark.
■ The printer moves the printing position to the leading edge of the label or black mark using the optimal value stored.
BIXOLON
- 117 -
SPP-R300 Command Manual
BS L L
Function:
Code:
Select label mode
ASCII
Hex
Decimal
Range:
None
Default:
None
Description:
■
Remarks:
■
■
Differences:
None
Rev. 1.01
BS
08
8
L
4C
76
L
4C
76
This commands selects label mode
• The label mode must be set for printing on the label paper and black mark paper.
This command is enabled in receipt mode.
This command can activate the label mode even if the receipt mode is predefined by the memory switch(Msw8-5).
However, since the mode specified by the memory switch(Msw8-5) is set to the default mode, the receipt mode
becomes effective after the printer reset or power cycling is executed.
■ The memory switch(Msw8-5) should be enabled to maintain the label mode after the printer reset or power cycling.
■ Once the printer has entered the label mode, it is necessary to perform the procedures as follows for the proper
operation:
• Executing the automatic calibration to figure out the location of each label or black mark paper.
• Readjusting the printing position by pressing paper Feed button or opening/closing the printer cover.
BIXOLON
- 118 -
SPP-R300 Command Manual
BS L R
Function:
Code:
Select receipt mode
ASCII
Hex
Decimal
Range:
None
Default:
None
Description:
■
Remarks:
■
■
Differences:
None
Rev. 1.01
BS
08
8
L
4C
76
R
52
82
This command selects receipt mode
• The receipt mode must be set for printing on the continuous roll paper.
This command is enabled only in label mode.
This command can activate the receipt mode even if the label mode is predefined by the memory switch(Msw8-5).
However, since the mode specified by the memory switch(Msw8-5) is set to the default mode, the label mode
becomes effective after the printer reset or power cycling is executed.
■ The memory switch(Msw8-5) should be disabled to maintain the receipt mode after the printer reset or power cycling.
BIXOLON
- 119 -
SPP-R300 Command Manual
BS M
Function
Code:
Select device font type
ASCII
Hex
Decimal
BS
08
08
M
4D
77
n
n
n
m
m
m
Range:
65 ≤ m ≤ 67 ( m = 65,66,67)
n=0
Default:
n=0
Description:
■
Font type select by m value as follows:
m
Function ( Select font type )
65
Font A (12x24)
66
Font B (9x17)
67
Font C (9x24)
Remarks:
■
The setting of this command remains effective until ESC !, ESC M ESC @, printer reset or power cycling is executed.
Rev. 1.01
BIXOLON
- 120 -
SPP-R300 Command Manual
BS M S
Function
Code:
Sentinel character set up commands
ASCII
Hex
Decimal
BS
08
08
M
4D
77
S
53
83
pL
pL
pL
pH
pH
pH
Range:
0≤n≤2
(pL+pHx256) = 2
fn=49
Default:
Depends on memory switch 8-6~7 setting value.
Description:
■
fn1
fn1
fn1
Sets sentinel characters by n value as follows:
n
Mode
0, 48
Normal
1, 49
1-byte sentinel
character
2, 50
Multi-byte
sentinel characters
n
n
n
Description
Transmits data as normal data without sentinel characters.
Adds 1-byte sentinel characters to the beginning and the end of card data and then
transmits to host.
STX: 1 Track (%), 2, 3 Track (;), EXT: 1, 2, 3 Track (?)
Adds Start characters and End characters to the beginning and the end of card data
and then transmits to host.
- When set to 1-byte sentinel character mode, 1-byte sentinel characters are
added to the beginning parts and the end parts of each track data.
-1 Track sentinel characters: STX (%), EXT (?)
-2 Track sentinel characters: STX (;), EXT (?)
-3 Track sentinel characters: STX (;), EXT (?)
- When set to Multi-byte sentinel characters mode, the header and the footer, which have been used in normal mode,
are not used any more and the specified Start characters and End characters are added to the beginning parts and
the end parts of each track data to be transmitted.
- When set to Multi-byte sentinel characters mode but Start characters and End characters are not set by fn2 and fn3 of
BS M S command respectively, the default Start and End characters are applied to card data to be transmitted to host.
Rev. 1.01
BIXOLON
- 121 -
SPP-R300 Command Manual
- When set to Multi-byte sentinel characters mode, <CR/LF> characters after End characters are automatically applied
to the card data to be transmitted to host.
Remarks:
MSR Data Transmission Format by Setting Mode
Refer to ESC M command and the function 3 memory switch #7 (8 – 6 & 7 setting) of GS ( E command.
- When set to Track 1 Read mode
Normal mode
02H 41H 31H 31H 1CH Max DATA 76 characters (1Track data) 03H 0DH 0AH
1byte sentinel character mode
25H
Max DATA 76 characters (1Track data) 3FH (ETX) 03H 0DH 0AH (End)
(STX)
Multi byte sentinel characters mode
START characters
END characters
Max DATA 76 characters (1Track data)
0DH 0AH
(Max 10 byte)
(Max 10 byte)
02H 41H 31H 31H 1CH (Header)
- When set to Track 2 Read mode
Normal mode
02H 42H 31H 31H 1CH Max DATA 37 characters (2Track data) 03H 0DH 0AH
1byte sentinel character mode
3BH
Max DATA 37 characters (2Track data) 3FH (ETX) 03H 0DH 0AH (End)
(STX)
Multi byte sentinel characters mode
START characters Max DATA 37 characters
END characters (Max 10 byte) 0DH 0AH
(Max 10 byte)
(2Track data)
02H 42H 31H 31H 1CH (Header)
Rev. 1.01
BIXOLON
- 122 -
SPP-R300 Command Manual
- When set to Track 3 Read mode
Normal mode
02H 44H 31H 31H 1CH Max DATA104 characters (3Track data) 03H 0DH 0AH
1byte sentinel character mode
02H 44H 31H 31H 1CH (Header) 3BH (STX) Max DATA 104 characters (3Track data)
3FH
03H 0DH 0AH (End)
(ETX)
Multi byte sentinel characters mode
START characters
END characters
Max DATA 104 characters (3Track data)
0DH 0AH
(Max 10 byte)
(Max 10 byte)
- When set to Track 1/2 Read mode
Normal mode
02H 43H 31H 31H 1CH
Max DATA 76 characters (1Track
Max DATA 37 Characters (2Track 03H 0DH
1CH
1CH
data)
data)
0AH
1byte sentinel character mode
02H 43H 31H 31H 1CH
Max DATA76
Max DATA37
03H 0DH
3BH
3FH
1CH
3BH
3FH
1CH
characters
Characters
0AH
(STX)
(ETX) (Separator) (STX)
(ETX)
(Header)
(1Track data)
(2Track data)
(End)
Multi byte sentinel characters mode
START characters Max DATA 76 characters
END characters (Max 10 byte) 0DH 0AH
(Max 10 byte)
(1Track data)
START characters
END characters
Max DATA 37 characters (2Track data)
0DH 0AH
(Max 10 byte)
(Max 10 byte)
Rev. 1.01
BIXOLON
- 123 -
SPP-R300 Command Manual
- When set to Track 2/3 Read mode
Normal mode
02H 45H 31H 31H 1CH 1CH Max DATA 37 characters (2Track data) 1CH
Max DATA104 Characters
03H 0DH 0AH
(3Track data)
1byte sentinel character mode
02H 45H 31H 31H 1CH
Max DATA37
Max DATA104
3BH
3FH
1CH
3BH
1CH
characters
Characters
(STX)
(ETX) (Separator) (STX)
(Header)
(2Track data)
(3Track data)
Multi byte sentinel characters mode
START characters Max DATA 37 characters
END characters (Max 10 byte) 0DH 0AH
(Max 10 byte)
(2Track data)
3FH
(ETX)
03H 0DH
0AH
(End)
START characters Max DATA 104 characters
END characters (Max 10 byte) 0DH 0AH
(Max 10 byte)
(3Track data)
- When set to Track 1/2/3 Read mode
Normal mode
Max DATA37
Max DATA104
Max DATA76 characters
1CH Characters 1CH Characters 03H 0DH 0AH
(1Track data)
(2Track data)
(3Track data)
1byte sentinel characters mode
02H
46H
Max
Max
Max
03H
31H
DATA76
DATA37
DATA104
25H
3FH
1CH
3BH
3FH
1CH
3BH
3FH 0DH
31H
characters
Characters
Characters
(STX)
(ETX) (Separator) (STX)
(ETX) (Separator) (STX)
(ETX) 0AH
1CH
(1Track
(2Track
(3Track
(End)
1CH
data)
data)
data)
(Header)
02H 46H 31H 31H 1CH 1CH
Rev. 1.01
BIXOLON
- 124 -
SPP-R300 Command Manual
Multi byte sentinel character mode
START characters Max DATA 76 characters
END characters (Max 10 byte) 0DH 0AH
(Max 10 byte)
(1Track data)
START characters Max DATA 37 characters
END characters (Max 10 byte) 0DH 0AH
(Max 10 byte)
(2Track data)
START characters Max DATA 104 characters
END characters (Max 10 byte) 0DH 0AH
(Max 10 byte)
(3Track data)
Differences:
Rev. 1.01
None
BIXOLON
- 125 -
SPP-R300 Command Manual
BS M S PL PH fn2 m d1~dk
Function
Code:
Set start sentinel characters
ASCII
Hex
Decimal
BS
08
08
M
4D
77
S
53
83
Range:
3 ≤ (pL+pHx256) ≤ 12
m = 49, 50, 51 32 ≤d ≤127, k ≤ 10
fn = 50
Default:
Track 1 : “START1 “
Track 2 : “START2 “
Track 3 : “START3 “
Description:
■
■
Remarks:
None
Rev. 1.01
pL
pL
pL
pH
pH
pH
fn2
32
50
m
m
m
d1~dk
d1~dk
d1~dk
m defines the track to set Start characters.
d indicates the characters to be set as Start characters.
■ k indicates the number of characters to be used as Start characters.
■ k is defined as (PL + PH x 256) – 2.
■ If Multi-byte sentinel characters mode is set by fn1 after setting Start
characters, the Start characters are added to the beginning parts of each.
track data after reading card data and then the card data is transmitted.
■ The specified Start characters are saved to non-volatile memory so the
setting value is not changed even though the printer is reset.
BIXOLON
- 126 -
SPP-R300 Command Manual
BS M S
Function
Code:
Set end sentinel characters
ASCII
Hex
Decimal
BS
08
08
M
4D
77
S
53
83
Range:
3 ≤ (pL+pHx256) ≤ 12
m = 49, 50, 51 32 ≤d ≤127, k ≤ 10
fn = 50
Default:
Track 1 : “END”
Track 2 : “END”
Track 3 : “END”
Description:
■
■
Remarks:
None
Rev. 1.01
PL PH fn3 m d1~dk
pL
pL
pL
pH
pH
pH
fn3
33
51
m
m
m
d1~dk
d1~dk
d1~dk
m defines the track to set an End character.
d indicates the character to be set as an End character.
■ k indicates the number of characters to be used as End characters.
■ k is defined as (PL + PH x 256) – 2.
■ If Multi-byte sentinel characters mode is set by fn1 after setting End.
characters, the End characters are added to the end parts of each track
data after reading card data and then the data is transmitted.
■ If d is set to Null 1-byte, it allows the setting of no End character.
■ The specified End characters are saved to non-volatile memory so the
setting value is not changed even though the printer is reset
BIXOLON
- 127 -
SPP-R300 Command Manual
BS M S PL PH fn4 m
Function
Code:
Transmit Start and End characters setting information
ASCII
Hex
Decimal
BS
08
08
Range:
(pL+pHx256) = 2
fn = 50
m = 49, 50, 51
Default:
None
Description:
■
■
Remarks:
None
Rev. 1.01
M
4D
77
S
53
83
pL
pL
pL
pH
pH
pH
fn4
34
52
m
m
m
m defines the track to be transmitted.
The transmission format is as follows:
Hexadecimal
Decimal
Amount of Data
Header
37H
55
1 byte
Flag
81H
129
1 byte
Track
31H~33H
49~51
1byte
Start characters
20H ~ 7FH
32~127
Max 10 bytes
Separate
1F
31
1byte
End characters
20H~7FH
32~127
Max 10 bytes
NUL
00H
0
1 byte
■ The track on the above table indicates the track information of transmission data.
■ For example, the track value of 31H indicates the information on the Start and End characters of Track 1.
■ If d is set to Null 1-byte in fn3, End characters are not transmitted.
BIXOLON
- 128 -
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement