advertisement
SRP-F310/312
Command Manual
Rev. 1.00
http://www.bixolon.com
SRP-F310/312
■ Contents
Rev. 1.00
BIXOLON - 2 -
SRP-F310/312
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.00
BIXOLON - 3 -
SRP-F310/312
2. Control Commands List in Alphanumeric Order
No. Command
1
2
3
4
5
6
7
Horizontal tab
Function
Print and line feed
Form feed (in page mode)
Print and carriage return
Cancel the print data in page mode
Transmit real-time status
Generate pulse at real-time
8
9
10
11
Print data in page mode
Set the character right space
Set print mode
Set absolute print position
12
13
14
15
16
17
18
Select/cancel user-defined character set
Define user-defined character set
Specify bit image mode
Turn underline mode on/off
Select default line spacing
Set line spacing
Select peripheral device
38
39
40
41
42
43
31
32
33
34
27
28
29
30
35
36
37
No.
Command
26
19 44
20
21
22
23
24
25
Cancel user-defined characters
Initialize printer
Set horizontal tab positions
Turn emphasized mode on/off
Turn double-strike mode on/off
Print and feed paper
Select page mode
45
46
47
48
49
50
Function
Select character font/ MSR card read
Specify an international character set
Select standard mode
Select print direction in page mode
Turn 90° clockwise rotation mode on/off
Set print area in page mode
Set relative print position
Set position alignment
Print and feed n lines
Partial cut
Partial cut
Generate pulse
Select character code table
Transmit paper sensor status
Turn upside-down print mode on/off
Print NV bit image
Define NV bit image
Select character size
Set absolute vertical print position in page mode
Execute test print
Set NV user memory area
Select graphics data
Select character color
Specify and print the symbol
Define downloaded bit image
Rev. 1.00
BIXOLON - 4 -
SRP-F310/312
52
66
67
68
69
70
71
57
58
59
60
53
54
55
56
61
62
63
64
65
72
73
74
75
No. Command
51
Function
Print downloaded bit image
Start/end macro definition
Turn white/black reverse print mode on/off
Select print position of HRI characters
Transmit printer ID
Set left margin
Select cut mode and executes a partial cut
Set print area width
Execute macro
Enable/disable Last Status Back (LSB)
Select font for HRI characters
Set bar code height
Print bar code
Transmit status
Print raster bit image
Set bar code width
Download customized font
Read customized font
Clear customized font
Transmit customized font information
Select device font type
Select cut mode and executes a partial/full cut
Define watermark image
Select Watermark image
Set Last Status Back(LSB) time
No.
Command
76
77
Function
Select BIL(bixolon Interactive Linker) function
Select reverse printing function
Rev. 1.00
BIXOLON - 5 -
2-1 Command Description Items
Function:
Code:
Command
Command function outline
Command format expressed in ASCII, hexadecimal, and decimal codes
Range: Argument value (Setting range) for the command argument value for the command
Description: Detailed command function description
Remarks: Additional information about using the command depending on the printer model
Rev. 1.00
BIXOLON
SRP-F310/312
- 6 -
SRP-F310/312
2-2 Details of Control Commands
Function :
Code :
HT
Horizontal tab
ASCII HT
Hex 09
Decimal
None
9
Range:
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 :
■ 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.
Differences: None
Rev. 1.00
BIXOLON - 7 -
SRP-F310/312
LF
Function:
Code:
Print and line feed
ASCII LF
Hex
Decimal
None
0A
10
Range:
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:
■
In page mode, the printer does not perform actual printing, but moving only the print position to the next line.
Differences: None
Rev. 1.00
BIXOLON - 8 -
SRP-F310/312
FF
Function :
Code :
Form feed (in page mode)
ASCII FF
Hex
Decimal
None
0C
12
Range:
Default: None
Description : This commands prints all data collected in the printer buffer In page mode. After completion of printing, the printer is
Remarks : returned to standard mode.if the printer receive next data then the printer buffer is evacuated.
■
The printer is returned to standard mode after completion of printing.
■ After being printed, all of the existing data in the printer buffer is not evacuated and the print position changes to the beginning of the line.
■ This command works in page mode enabled by ESC L or FS L.
■ This command is only effective in standard mode.
■
If the paper is positioned at the print starting position, this command is ignored, not performing actual paper feeding operation.
Differences: None
Rev. 1.00
BIXOLON - 9 -
SRP-F310/312
CR
Function:
Code:
Print and carriage return
ASCII CR
Hex
Decimal
None
0D
13
Range:
Default: None
Description: This command prints the data. With auto line feed enabled, it performs printing and one line feeding same as LF.
Remarks: ■
■
Auto line feed is only enabled using the memory switch.
Auto line feed is turned on by setting memory switch 5-4.
Differences: None
Rev. 1.00
BIXOLON - 10 -
CAN
Function:
Code:
Cancel the print data in page mode
ASCII CAN
Hex
Decimal
None
18
24
Range:
Default: None
Description: This command clears the receive buffer and print buffers in page mode.
Remarks: ■ This command is effective only in page mode that is set by ESC L.
Differences: None
Rev. 1.00
BIXOLON
SRP-F310/312
- 11 -
DLE EOT
Function: Transmit real-time status
Code: ASCII DLE EOT n
Hex
Decimal
1 ≤ n ≤ 4
10 04 n
16 4 n
Range:
Default: None
Description: This command enables commands to be operable in real-time.
This command transmits the printer-related status specified by n as follows: n Function
1
2
3
4
Transmit printer status
Transmit off-line status
Transmit error status
Transmit paper roll sensor status
■
Printer transmits the following status
3
4
5
Bit
0
1
2
Binary
0
1
0
1
1
0
Hex
00
02
00
04
10
00
Decimal
0
2
0
4
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
16
0
Not used. Fixed to On
Not used. Fixed to Off
Rev. 1.00
BIXOLON
SRP-F310/312 n=1: Printer status
- 12 -
SRP-F310/312
Bit
6
7
Bit
Binary
0
0
Off/On
Hex
00
00
Hex
Decimal
0
0
Decimal
Status
Not used. Fixed to Off
Not used. Fixed to Off
n=2: Off-line status
Status
Rev. 1.00
5
6
2
3
Bit
0
1
2
3
4
5
6
7
Off
On
Off
On
Off
On
On
Binary
0
1
0
0
1
0
0
0
00
20
40
00
04
00
08
Hex
00
02
00
00
10
00
00
00
0
32
64
0
4
0
8
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
No paper-end stop
Printing is being stopped
Error has occurred n=3: Error status
Decimal
0
2
0
0
Not used. Fixed to Off
Not used. Fixed to On
Not used. Fixed to Off
No autocutter error
16
0
0
0
Not used. Fixed to On
Not used. Fixed to Off
Not used. Fixed to Off
Not used. Fixed to Off
Status
BIXOLON - 13 -
SRP-F310/312 n=4: paper sensor status
Bit
0
1
2,3
4
5,6
Binary
0
1
00
11
1
00
11
Hex
00
02
00
0C
10
00
60
Decimal
0
2
0
12
16
0
96
Not used. Fixed to Off
Status
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
7 0 00 0 Not used. Fixed to Off
Remarks: ■ the status is transmitted to the host upon being requested that can check the printer operational condition with it and takes appropriate measures accordingly.
■ The real time command is stored into the receive buffer and executed with higher priority than other commands.
Differences: None
Rev. 1.00
BIXOLON - 14 -
SRP-F310/312
DLE DC4
Function:
Code:
Generate pulse at real-time
ASCII DLE DC4 n m t
Hex 10
Decimal 16 n = 1, m=0,1, 1 ≤ t ≤ 8
14
20 n n m m t t
Range:
Default: None
Description:
■
Output the pulse specified by t to connector pin m as following: m
0
1
Connector pin
Drawer kick-out connector pin 2
Drawer kick-out connector pin 5
Remarks:
■
This command generates the drive pulse to connector pin m with pulse width defined by t as following:
• Drawer kick-out connector pin 2 is selected with m=0 while pin 5 chosen for m=1.
• Pulse ON time is [t x100 ms] and OFF time [t x100 ms].
■ Upon receiving this command, the printer outputs the drive pulse to the specified connector pin.
■ The real time command is stored into the receive buffer and executed with higher priority than other commands.
Differences: None
Rev. 1.00
BIXOLON - 15 -
ESC FF
Function :
Code :
Print data in page mode
ASCII ESC FF
Hex
Decimal
None
1B
27
0C
12
Range:
Default: None
Description : This command prints the data in the print buffer collectively in page mode.
Remarks : ■
■
This command is effective only in page mode that is selectd by ESC L.
After printing, the data in the print buffer and setting values are not cleared.
■
The printer can print the data in the print buffer repeatedly using this command.
■ The printer returns to standard mode by ESC S or ESC @.
Differences: None
Rev. 1.00
BIXOLON
SRP-F310/312
- 16 -
ESC SP
Function:
Code:
Set the character right space
ASCII ESC SP n
Hex
Decimal
0 ≤ n ≤ 255
1B
27
20
32 n n
Range:
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:
■
■
SRP-F310:
0.141mm(1/180 inch)
SRP-F312:
0.125mm(1/203 inch)
Rev. 1.00
BIXOLON
SRP-F310/312
- 17 -
SRP-F310/312
ESC !
Function: Set
Code: ASCII ESC
Hex
Decimal
0 ≤ n ≤ 255
1B
27
21
33 n n
Range:
Default: n = 0
Description: This command selects print mode(s) with bits having following meanings.
Bit
0
Off/On
Off
On
!
Hex
00
01 n
Decimal
0
1
Function
Character font A selected
Character font B selected
3
4
5
Off
On
Off
On
Off
On
Off
00
08
00
10
00
20
00
0
8
0
16
0
32
0
Emphasized mode not selected
Emphasized mode selected
Double-height mode not selected
Double-height mode selected
Double-width mode not selected
Double-width mode selected
Underline mode not selected 7
Remarks: ■
■
■
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.
Differences: None
Rev. 1.00
BIXOLON - 18 -
SRP-F310/312
ESC $
Function:
Code:
Set absolute print position
ASCII ESC $ nL nH
Range:
Default:
Hex
Decimal
1B
27
24
36 nL nL nH nH
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nH ≤ 255, 0 ≤ nL ≤ 255)
None
Description: This command specifies the next print starting position in reference to the left edge of the print area. The printing start
Remarks: position is calculated using (nL + nH x 256) x (vertical or horizontal motion units).
■
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.
Differences: Horizontal motion unit:
■
SRP-F310: 0.141mm(1/180 inch)
■ SRP-F312: 0.125mm(1/203 inch)
Rev. 1.00
BIXOLON - 19 -
SRP-F310/312
ESC % user-defined character set
Code: ASCII ESC % n
Hex
Decimal
0 ≤ n ≤ 255
1B
27
25
37 n n
Range:
Default: n = 0
Description:
■
This command selects/deselects user-defined character set that is downloaded by user. To make it valid, the least significant bit should be defined like following.
•
When n=0, the user-defined character set is deselected.
• When n=1, the user-defined character set is selected.
Remarks:
■ The resident character set is enabled and used right after canceling the user defined character set.
Differences: None
Rev. 1.00
BIXOLON - 20 -
SRP-F310/312
ESC &
Function:
Code:
Define user-defined character set
ASCII ESC &
Range:
Hex 1B
Decimal y = 3
27
32 ≤ c1 ≤ c2 ≤ 126
0 ≤ x ≤ 12 (Font A)
0 ≤ x ≤ 9 (Font B)
26
38 ⅹ ⅹ ⅹ
Default:
0 ≤ d ≤ 255 k = c2 – c1 + 1
None
Description: ■ This command defines user-defined characters for character codes in a designated range from the start character code, c1 to the end character code, c2.
• y denotes the number of bytes in the vertical direction, x the number of dots in the horizontal direction, and d the dot data for the user-defined characters.
Remarks:
■
■
■
Alphanumeric characters (20H (decimal 32) to 7EH (decimal 126)) are definable.
Once user defined characters are defined, they remain available until they are redefined; ESC ? or ESC @ is executed; the printer is reset.
The following shows the relationship between the definition data and printing result with downloaded character consisting of 9x7 dots.
Rev. 1.00
BIXOLON - 21 -
d1 d3 d2
Differences: None d4 d5 d6 d7 d9 d11 d13 d8 d10 d12 d14
MSB
LSB
MSB
LSB
Rev. 1.00
BIXOLON
SRP-F310/312
- 22 -
SRP-F310/312
ESC *
Function: Specify bit image mode
Code: ASCII ESC * m nL nH d1...dk
Range:
Hex 1B
Decimal 27 m = 0, 1, 32, 33
0 ≤ nL ≤ 255
0 ≤ nH ≤ 3
0 ≤ d ≤ 255
2A
42 m m nL nL nH nH d1...dk d1...dk
Default: k = nL + nH × 256 [in case of m = 0, 1] k = (nL + nH × 256) × 3 [in case of m = 32, 33]
None
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.
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:
■ SRP-F310: m Mode
Number of dots in vertical direction
Vertical dot density (DPI)
Horizontal dot density (DPI)
DPI : Dots per Inch (25.4mm)
Number of bytes (k)
0
1
32
33
8-dot single-density
8-dot double-density
24-dot single-density
24-dot double-density
8
8
24
24
60
60
180
180
90
180
90
180 nL + nH x 256 nL + nH x 256
(nL + nH x 256) x 3
(nL + nH x 256) x 3
- 23 - Rev. 1.00
BIXOLON
SRP-F310/312
■
SRP-F312: m
0
1
32
33
Mode
8-dot single-density
8-dot double-density
24-dot single-density
24-dot double-density
Number of dots in vertical direction
8
8
24
24
Vertical dot density (DPI)
203/3
203/3
203
203
Horizontal dot density (DPI)
203/2
203
203/2
203
DPI : Dots per Inch (25.4mm)
Number of bytes (k) nL + nH x 256 nL + nH x 256
(nL + nH x 256) x 3
(nL + nH x 256) x 3
Rev. 1.00
BIXOLON - 24 -
ESC –
Function:
Code:
Turn underline mode on/off
ASCII ESC - n
Hex 1B
Decimal 27
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
2D
45 n n
Range:
Default: n = 0
Description:
■
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
0,48 Turns off underline mode
Function
1,49 Turns on underline mode, set at 1-dot thick
2,50 Turns on underline mode, set at 2-dot thick
Remarks:
■ The spaces generated by horizontal tab are not underlined.
■
Using bit 7 of ESC !, the underline mode can be activated/deactivated as well.
Differences: None
Rev. 1.00
BIXOLON
SRP-F310/312
- 25 -
SRP-F310/312
ESC 2
Function:
Code:
Select default line spacing
ASCII ESC 2
Hex
Decimal
None
1B
27
32
50
Range:
Default: None
Description: This command sets the default line spacing The default line spacing is approximately 3.75 mm, which is equivalent to
Remarks:
30 dots.
■
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.
Differences: Default line spacing:
■
SRP-F310: 4.23 mm (30 dots)
■ SRP-F312: 3.75 mm(30 dots)
Rev. 1.00
BIXOLON - 26 -
SRP-F310/312
ESC 3
Function:
Code:
Set line spacing
ASCII ESC 3 n
Hex
Decimal
0 ≤ n ≤ 255
1B
27
33
51 n n
Range:
Default: Corresponding to the default line spacing defined by ESC 2
Description:
■
This command sets the line spacing using a following rule.
Remarks:
• 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.
Differences: Vertical or horizontal motion unit and maximum line spacing settable:
Model Vertical unit Horizontal unit Max line spacing
SRP-F310 0.0705mm (1/360 inch) 0.141mm (1/180 inch)
SRP-F312 0.0625mm inches) 0.125mm (1/203 inches)
17.98mm
15.937mm
Rev. 1.00
BIXOLON - 27 -
SRP-F310/312
ESC =
Function:
Code:
Select peripheral device
ASCII ESC = n
Hex
Decimal
1 ≤ n ≤ 3
1B
27
3D
61 n n
Range:
Default: None
Description: This command selects the device to which the host computer communicates according to n as follows: n
1
2
3
Function
Enables the printer
Disables the printer
Enables the printer
Remarks: ■
■
■
The printer discards all of the received data commands with the exception of ESC = and real-time commands while being disabled.
The normal operation will be resumed by ESC @, power cycling or printer reset.
If LSB is activated when the printer is disabled by this command, the status is transmitted to the host at a preset interval.
Differences: None
Rev. 1.00
BIXOLON - 28 -
ESC ?
Function: Cancel
Code: ASCII ESC ? n
Hex
Decimal
32 ≤ n ≤ 126
1B
27
3F
63 n n
Range:
Default: None
Description: This command removes user-defined character specified by character code n.
Remarks: ■
■
In place of the deleted user-defined character, the cooresponding resident character is printed.
The user-defined characters for each font can be deleted independently.
Differences: None
Rev. 1.00
BIXOLON
SRP-F310/312
- 29 -
SRP-F310/312
ESC @
Code:
■
■
■
ASCII ESC @
Hex
Decimal 27
None
None
1B 40
64
Range:
Default:
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: None
Rev. 1.00
BIXOLON - 30 -
SRP-F310/312
ESC D
Function:
Code:
Set horizontal tab position
ASCII ESC D n1...nk
NUL
Hex
Decimal
1B
27
44 n1...nk
00
68
1 ≤ n ≤ 255 , 0 ≤ k ≤ 32 n1...nk
0
Range:
Default: n = 8, 16, 24, 32, 40,....., 232, 240, 248
Description:
■
This command sets the horizontal tab position.
Remarks:
• 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.
Differences: None
Rev. 1.00
BIXOLON - 31 -
SRP-F310/312
ESC E
Function:
Code:
Turn emphasized mode on / off
ASCII ESC E n
Hex
Decimal
0 ≤ n ≤ 255
1B
27
45
69 n n
Range:
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.00
BIXOLON - 32 -
SRP-F310/312
ESC G
Function:
Code:
Turn double-strike mode on/off
ASCII ESC G n
Hex
Decimal
0 ≤ n ≤ 255
1B
27
47
71 n n
Range:
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.00
BIXOLON - 33 -
SRP-F310/312
ESC J
Function:
Code:
Print and feed paper
ASCII ESC J n
Hex
Decimal
0 ≤ n ≤ 255
1B
27
4A
74 n n
Range:
Default: None
Description: This command prints the data in the print buffer and feeds the paper [n X vertical motion unit].
Remarks: ■
■
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.
Differences: Vertical motion unit and maximum feed amount:
Model Vertical unit Max feed amount
17.98mm
15.937mm
Rev. 1.00
BIXOLON - 34 -
SRP-F310/312
ESC L
Function:
Code:
Select page mode
ASCII ESC L
Hex
Decimal
None
1B
27
4C
76
Range:
Default: None
Description: This command switches from standard mode to page mode.
Remarks: ■ 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, and ESC 3
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 V, ESC a, ESC {, GS L, and GS W
The printer resumes standard mode by the use of ESC S, FF, and ESC@.
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.
Differences: None
Rev. 1.00
BIXOLON - 35 -
SRP-F310/312
ESC M
Function:
Code:
Select character font
ASCII ESC M n
Range:
Default:
Hex
Decimal n = 0, 1, 48, 49 n = 0
1B
27
4D
77 n n
Description: This command selects only-byte character fonts using n as following. n
0, 48
Function
Character font A selected
1, 49 Character font B selected
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: None
Rev. 1.00
BIXOLON - 36 -
SRP-F310/312
ESC R
Function:
Code:
Specify international character set
ASCII ESC R n
Hex
Decimal
0 ≤ n ≤ 13
1B
27
52
82 n n
Range:
Default: n = 0
Description: This command specifies international characters according to n values. n Character set n Character set
1 France 9 Norway
5 Sweden 13 Korea
6 Italy
Remarks:
■
The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Differences: None
Rev. 1.00
BIXOLON - 37 -
SRP-F310/312
ESC S
Function:
Code:
Select standard mode
ASCII ESC S
Hex
Decimal
None
1B
27
53
83
Range:
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, and ESC 3
■ In standard mode, CAN, ESC FF and GS $ are ignored.
Differences: None
Rev. 1.00
BIXOLON - 38 -
SRP-F310/312
ESC T
Function:
Code:
Select print direction in page mode
ASCII ESC T n
Hex 1B
Decimal 27
0 ≤ n ≤ 3, 48 ≤ n ≤ 51 n = 0
54
84 n n
Range:
Default:
Description: This command selects the print direction and starting position in page mode. n Print Direction Starting Position
0,48
1,49
2,50
Left right
Bottom to top
Right left
Upper left
Lower left
Lower right
3,51 Top bottom Upper right
Remarks: ■
■
■
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 $ 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 $ the horizontal motion unit.
The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Differences: None
Rev. 1.00
BIXOLON - 39 -
SRP-F310/312
ESC V
Function:
Code:
Turn 90°clockwise rotation mode on/off
ASCII ESC V n
Hex 1B
Decimal 27
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
56
86 n n
Range:
Default: n = 0
Description:
■
This command turns 90° clockwise rotation mode on/off in standard mode according to the value of n as following
•
•
When the value of n is equal to 0 or 48, 90°clockwise rotation mode is turned off.
When the value of n is equal to 1, 2, 48, or 50, 90°clockwise rotation mode is turned on.
Remarks: ■
■
■
■
In underline mode, the underline printing for 90° clockwise rotated characters does not work, and the relationship between vertical and horizontal directions is reversed.
The 90° clockwise rotation mode is not effective in page mode.
If set in page mode, the 90° clockwise rotation mode has effect after the printer returns to standard mode.
The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Differences: None
Rev. 1.00
BIXOLON - 40 -
ESC W
Function:
Code:
Range:
Default:
Set print area in page mode
ASCII ESC W xL xH yL yH dxL dxH dyL dyH
Hex 1B 57 xL xH yL yH dxL dxH dyL dyH
Decimal 27 87 xL xH yL yH
0 ≤ (xL + xH x 256) ≤ 65535 (0 ≤ xL ≤ 255, 0 ≤ xH ≤ 255) dxL dxH dyL dyH
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)
■ SRP-F310:
•
When a paper width of 80mm{3.15"} is selected:
(xL + xH x 256) = 0 (xL=0, xH=0)
(yL + yH x 256) = 0 (yL=0, yH=0)
(dxL + dxH x 256) = 512 (dxL=0, dxH=2)
(dyL + dyH x 256) = 1662 (dyL=126, dyH=6)
■
SRP-F312:
• When a paper width of 80mm{3.15"} 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) = 1662 (dyL=126, dyH=6)
Description:
■
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)]
Rev. 1.00
BIXOLON
SRP-F310/312
- 41 -
SRP-F310/312
Remarks: ■
■
■
■
■
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.
The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Differences: The maximum printable area(Max horizontal printable area, Max vertical printable area):
Model Max horizontal printable area Max vertical printable area
SRP-F310 72.2mm(512dots) 234.3mm(1662dots)
SRP-F312 72mm(576dots) 207.75mm(1662dots)
Rev. 1.00
BIXOLON - 42 -
SRP-F310/312
ESC \
Function:
Code:
Set relative print position
ASCII ESC \ nL nH
Range:
Default:
Remarks:
Hex
Decimal
1B
27
5C
92 nL nL nH nH
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nL 255, 0 ≤ nH ≤ 255)
None
Description:
■ 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.
Differences: None
Rev. 1.00
BIXOLON - 43 -
SRP-F310/312
ESC a
Function:
Code:
Set position alignment
ASCII ESC a n
Range:
Default:
Hex
Decimal
0 ≤ n ≤2, 48 ≤ n ≤50 n = 0
1B
27
61
97 n n
Description: This command specifies position alignment for all data in one line in standard mode, using n as follows: n
0, 48
Alignment
Left alignment
Remarks:
1, 49
2, 50
Center alignment
Right alignment
■
■
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.
Differences: None
Rev. 1.00
BIXOLON - 44 -
SRP-F310/312
ESC d
Function:
Code:
Print and feed n lines
ASCII ESC d n
Hex
Decimal
0 ≤ n ≤ 255
1B
27
64
100 n n
Range:
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: None
Rev. 1.00
BIXOLON - 45 -
SRP-F310/312
ESC i cut
Code: ASCII ESC i
Hex
Decimal
None
1B
27
69
105
Range:
Default: None
Description: This command executes a partial cut of the paper with one point left uncut.
Remarks: ■ The same partial cut as this command is executed using ESC m and GS V.
Differences: ■ This command is effective for the printer equipped with an autocutter.
■
■
Autocutter operation should be enabled by setting the autocutter control DIP switch.
If the autocutter control DIP switch of the printer not equipped with autocutter is set, the printer does not operate, displaying the error signal by LED.
Rev. 1.00
BIXOLON - 46 -
SRP-F310/312
ESC m cut
Code: ASCII ESC m
Hex
Decimal
None
1B
27
6D
109
Range:
Default: None
Description: This command executes a partial cut of the paper with one point left uncut.
Remarks: ■ The same partial cut as this command is executed using ESC i and GS V.
Differences: ■ This command is effective for the printer equipped with an autocutter.
■
■
Autocutter operation should be enabled by setting the autocutter control DIP switch.
If the autocutter control DIP switch of the printer not equipped with autocutter is set, the printer does not operate, displaying the error signal by LED.
Rev. 1.00
BIXOLON - 47 -
ESC p pulse
Code: ASCII ESC p m t1 t2
Range:
Hex 1B 70
Decimal 27 m = 0, 1, 48, 49
112
0 ≤ t1 ≤ 255, 0 ≤ t2 ≤ 255 m m t1 t1 t2 t2
Default: None
Description: This command outputs the signals specified with t1 and t2 to the connector pins defined by m. m Connector pin
0, 48
1, 49
Drawer kick-out connector pin 2
Drawer kick-out connector pin 5
Remarks:
■
The ON time is [t1 x 2ms], and the OFF time is as [t2 x 2ms].
•
Differences: None
If t2 is smaller than t1, OFF time is set to [t1 x 2ms].
Rev. 1.00
BIXOLON
SRP-F310/312
- 48 -
ESC t
Function:
Code:
Select character code table
ASCII ESC t n
Range:
Default:
Hex
Decimal
1B
27
74
116 n n
0 ≤ n ≤ 5, 16 ≤ n ≤ 19, 21 ≤ n ≤ 31, 33 ≤ n ≤ 41, n=255
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.00
BIXOLON
SRP-F310/312
- 49 -
SRP-F310/312 n Code page
26 Page 26 1257 (Baltic)
27 Page 27 Farsi
28 Page 28 1251 (Cyrillic)
29 Page 29 737 (Greek)
30 Page 30 775 (Baltic)
31 Page 31 Thai14
33 Page 33 1255 (Hebrew New code)
34 Page 34 Thai 11
35 Page 35 Thai 18
36 Page 36 855 (Cyrillic)
37 Page 37 857 (Turkish)
38 Page 38 928 (Greek)
39 Page 39 Thai 16
40 Page 40 1256 (Arabic)
41
42
47
Page 41 1258 (Vietnam)
Page 42 Khmer (Cambodia)
Page 47 1250 (Czech)
255 User Code Page (Space)
Remarks :
■
The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Differences: None
Rev. 1.00
BIXOLON - 50 -
SRP-F310/312
ESC v
Function :
Code :
Transmit paper sensor status
ASCII ESC v
Hex
Decimal
None
1B
27
76
118
Range:
Default: None
Description :
■
This command transmits a byte of data specifying the paper sensor status.
■ The status of paper near end and paper end sensors is sent to the host as follows:
• When paper near end is detected, 0x03 is transmitted.
•
When paper end is detected, 0xC is transmitted.
Remarks :
■
■
The paper sensor status can be transmitted using GS r.
The near end senor is optional while paper end sensor required.
■ If the printer is not equipped with a near end sensor, the paper near end sensor is considered as normal condition.
Differences: None
Rev. 1.00
BIXOLON - 51 -
SRP-F310/312
ESC {
Function :
Code :
Turns upside-down printing mode on/off
ASCII ESC { n
Hex
Decimal
0 ≤ n ≤ 255
1B
27
7B
123 n n
Range:
Default: n = 0
Description : This command selects/deselects upside-down printing mode according to the least significant bit as follows.
LSB Upside-down mode
Remarks :
■ 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 Upside- down Mode
Differences: None
Rev. 1.00
BIXOLON - 52 -
SRP-F310/312
FS p
Function :
Code :
Print NV bit image
ASCII FS p n m
Range:
Hex
Decimal
1C
28
70
112
1 ≤ n ≤ 255
0 ≤ m ≤ 3, 48 ≤ m ≤ 51
None n n m m
Default:
Description : This command prints NV bit image n using the mode specified by m as follows: m Mode
Remarks :
0, 48
1, 49
2, 50
3, 51
Normal
Double-width
Double-height
Quadruple
■
■
■
GS ( L and GS ( 8 can be used for printing NV bit image.
■ The NV bit image is defined by FS q.
■ n is assigned to each NV bit image to be stored in download order by FS q.
■
■
This command has no effect with NV bit image not defined in advance.
In page mode, the NV bit image is saved without being printed.
The printer does not print the NV bit image that is beyond one line of print area.
When using unidirectional print mode, there will be no vertical misali gnment between the top and bottom parts of the printed pattern.
Rev. 1.00
BIXOLON - 53 -
Differences: ■ SRP-F310:
DPI : Dots per Inch (25.4mm)
Mode Vertical Dot Density (DPI) Horizontal Dot Density (DPI)
Normal 180 180
Double-width 180
Double-height 90
Quadruple 90
90
180
90
■ SRP-F312:
DPI : Dots per Inch (25.4mm)
Mode Vertical Dot Density (DPI) Horizontal Dot Density (DPI)
Normal 203 203
Double-width 203
Double-height 203/2
Quadruple 203/2
203/2
203
203/2
SRP-F310/312
Rev. 1.00
BIXOLON - 54 -
SRP-F310/312
Function:
Code:
Remarks: ■
FS q
Define NV bit image
ASCII FS q n [xL xH yL d1...dk]1... [xL xH yL d1...dk]n
Range:
Hex
Decimal
1C
28
71
113 n n
[xL xH yL d1...dk]1... [xL xH yL d1...dk]n
[xL xH yL d1...dk]1... [xL xH yL d1...dk]n
1 ≤ n ≤ 255
1 ≤ (xL + xH ×256) ≤ 1023 (0 ≤ xL ≤ 255, 0 ≤ xH ≤ 3)
1 ≤ (yL + yH ×256) ≤ 288 (0 ≤ yL ≤ 255, yH=0,1)
0 ≤ d ≤ 255 k = (xL + xH × 256) × (yL + yH × 256) × 8
Default: None
Description: ■ This command defines the NV bit image in the NV memory.
•
• n denotes the number of the NV being defined.
(xL, xH) and (yL, yH) set the number of dots in the horizontal and vertical directions to [(xL + xH × 256) x 8] and
[(yL + yH × 256) x 8] respectively for the NV bit image.
■
■
■
GS ( L and GS ( 8 can be used for defining NV bit image.
When this command is entered, all NV bit images previously defined are removed from the NV memory.
After completion of this command, the printer executes a software reset to restore the settings as when turned on.
The NV bit image is printed by FS p.
Rev. 1.00
BIXOLON - 55 -
SRP-F310/312
■ During the execution of this command, paper feed button, LSB and real time functions will not operate.
• Bit image data and print result are as follows: d1 dY+1 …
.
.
.
MSB
LSB
MSB d2 dY+2 … dk-2
LSB
.
.
.
.
.
.
MSB
… dk-1
LSB
2 … dk
MSB
LSB
■ NV memory is devided into 2 areas for mono and 2-color graphics. The capacity of each NV memory area is 256KB.
Differences: None
Rev. 1.00
BIXOLON - 56 -
SRP-F310/312
5
6
7
1
2
3
4
GS !
Function:
Code:
Select character size
ASCII GS !
Bit
0 n
Range:
Hex
Decimal n = 0
1D
29
21
33 n n
0 ≤ n ≤ 255
(1 ≤ Vertical enlargement ≤ 8, 1 ≤ Horizontal enlargement ≤ 8)
Default:
Description: ■ This command selects the character height and width using bits 0 to 3, and bits 4 to 7 respectively as follows:
Function Setting
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]
Rev. 1.00
BIXOLON - 57 -
SRP-F310/312
• Table 1 [Enlarged in horizontal direction]
Hex Decimal Enlargement
00 0 1 time (standard)
•
Table 2 [Enlarged in vertical direction]
Hex
00
Decimal
0
Enlargement
1 time (standard)
Remarks: ■
■
■
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.
Differences: None
Rev. 1.00
BIXOLON - 58 -
SRP-F310/312
Function:
Code:
GS $
Set absolute vertical print position in page mode
ASCII GS $ nL nH
Hex
Decimal
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255)
None
1D
29
24
36 nL nL nH nH
Range:
Default:
Description: This command sets the absolute vertical print starting position to [(nL + nH × 256) × (vertical or horizontal motion unit)].
Remarks:
■
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.
Differences: None
Rev. 1.00
BIXOLON - 59 -
SRP-F310/312
GS ( A
Function:
Code:
Execute test print
ASCII
Hex
GS
1D
(
28
A
41 pL pL pH pH n n m m
Range:
Decimal 29 40 65
(pL + pH x 256) = 2 (pL=2, pH=0) pL pH n m
Default:
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
1 ≤ m ≤ 2, 49 ≤ m ≤ 50
None
Description: ■ This command prints a specified pattern for testing on a roll paper.
•
Roll paper is selected with n specified as follows: n
0, 48
1, 49
2, 50
•
Paper type
Roll paper
Different kinds of test patterns are selected according to m as follows: m Test pattern
1, 49 Hexadecimal dump mode
2, 50 Self-test printing(configuration+default codepage)
3, 51 Not operated
Remarks:
■
■
■
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 LSB operations are not executed during the printing of printer configuration (m=2, 50).
Differences: None
Rev. 1.00
BIXOLON - 60 -
SRP-F310/312
GS ( E
Function:
Code:
Set NV user memory area
ASCII
Hex
GS
1D
(
28
E
45 pL pL pH pH fn fn
[parameter]
[parameter]
Decimal
None
None
29 40 69 pL pH fn [parameter]
Range:
Default:
Description: This command stores the customized values to the NV user memory area and uses them for the printer operation. The table below explains the functions available in this command. Executes commands related to the user setting mode by specifying the function code fn. fn
1
2
Format
GS ( E pL pH fn d1 d2
GS ( E pL pH fn d1 d2 d3
No.
1
2
Function
Start the user setting mode
End the user setting mode (Performs a soft reset)
Remarks:
3
GS ( E pL pH fn [a1 b18...b11]...
[ak bk8...bk1]
3 Set value(s) for the memory switch
4 GS ( E pL pH fn a 4 Transmit the settings of the memory switch to the host
■
pL, pH is used to set the number of bytes following pH to (pL + pH x 256).
■ The change in the items of the NV user memory is available only after entering the user setting mode.
■ After completing the user setting mode (Function 2), the printer performs software reset to restore the initial settings in effect at power on. Receive and print buffers are cleared as well.
■ Since frequent write operation by this command may deteriorate the performance of the NV memory, it is recommended to write to NV memory when the significant change in the setting is required.
■ While processing this command, the printer remains busy. Therefore the data transmission by the host is not available. The real time commands and LSB operations are not processed.
Differences: None
Rev. 1.00
BIXOLON - 61 -
SRP-F310/312
<Function 1> GS ( E pL pH fn d1 d2 (fn=1)
Code: ASCII GS ( E pL pH fn d1 d2
Hex 1D 28 45 pL pH fn d1 d2
Range:
Decimal 29 40 69 pL pH fn d1 d2
(pL + pH x 256) = 1 (pL=1, pH=0) fn=1 d1=73, d2=78
Default: None
Description: This command starts the user setting mode, enabling the printer to notify that the mode has changed as follows:
[Mode change feedback]
Hexadecimal
Header 37H
Decimal
55
Number of Data
Remarks:
Flag 20H
NUL 00H
32
0
■ This command is effective only in standard mode, not in page mode.
■ Upon entering the user mode setting mode by this command, the printer transmits “mode change feedback” to the host.
■ The user setting mode should be enabled prior to processing <Function 2> through 12. Otherwise, those functions are ignored.
■ After confirming “mode change feedback”, it is recommended to send the command to reconfigure the NV user memory.
Differences: None
Rev. 1.00
BIXOLON - 62 -
<Function 2> GS ( E pL pH fn d1 d2 d3 (fn=2)
Code: ASCII GS ( E pL pH fn d1 d2 d3
Hex 1D 28 45 pL pH fn d1 d2 d3
Range:
Decimal 29 40 69 pL pH fn d1 d2 d3
(pL + pH x 256) = 1 (pL=1, pH=0)
Default: fn=2 d1=79, d2=85, d3=84
None
Description: This command terminates the user setting mode and performs a software reset.
Remarks: ■ This command activates setting items set in the user setting mode.
■ All the setting items will be effective only after performing this command.
■
After executing a software reset, the printer resumes the setting in effect at power on.
Differences: None
SRP-F310/312
Rev. 1.00
BIXOLON - 63 -
SRP-F310/312
<Function 3> GS ( E pL pH fn [a1 b18...b11]...[ak bk8...bk1] (fn=3)
Code: ASCII GS
Hex 1D
(
28
E
45 pL pL fn fn
[a1 b18...b11]... [ak bk8...bk1]
[a1 b18...b11]... [ak bk8...bk1]
Range:
Decimal 29 40
10≤ (pL + pH x 256) ≤ 65535 fn=3
69 pL fn [a1 b18...b11]... [ak bk8...bk1]
Default: a=1,2,3,4,5,6,11,12 b=48, 49, 50
All switches are set to Off(b = 48)
Description: ■ This command changes all the Memory Switch(Msw) 1 through 8 to the value specified by b simultaneously as follows:
• When b=48, 49, the corresponding bit is set to Off and On respectively.
• When b=50, there is no change in the memory switch.
■ The setting items of the memory switch 1 are as follows:
Msw
3
48
48
48
48
Value
2
48
48
1
48 Print speed 4
49 Print speed 3
48 Print speed 2
49 Print speed 1
Function Remark
270 mm/s
250 mm/s
1-1~3
49
49
230 mm/s
200 mm/s
•
The printer supports 4 different printing speeds, 270,250,230 and 200mm/sec.
Please be sure that the printing quality at higher speed may be worse than at the lower.
Rev. 1.00
BIXOLON - 64 -
■ Density level selection using the memory switch 1-6 through 1-7.
Msw
7
49
Value
6
48 Density Level 3
Function
1-6~7 48
48
49
48
Density Level 2
Density Level 1
•
The print density adjusts the darkness of characters to be printed.
Dark
Light
Remark
■ The setting items of the memory switch 2 are as follows:
Msw
2-1
Value
48
49
Function
Specification for Destination: Single byte country
Specification for Destination: Double byte country
■
Code page selection using the memory switch 2-3 through 2-8.
Msw2-8 Msw2-7 Msw2-6 Msw2-5 Msw2-4 Msw2-3 Character Table
SRP-F310/312
Rev. 1.00
BIXOLON - 65 -
Msw2-8 Msw2-7 Msw2-6 Msw2-5 Msw2-4 Msw2-3 Character Table
49 48 49 48 49 48 Hebrew old code
SRP-F310/312
■
The setting items of the memory switch 3 are as follows:
Specify the emulations to be enabled using the memory switch 3-1 through 3-3
Msw3-3 Msw3-2 Msw3-1 Emulation seletion Remark
48
48
48
48
48
49
Emulation 1 ( default )
Emulation 2
ESC/POS
48
48
49
49
49
48
48 Emulation 3
49 Emulation 4
48 Emulation 5
Rev. 1.00
BIXOLON - 66 -
■ The setting items of the memory switch 4 are as follows:
Msw Value Function
4-1
4-2
49
48
49
ASCII font selection: Customized font
Extended font selection: Resident font
Extended font selection: Customized font
■
Single byte font selection using the memory switch 4-3 through 4-4.
Msw
4
Value
3
Single byte font selection Remark
4-3~4
12x24
9x17
9x24
■
Double byte font selection using the memory switch 4-5 through 4-7.
Msw
7
Value
6 5
Double byte font selection Remark
4-5~7
Rev. 1.00
BIXOLON
SRP-F310/312
- 67 -
■ The setting items of the memory switch 5 are as follows:
Msw Value
5-1
48
49
Auto cutter function: Partial cut
Auto cutter function: Full cut
Function
5-3
48
49
2 Color printing disable
2 Color printing enable
5-4
48
49
48
Auto line feed disable
Auto line feed enable
Near end sensor enable
5-5
49 Near end sensor disable
5-6~8 48 Reserved
■ The setting items of the memory switch 6 are as follows:
Msw
6-1
Value
48
49
Function
Auto generate pulse to internal buzzer not selected
Auto generate pulse to internal buzzer selected
6-2
6-3
48
49
48
49
Internal buzzer control: enable
Internal buzzer control: disable
Internal buzzer with cash drawer pulse not selected
Internal buzzer with cash drawer pulse selected
6-5
6-6
48
49
48
49
Offline status condition: pulse mode
Offline status condition: step mode
Watermark printing disable
Watermark printing enable
6-8
48
49
Near end sensor detect signal disable
Near end sensor detect signal enable
•
Printer generate pulse to internal buzzer automatically for cutting command ESC i and GS V.
Rev. 1.00
BIXOLON
SRP-F310/312
- 68 -
• Printer generate pulse to internal buzzer automatically with cash drawer pulse by the setting.
• The watermark printing is available by the setting.
•
The beep is activated for the audible paper empty warning signal.
Remarks: None
Differences: None
SRP-F310/312
Rev. 1.00
BIXOLON - 69 -
<Function 4> GS ( E pL pH fn a (fn=4)
Code: ASCII GS ( E pL pH fn a
Hex 1D 28 45 02 00 04 a
Range:
Decimal 29 40 69 2 0 4 a pL + pH x 256) = 2 (pL=2, pH=0) fn=4
Default: a=1,2,3,4,5,6,11,12
None
Description: This command transmits the setting value of the memory switch corresponding to a.
Hexadecimal Decimal Amount of Data
Header 37H 55 1
Identifier 21H 33 1
Setting value 30H or 31H 48 or 49 8 bytes
NUL 00H 0 1
■ The setting value is sent from bit 8 to bit 1, consisting of 8 bytes in total.
•
Off: Hexadecimal = 30H / Decimal = 48
•
On: Hexadecimal = 31H / Decimal = 49
Remarks: None
Differences: None
SRP-F310/312
Rev. 1.00
BIXOLON - 70 -
SRP-F310/312
Function :
Code :
Select graphics data
ASCII GS (
Hex 1D 28
L
4C pL pL
GS ( L, GS 8 L pH pH m fn m fn
[parameter]
[parameter]
Decimal 29 40 76 pL pH m fn [parameter]
ASCII
Hex fn
0, 48
2, 50
3, 51
64
65
66
GS
1D
Decimal
None
29 56 76 p1 p2 p3 p4 m fn
Range:
Default: None
Description : This command processes graphics data according to the function code (fn).
No.
48
50
51
64
65
66
8
38
L p1
4C p1 p2 p3 p4 m fn p2 p3 p4 m fn
Format
GS ( L pL pH m fn
GS ( L pL pH m fn
GS ( L pL pH m fn
GS ( L pL pH m fn d1 d2
GS ( L pL pH m fn d1 d2 d3
GS ( L pL pH m fn kc1 kc2
[parameter]
[parameter]
[parameter]
Function
Transmits the NV graphics momory capacity
Prints the graphics data in the print buffer
Transmits the remaining capacity of the NV grapics memory
Transmits the defined NV graphics key code list
Deletes all NV graphics data
Deletes the specified NV graphics data
69 69
GS ( L pL pH m fn kc1 kc2 b xL xH yL yH [cd1…dk]1…[c d1…dk]b
GS ( L pL pH m fn kc1 kc2 x y
Defines the graphics data in the non-volatile memory
Prints the specified NV graphics data yH d1…dk
Stores the graphics data in the print buffer memory
Rev. 1.00
BIXOLON - 71 -
SRP-F310/312
Remarks : ■
■
This command is adapted to print image data. 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 LSB operations are not allowed during NV memory operation process.
Differences: None
Rev. 1.00
BIXOLON - 72 -
SRP-F310/312
<Function 48> GS ( L pL pH m fn (fn=0, 48)
Code : ASCII GS ( L
Hex 1D 28 4C pL pL pH pH m m fn fn
Range:
Decimal 29 40 76
(pL + pH x 256) = 1 (pL=2, pH=0) pL pH m fn
Default: m=48 fn=0, 48
None
Description : Tramsmits the total capacityu of the NV bit-image momory (number of bytes in the memory area).
Remarks : Hexadecimal Decimal Amount of Data
■
Header 37H 55 1
Identifier 21H
Setting value 30H or 31H
33 1
48 or 49 8 bytes
NUL 00H 0 1
The total capacity data is converted to character codes corresponding to decial data, then transmitted from the MSB.
■
■
The data length is variable.
The total capacitu of the NV user memory is selectable as any one of[0, 64K, 128K, 192K, 256K] bytes with GS ( E.
The default value is 256K.
Differences: None
Rev. 1.00
BIXOLON - 73 -
SRP-F310/312
<Function 50> GS ( L pL pH m fn (fn=2, 50)
Code : ASCII GS ( L
Hex 1D 28 4C pL pL pH pH m fn m fn
Range:
Decimal 29 40 76
(pL + pH x 256) = 1 (pL=2, pH=0) pL pH m fn
Default: m=48 fn=2, 50
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: None
Rev. 1.00
BIXOLON - 74 -
<Function 51> GS ( L pL pH m fn (fn=3, 51)
Code: ASCII GS ( L pL pH m fn
Hex 1D 28 4C pL pH m fn
Range:
Decimal 29 40 76 pL pH m fn
(pL + pH x 256) = 2 (pL=2, pH=0) m=48 fn=3, 51
Default: None
Description: This command transmits the setting value of the memory switch corresponding to a.
■
Hexadecimal Decimal Amount of Data
Header 37H 55 1
Identifier 21H
Setting value 30H – 39H
33
48 - 57
1
1 - 8 bytes
NUL 00H 0 1
The setting value is sent from bit 8 to bit 1, consisting of 8 bytes in total.
•
Off: Hexadecimal = 30H / Decimal = 48
Remarks:
•
None
Differences: None
On: Hexadecimal = 31H / Decimal = 49
Rev. 1.00
BIXOLON
SRP-F310/312
- 75 -
<Function 64> GS ( L pL pH m fn d1 d2 (fn=64)
Code: ASCII GS ( L pL pH m fn d1 d2
Hex 1D 28 4C pL pH m fn d1 d2
Range:
Decimal 29 40 76 pL pH m fn d1 d2
(pL + pH x 256) = 4 (pL=4, pH=0) m=48 fn=64 d1=75, d2=67
Default: None
Description: ■ Transmits the defined NV graphics key code list.
Hexadecimal Decimal Amount of Data
Header 37H 55 1
■
Status 40H or 41H 64 or 65 1 byte
Data 30H – 39H 48 - 57 2 - 80 bytes
NUL 00H 0 1
When the key code is not present :
Hexadecimal Decimal Amount of Data
Header 37H 55 1
Status 40H 64 1
NUL 00H 0 1
Rev. 1.00
BIXOLON
SRP-F310/312
- 76 -
SRP-F310/312
Remarks: ■ If the number of the key code exceed 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.
After the [Header-NULL] is transmitted, the printer receives a response from the hosg; 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)
Process performed
Transmits the next data
Transmits the previous data again
CAN
Response
24 Ends the process.
- When the status (for the last data block) is Hexadecimal = 40H / Decimal = 64)
Process performed
ASCII
ACK
Decimal
6 Ends the process
NAK
CAN
21
24
Transmits the previous data again
Cancels the process.
Differences: None
ASCII
ACK
NAK
Response
Decimal
6
21
Rev. 1.00
BIXOLON - 77 -
SRP-F310/312
<Function 65> GS ( L pL pH m fn d1 d2 d3 (fn=65)
Code : ASCII GS ( L
Hex 1D 28 4C pL pL pH pH m fn m fn d1 d2 d3 d1 d2 d3
Range:
Decimal 29 40 76
(pL + pH x 256) = 5 (pL=5, pH=0) pL pH m fn d1 d2 d3
Default: fn=65 d1=67, d2=76, d3=82
None
Description : This command removes all defined NV graphics data.
Remarks : ■ The graphics data is define by Function 67 into the NV graphics memory with the sector dedicated for storing NV graphics data.
Differences: None
Rev. 1.00
BIXOLON - 78 -
Code :
<Function 66> GS ( L pL pH m fn kc1 kc2 (fn=66)
ASCII GS ( L
Hex 1D 28 4C pL pL pH pH m fn m fn
Range:
Decimal 29 40 76
(pL + pH x 256) = 4 (pL=4, pH=0) m=48 fn=66
32 ≤ kc1 ≤ 126 pL pH m fn
Default:
32 ≤ kc2 ≤ 126
None
Description : Deletes the NV graphics data defined by the codes kc1 and kc2.
Remarks : ■ The graphics data is define by Function 67.
Differences: None kc1 kc2 kc1 kc2 kc1 kc2
SRP-F310/312
Rev. 1.00
BIXOLON - 79 -
SRP-F310/312
Code :
Range:
<Function 67> GS ( L pL pH m fn kc1 kc2 b xL xH yL yH [cd1…dk]1…[c d1…dk]b (fn=67)
ASCII GS (
Hex 1D 28
L
4C pL pL pH pH
Decimal 29 40 76 pL pH
GS ( L parameter
3 ≤ (pL + pL x 256) ≤ 65535 (0≤pL≤255, 0≤ pH≤255) m m m fn fn fn kc1 kc2 b xL xH yL yH [cd1…dk]1…[c d1…dk]b kc1 kc2 b xL xH yL yH [cd1…dk]1…[c d1…dk]b kc1 kc2 b xL xH yL yH [cd1…dk]1…[c d1…dk]b
GS ( 8 parameter
3 ≤ (p1 + p2 x 256) +p3 x 65535+p4 x 16777216) ≤ 4294967295
(0 ≤ p1L ≤ 255, 0 ≤ p2 ≤ 255, 0 ≤ p3 ≤ 255, 0 ≤ p4 ≤ 255)
Common parameter m=48 fn=67 a=48
32 ≤ kc1 ≤ 126
32 ≤ kc2 ≤ 126 b=1,2
1 ≤ (xL + xH x 256) ≤ 8192
1 ≤ (yL + yH x 256) ≤ 2304 c=49 (When The monochrome paper is selected) c=50 (When The two-color paper is selected)
0 ≤ d ≤ 255 k = ( int ( ( xL + xH x 256 ) + 7 ) / 8 ) x ( yL + yH x 256 )
None Default:
Rev. 1.00
BIXOLON - 80 -
SRP-F310/312
Description : ■ The following parameters are used to define the raster graphics data.
• b specifies the number of colors for the defined data.
•
•
• xL and xH specify the number of dots in horizontal direction to (xL + xH x 256). yL and yH specify the number of dots in horizontal direction to (yL + yH x 256) dots. c specifies the color of the defined data. c Defined data color
50
- STP-103II is can not use two color printing mode.
Remarks : ■
■
■
■
Color 1 means black, and Color 2 red that is available for 2-color paper.
If new NV graphics data is saved or the existing data is modified, all of the existing data in NV graphics memory are flushed and updated using this command. The rest of NV graphics data groups having no change should be redefined along with the new group stored.
When NV graphics data groups are saved, each of the groups is allocated with N in the order of download.
256K bytes of NV memory is reserved for each of mono color and 2-color graphics data. Therefore, the total capacity of the NV graphics memory is 512K bytes.
Differences: None
Rev. 1.00
BIXOLON - 81 -
<Function 69> GS ( L pL pH m fn kc1 kc2 x y (fn=69)
Code : ASCII GS (
Hex 1D 28
L
4C pL pL pH pH
Range:
Decimal 29 40 76
(pL + pH x 256) = 6 (pL=6, pH=0) m=48, fn=69
32 ≤ kc1 ≤ 126
32 ≤ kc2 ≤ 126 pL pH x=1, 2 y=1, 2
Default: None
Description :
■
Prints the NV graphics data defined by the codes kc1 and kc2.
• The graphics data is enlarged by x and y in the horizontal and vertical directions.
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: None
SRP-F310/312
Rev. 1.00
BIXOLON - 82 -
Code :
Range:
Default:
<Function 112> GS ( L pL pH m fn a bx by c xL xH yL yH d1…dk (fn=112)
ASCII GS
Hex 1D
(
28
L
4C pL pL pH pH
Decimal 29 40 76 pL pH
GS ( L parameter
11 ≤ (pL + pL x 256) ≤ 65535 (0≤pL≤255, 0≤ pH≤255) m m m fn fn fn a bx by c xL xH yL yH d1…dk a bx by c xL xH yL yH d1…dk a bx by c xL xH yL yH d1…dk
GS 8 L parameter
11 ≤ (p1 + p2 x 256) +p3 x 65535+p4 x 16777216) ≤ 4294967295
(0 ≤ p1L ≤ 255, 0 ≤ p2 ≤ 255, 0 ≤ p3 ≤ 255, 0 ≤ p4 ≤ 255)
Common parameter m=48 fn=112 a=48 c=49 (When The monochrome paper is selected) c=50 (When The two-color paper is selected)
- When single-color paper secified :
1 ≤ (xL + xH x 256) ≤ 1662 (When by =1)
1 ≤ (xL + xH x 256) ≤ 831 (When by =2)
- When two-color paper secified :
1 ≤ (xL + xH x 256) ≤ 831 (When by =1)
1 ≤ (xL + xH x 256) ≤ 415 (When by =2)
0 ≤ d ≤ 255 k = ( int ( ( xL + xH x 256 ) + 7 ) / 8 ) x ( yL + yH x 256 )
None
Rev. 1.00
BIXOLON
SRP-F310/312
- 83 -
SRP-F310/312
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 directionas (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
•
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.
■
■
NV graphics data beyond the print area for one line is not printed.
Real time command is not effective during processing of this command.
Differences: None
Rev. 1.00
BIXOLON - 84 -
m m m
SRP-F310/312
Function:
Code:
GS ( N
Select character color
ASCII GS ( N pL pH
Range:
Hex
Decimal
1D
29
28
40
4E
78
(pL + pH x 256) = 2 (pL=2, pH=0) n=48 pL pL pH pH m=49 (when the monochrome paper is selected) m=49,50 (when the two-color paper is selected)
Default: m = 49
Description:
■
This command selects the color specified by m. m Color n n n
• Color 1 means black and Color 2 red.
Remarks:
■
■
In white/black reverse mode, the characters are regarded as nonprinting dots and the background is printed in the color specified by this command.
In underline mode, the underline is printed in the color defined by this command.
Differences: None
Rev. 1.00
BIXOLON - 85 -
GS ( k
Function:
Code:
Range:
Default:
Specify and print the symbol
None
None
None
Description:
■
This command processes the data concerning two-dimensional code.
•
•
Symbol type is specified by cn.
Function code is specified by fn. cn
48
49
Type of Symbol
PDF417 (2-dimensional code)
QR CODE (2-dimensional code) cn
48 fn
65
66
67
68
69
70
Function 065
Function 066
Function 067
Function 068
Function 069
Function 070
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
storage area
PDF417: Send the size information of the
symbol data in the symbol storage area
Rev. 1.00
BIXOLON
SRP-F310/312
- 86 -
Remarks:
Rev. 1.00
SRP-F310/312 cn fn
65
67
69
Function 165
Function 167
Function 169
Function
QR CODE: Select the module
QR CODE: Select the size of module
QR CODE: Select the error correction level
49 storage area area
QR CODE: Transmit the size information of the symbol data in the symbol storage area
PDF417 symbol data (when cn=48)
■
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 or 082. 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.
By using Function 082, the symbol size printed by Function 081 is Available.
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
BIXOLON - 87 -
SRP-F310/312
■ The setting values of Functions 165 to 169 are utilized for the processing of Function 180 or 182. 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.
By using Function 182, the symbol size printed by Function 181 is available.
Differences: None
Rev. 1.00
BIXOLON - 88 -
SRP-F310/312
<Function 065> GS ( k pL pH cn fn n (fn=65)
Code: ASCII GS
Hex 1D
(
28 k
6B pL
03 pH
00 cn
30 fn
41 n n
Range:
Decimal 29 40 107
(pL + pH x 256) = 3 (pL=3, pH=0) cn=48, fn=65
3 0 48 65 n
Default:
0 ≤ n ≤ 30 n = 0
Description: ■ 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.
Remarks:
■
■
■
■
Settings of this command affect the processing of Functions 081 and 082.
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, 082
•
Module width (Function 067)
■
• Option setting (Function 070)
The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
Differences: None
Rev. 1.00
BIXOLON - 89 -
SRP-F310/312
<Function 066> GS ( k pL pH cn fn n (fn=66)
Code: ASCII GS
Hex 1D
(
28 k
6B pL
03 pH
00 cn
30 fn
42 n n
Range:
Decimal 29 40 107
(pL + pH x 256) = 3 (pL=3, pH=0) cn=48, fn=66
3 0 48 66 n
Default: n=0, 3 ≤ n ≤ 90 n = 0
Description: ■ 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.
Remarks:
■
■
■
Settings of this function affect the processing of Functions 081 and 082.
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, 082
■
• Module height (Function 068)
The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
Differences: None
Rev. 1.00
BIXOLON - 90 -
<Function 067> GS ( k pL pH cn fn n (fn=67)
Code: ASCII GS
Hex 1D
(
28 k
6B pL
03 pH
00 cn
30 fn
43 n n
Range:
Decimal 29 40 107
(pL + pH x 256) = 3 (pL=3, pH=0) cn=48 fn=67
1 ≤ n ≤ 4
3 0 48 67 n
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 and 082.
■
■
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)
•
•
SRP-F310: 0.141(1/180 inch)
SRP-F312: 0.125(1/203 inch)
SRP-F310/312
Rev. 1.00
BIXOLON - 91 -
<Function 068> GS ( k pL pH cn fn n (fn=68)
Code: ASCII GS
Hex 1D
(
28 k
6B pL
03 pH
00 cn
30 fn
44 n n
Range:
Decimal 29 40 107
(pL + pH x 256) = 3 (pL=3, pH=0) cn=48 fn=68
2 ≤ n ≤ 8
3 0 48 68 n
Default: n = 3
Description: This command sets the module height of PDF417 to [the module width x n].
Remarks:
■
Settings of this command affect the processing of Functions 081 and 082.
■ The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
Differences: None
SRP-F310/312
Rev. 1.00
BIXOLON - 92 -
SRP-F310/312
Code:
Range:
Decimal 29 40 107
(pL + pH x 256) = 4 (pL=4, pH=0)
4 0 48 69
Default: cn=48 fn=69 m=48
48 ≤ n ≤ 56
None
Description: ■ This command specifies the error correction level for PDF417.
•
The error correction level is set by “level”.
Remarks:
ASCII GS
Hex 1D
(
28
<Function 069> GS ( k pL pH cn fn m n (fn=69) k
6B pL
04 pH
00 cn
30 fn
45 m m m n n n
■
Settings of this function affect the processing of Functions 081 and 082.
■ 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
49
Error correction level 0
Error correction level 1
2
4
50
51
52
53
54
55
56
Error correction level 2
Error correction level 3
Error correction level 4
Error correction level 5
Error correction level 6
Error correction level 7
Error correction level 8
8
16
32
64
128
256
512
■ The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
Differences: None
Rev. 1.00
BIXOLON - 93 -
Code: ASCII GS
Hex 1D
(
28
<Function 070> GS ( k pL pH cn fn m (fn=70) k
6B pL
03 pH
00
Range:
Decimal 29 40 107
(pL + pH x 256) = 3 (pL=3, pH=0) cn=48
3
Default: fn=70 m=0,1 m = 0
Description: This command selects the option for PDF417. m Function
0
0
1
Select the standard PDF417
Select the simplified PDF417 cn
30
48 fn
46
70 m m m
Remarks:
■
Settings of this function affect the processing of Functions 081 and 082.
■
■
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.
Differences: None
SRP-F310/312
Rev. 1.00
BIXOLON - 94 -
SRP-F310/312
<Function 080> GS ( k pL pH cn fn m d1...dk (fn=80)
Code: ASCII GS
Hex 1D
(
28 k
6B pL pL pH pH cn
30 fn
50 m
30 d1...dk d1...dk
Range:
Decimal 29 40 107 pL pH 48
4 ≤ (pL + pH x 256) ≤ 65535 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 255) cn=48 fn=80 m=48
80 48 d1...dk
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:
■ The data stored in the symbol storage area by this command remains reserved after processing Function 081 or 082.
■ 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 @
•
Differences: None
Executing printer reset or power-off
Rev. 1.00
BIXOLON - 95 -
SRP-F310/312
Code: ASCII GS
Hex 1D
(
28
<Function 081> GS ( k pL pH cn fn m (fn=81) k
6B pL
03 pH
00 cn
30 fn
51 m m
Range:
Decimal 29 40 107
(pL + pH x 256) = 3 (pL=3, pH=0)
3 0 48 81 m cn=48 fn=81 m=48
Default: None
Description: This command encodes and prints the PDF417 symbol data in the symbol save area.
Remarks:
■ 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.
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).
Rev. 1.00
BIXOLON - 96 -
SRP-F310/312
■
■
•
•
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.
Differences: None
Rev. 1.00
BIXOLON - 97 -
SRP-F310/312
<Function 082> GS ( k pL pH cn fn m (fn=82)
Code: ASCII GS
Hex 1D
(
28 k
6B pL
03 pH
00 cn
30 fn
52 m m
Range:
Decimal 29 40 107
(pL + pH x 256) = 3 (pL=3, pH=0) cn=48 fn=82 m=48
3 0 48 82 m
Default: None
Description: This command encodes and sends the size information of the PDF417 symbol data in the symbol storage area.
Remarks: ■
■
In standard mode, this command is available only when printer is at the beginning of a line or the printer buffer is empty.
The size information for each data is as follows:
Send data Hex Decimal Data
Header 37H 55 byte
Horizontal size
Vertical size
30H – 39H
30H – 39H
48 – 57
48 – 57
1 – 5 byte
1 – 5 byte
Fixed value
Other information
31H
30H or 31H
49
48 or 49
1 byte
1 byte
• Horizontal size and vertical size denotes the number of dots of the symbol.
Rev. 1.00
BIXOLON - 98 -
SRP-F310/312
■ The following data indicates whether or not printing of the symbol is possible:
Hex Decimal Condition
■
31H 49 Printing is impossible
The quiet zone is not included in the printing data. Be sure to include the adequate quiet zone for executing of this command.
Differences: None
Rev. 1.00
BIXOLON - 99 -
Code: ASCII GS
Hex 1D
(
28
<Function 165> GS ( k pL pH cn fn n1 n2 (fn=65) k
6B pL
04 pH
00
Range:
Decimal 29 40 107
(pL + pH x 256) = 3 (pL=3, pH=0) cn=49 fn=65 n1 = 49, 50
4 0
Default: n2 =0 n1 = 50, n2 = 0
Description: This command sets the QR Code model as follows: n1 Function cn
31
49 fn
41
65 n1 n1 n1 n2 n2 n2
Remarks: ■
■
The setting of this command affects <Function 181> and <Function 182>.
The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
Differences: None
Rev. 1.00
BIXOLON
SRP-F310/312
- 100 -
<Function 167> GS ( k pL pH cn fn n (fn=67)
Code: ASCII GS
Hex 1D
(
28 k
6B pL
03 pH
00 cn
31 fn
43 n n
Range:
Decimal 29 40 107
(pL + pH x 256) = 3 (pL=3, pH=0) cn=49 fn=67
1<=n<8
3 0 49 67 n
Default: n = 3
Description: This command sets the size of the QR Code module to n dots.
Remarks:
■
The setting of this command affects the processing of <Function 181> and <Function 182>.
■ 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.
Differences: None
SRP-F310/312
Rev. 1.00
BIXOLON - 101 -
SRP-F310/312
<Function 169> GS ( k pL pH cn fn n (fn=69)
Code: ASCII GS
Hex 1D
(
28 k
6B pL
03 pH
00 cn
31 fn
45 n n
Range:
Decimal 29 40 107
(pL + pH x 256) = 3 (pL=3, pH=0)
3 0 49 69 n 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
49
50
51
Error Correction Level L
Error Correction Level M
Error Correction Level Q
Error Correction Level H
7
15
25
30
Remarks:
■
The setting of this command affects the processing of <Function 181> and <Function 182>.
■
■
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.
Differences: None
Rev. 1.00
BIXOLON - 102 -
SRP-F310/312
<Function 180> GS ( k pL pH cn fn m d1...dk (fn=80)
Code: ASCII GS
Hex 1D
(
28 k
6B pL pL pH pH cn
31 fn
50 m
30 d1...dk d1...dk
Range:
Decimal 29 40 107 pL pH
4 ≤ (pL + pH x 256) ≤7092 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 27)
49 cn=49 fn=80 m=48
80 48 d1...dk
Default:
0 ≤ d ≤ 255 k = (pL + pH x 256) – 3
None
Description: This command saves symbol data of the QR Code to the symbol storage area.
Remarks: ■ 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
Numeric Data
Alphanumeric Data
Kanji Data
8bit Byte Data
Usable Characters
“0” ~ “9”
“0” ~ “9”, “A” ~ “Z”, SP, $, %, *, +, -, ., /, :
Shift JIS value
00H ~ FFH
The setting of this command remains effective until the following processing is performed:
•
Performing Function 180
•
•
Differences: None
Performing ESC @
Performing the printer reset or power-off
Rev. 1.00
BIXOLON - 103 -
SRP-F310/312
<Function 181> GS ( k pL pH cn fn m (fn=81)
Code:
■
ASCII GS
Hex 1D
(
28 k
6B pL
03 pH
00 cn
31 fn
51
Range:
Decimal 29 40 107
(pL + pH x 256) = 3 (pL=3, pH=0) cn=49 fn=81 m=48
3 0 49 81 m
Default: None
Description: This command encodes and prints QR Code symbol data saved in the symbol storage area.
Remarks:
■
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. m m
■ 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
Rev. 1.00
BIXOLON - 104 -
SRP-F310/312
■ 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: None
Rev. 1.00
BIXOLON - 105 -
SRP-F310/312
■
<Function 182> GS ( k pL pH cn fn m (fn=82)
Code: ASCII GS
Hex 1D
Range:
Decimal 29 40 107
(pL + pH x 256) = 3 (pL=3, pH=0) cn=49 fn=82 m=48
3 0 49 82 m
Default: None
Description: This command transmits the size information of the QR Code symbol data encoded by Function 180.
Remarks:
■
In standard mode, this command is available only when printer is at the beginning of a line or the printer buffer is empty.
(
28 k
6B pL
03 pH
00 cn
31 fn
52 m m
The size information of each data is as follows:
Send data Hex Decimal Data
Header 37H 55 byte
Horizontal size
Vertical size
30H – 39H
30H – 39H
48 – 57
48 – 57
1 – 5 byte
1 – 5 byte
Fixed Value
Other Information
31H
30H or 31H
49
48 or 49
1 byte
1 byte
• Horizontal size and vertical size denotes the number of dots of the symbol.
Rev. 1.00
BIXOLON - 106 -
■ The following data indicates whether or not printing of the symbol is possible:
Hex Decimal Condition
30H 48 possible
31H 49 Printing is impossible
■ The quiet zone is not included in size information.
Differences: None
Rev. 1.00
BIXOLON
SRP-F310/312
- 107 -
GS *
Function:
Code:
Define downloaded bit image
ASCII GS * x y [d1...d(x x y x 8)]
Range:
Hex 1D
Decimal
1 ≤ x ≤ 255
29
2A
42 x x y y
[d1...d(x x y x 8)]
[d1...d(x x y x 8)]
Default:
1 ≤ y ≤ 48 (where x x y ≤ 1536)
0 ≤ d ≤ 255
None
Description: ■ This command defines the downloaded bit image using the number of dots specified by x and y.
•
• x and y specify the number of dots in the horizontal and vertical directions respectively.
D defines the bit image data.
• K denotes the number of the definition data.
Remarks:
■
■
■
The bit image can be printed by downloaded graphics function, GS ( 8.
The downloaded bit image is available until ESC @, printer reset or power cycling is executed.
The user-defined character and the downloaded bit image cannot be defined simultaneously.
•
The user-defined character is cleared preceding the execution of this command.
•
Differences: None
The downloaded bit image data is cleared with ESC & executed.
Rev. 1.00
BIXOLON
SRP-F310/312
- 108 -
SRP-F310/312
GS /
Function:
Code:
Print downloaded bit image
ASCII GS / m
Range:
Default:
Hex
Decimal
None
1D
29
2F
47
0 ≤ m ≤ 3, 48 ≤ m ≤ 51 m m
Description: This command prints the downloaded bit image defined by GS * according to the mode denoted by m. m Mode Vertical dot density(DPI)
DPI : Dots per Inch (25.4mm)
Horizontal dot density(DPI)
0, 48
1, 49
2, 50
3, 51
Normal
Double-width
Double-height
Quadruple
180
180
90
90
180
90
180
90
Remarks:
■
■
■
■
■
The download bit image is defined by GS *.
This command is ignored when if a downloaded bit image is not defined.
In standard mode, this command works only when the print buffer is empty and the printer is in the start of the line. m is treated as normal data if the print buffer has data.
In page mode, the bit image data is accumulated in the print buffer, but does not perform the actual printing.
Except for character size and upside-down printing mode, none of print mode such as emphasized, double-strike, etc, affects the printing of the downloaded bit image.
The default dot density set by GS L is applied to printing of the downloaded bit image.
■
Rev. 1.00
BIXOLON - 109 -
Differences: ■ SRP-F310: m
0, 48
1, 49
2, 50
3, 51
■ SRP-F312:
Mode
Normal
Double-width
Double-height
Quadruple m
0, 48
1, 49
2, 50
3, 51
Mode
Normal
Double-width
Double-height
Quadruple
Vertical dot density(DPI)
180
180
90
90
Vertical dot density(DPI)
203
203
203/2
203/2
SRP-F310/312
DPI : Dots per Inch (25.4mm)
Horizontal dot density(DPI)
180
90
180
90
DPI : Dots per Inch (25.4mm)
Horizontal dot density(DPI)
203
203/2
203
203/2
Rev. 1.00
BIXOLON - 110 -
SRP-F310/312
GS :
Code: ASCII GS :
Range:
Default:
Hex
None
None
1D
Decimal 29
3A
58
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: None
Rev. 1.00
BIXOLON - 111 -
GS B
Function: Turns
Code: ASCII GS B n
Hex
Decimal
0 ≤ n ≤ 255
1D
29
42
66 n n
Range:
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.00
BIXOLON
SRP-F310/312
- 112 -
SRP-F310/312
GS H
Function:
Code:
Selects print position of HRI characters
ASCII GS H n
Hex 1D
Decimal 29
0 ≤ n ≤ 3, 48 ≤ n ≤ 51
48
72 n n
Range:
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.00
BIXOLON - 113 -
Remarks:
SRP-F310/312
GS I
Function:
Code:
Transmits printer ID
ASCII GS I n
Hex
Decimal
1 ≤ n ≤ 69
1D
29
49
73 n n
Range:
Default: None
Description:
■
This command transmits the printer ID or information.
• Transmits 1 byte of printer ID, using n as follows: n Printer ID Specification
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
65
Printer ID type
Firmware version
Specification
Firmware version
67
69
Printer model
Code page
Printer model
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.
Rev. 1.00
BIXOLON - 114 -
SRP-F310/312
Differences: ■ The printer ID is shown according to printer models as follows:
Printer ID SRP-F310 SRP-F312
1(Printer model ID) 0x20 0x20
2(Type ID)
3(Printer feature ID)
Type ID varies depending on functions the printer supports as follows:
- 0x01 (Multi-byte character)
- 0x02 (Autocutter)
- 0x03 (Autocutter + Multi-byte character)
- 0x04 (Customer display)
- 0x05 (Multi-byte character + Display)
- 0x07 (Customer display + Autocutter + Multi-byte Character)
0x63 0x63
66(Manufacturer) BIXOLON
67(Printer model)
69(Language of Font)
SRP-F310 SRP-F312
Code page currently being used. Refer to cod page setting command, ESC t.
Rev. 1.00
BIXOLON - 115 -
SRP-F310/312
GS L
Function:
Code:
Set left margin
ASCII GS L nL nH
Range:
Default:
Hex
Decimal
1D
29
4C
76
0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255 nL nL
(nL + nH x 256)=0 (nL=0, nH=0) nH nH
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 Printing area width
Differences: None
Rev. 1.00
BIXOLON - 116 -
① Executes a partial cut (one point left uncut)
Function
SRP-F310/312
GS V
Function:
Code:
Select cut mode and cut paper
ASCII GS V
①
②
Hex 1D
Decimal 29
ASCII GS
Hex 1D
56
86
V
56 m m m m m n n
Range:
Default:
Decimal 29 86 m
① m=0, 1, 48, 49 ② m=65, 66, 0 ≤ n ≤ 255
None n
Description: This command cuts paper in the specified mode as follows. m
0,48
1,49
Remarks:
② 65 Feeds paper to (cutting position + n × vertical motion unit) and executes a partial cut(one point left uncut)
For ①
■ If an auto cutter is not provided, this command is ignored command is executed.
For ②
■ When n = 0, the printer feeds the paper to the cutting position and cuts it.
■
■
■
If an auto cutter is not provided, the printer only feeds the paper for specified amount.
Vertical motion unit is used for calculating a paper feed amount.
Cutting mode is changed only by setting MSW5-1.
Differences: None
Rev. 1.00
BIXOLON - 117 -
SRP-F310/312
GS W
Function:
Code:
Set printing area width
ASCII GS W nL nH
Range:
Default:
Hex 1D 57
Decimal 29 87
0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255
■
■ nL nL nH nH
SRP-F310:
(nL + nH x 256)=512 (nL=0, nH=2) (When 80mm width of paper used)
SRP-F312:
(nL + nH x 256)=576 (nL=64, nH=2) (When 80mm width of paper used)
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.
Left margin
Printable area
Printing area width
Differences: None
Rev. 1.00
BIXOLON - 118 -
SRP-F310/312
GS ^ macro
Code: ASCII GS ^ r t m
Range:
Hex 1D
Decimal
0 ≤ r ≤ 255
29
5E
94 r r t t m m
Default:
0 ≤ t ≤ 255 m=0, 1
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
0
1
Function
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 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.00
BIXOLON - 119 -
SRP-F310/312
GS a
Function:
Code:
Enable/Disable Last Status Back (LSB)
ASCII GS a n
Hex
Decimal
0 ≤ n ≤ 255
1D
29
61
97 n n
Range:
Default: n = 0
Description:
■
This enables or disables LSB (Last Status Back) according to n.
■
■
■
■
• LSB is enabled when n > 0.
If there is any change comparing new status value to old status value,new status value will be stored in LSB buffer.
When the printer status changes, new status value will not be sent to host but be stored in SB buffer.
The printer processor checks buffer periodically. If there is any change on status value, latest status value will be sent to the host.
The interval of checking time can be changed using the command BS ^ T.
Remarks:
■
LSB is the function that transmit the printer status such as cover open/close and Online/Offline if LSB is enabled.
Using this LSB function, the host can check to see if the printer is running properly.
■
Once LSB has been enabled, the printer transmit the current printer status When its status is changed, until LSB is disabled.
■
When n = 0,LSB is disabled. The printer stops transmitting the status.
■ The setting of this command remains effective until ESC @, printer reset or power cycling is executed.
Rev. 1.00
BIXOLON - 120 -
Rev. 1.00
SRP-F310/312
■ The printer information transmitted is comprised of 4 bytes as follows:
•
First byte(printer information)
Bit
0
1
2
Off/On
Off
Off
Off
On
Hex
00
00
00
04
Decimal
0
0
0
4
Function
Not used. Fixed to Off
Not used. Fixed to Off
Drawer kick-out connector pin 3 is LOW
Drawer kick-out connector pin 3 is HIGH
3
4
5
6
7
On
Off
On
Off
On
Off
10
00
20
00
40
00
16
0
32
0
64
0
Not used. Fixed to On
Cover is close
Cover is open
Paper is not being fed by the paper feed button
Paper is being fed by the paper feed butto
Not used. Fixed to Off
• Second byte(printer information)
Bit
0
1
2
Off/On
Off
Off
Off
Hex
00
00
00
Decimal
0
0
0
Not used. Fixed to Off
Not used. Fixed to Off
No mechanical error
Function
3
4
5
Off
On
Off
Off
00
08
00
00
0
8
0
0
No auto cutter error
Auto cutter error occurred
Not used. Fixed to Off
No unrecoverable error
6
7
Off
On
Off
00
40
00
0
64
0
No automatically recoverable error
Automatically recoverable error occurred
Not used. Fixed to Off
- If mechanical error (bit 2) or auto-cutter error (bit 3) occurs due to paper jams or the like, it is possible to recover by correcting a cause of the error and executing ENQ in real time mode.
BIXOLON - 121 -
4
5
6
7
- If an unrecoverable error (bit 5) occurs, turn off the power as soon as possible.
•
Third byte (paper sensor information)
Bit
0,1
2,3
Off/On
Off
On
Off
On
Off
Off
Off
Off
Hex
00
03
00
0C
00
00
00
00
Decimal
0
3
0
12
0
0
0
0
Function
Paper near end sensor: paper adequate
Paper near end sensor: paper near end
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
Differences: None
3
4
5
6
7
Bit
0
1
2
•
Fourth byte (paper sensor information)
Off/On
On
On
On
On
Off
Off
Off
Off
Hex
01
02
04
08
00
00
00
00
Decimal
1
2
4
8
0
0
0
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.00
BIXOLON
SRP-F310/312
- 122 -
SRP-F310/312
GS f
Function:
Code:
Select font for HRI characters
ASCII GS f n
Hex 1D 66 n
Decimal n = 0
29 n = 0, 1, 48, 49
102 n
Range:
Default:
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
1, 49
Font A
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: None
Rev. 1.00
BIXOLON - 123 -
GS h
Function:
Code:
Selects bar code height
ASCII GS h n
Hex
Decimal 29 104
1 ≤ n ≤ 255 n = 162
1D 68 n n
Range:
Default:
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:
■
SRP-F310: 0.141mm(1/180 inch)
■ SRP-F312: 0.125mm(1/203 inch)
SRP-F310/312
Rev. 1.00
BIXOLON - 124 -
SRP-F310/312
GS k
Function:
Code:
Print bar code
ASCII GS
① Hex 1D k
6B
Decimal 29 107 m m m d1...dk d1...dk d1...dk
NUL
NUL
NUL
②
ASCII GS
Hex 1D k
6B m m n n d1...dn d1...dn
Range:
Decimal 29 107 m
① 0 ≤ m ≤ 6 65 ≤ m ≤ 73
K, m, n depend on the barcode system n d1...dn
Default: None
Description:
■
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 ①
Bar Code System Range of k m
0
1
2
3
4
5
6
Rev. 1.00
BIXOLON
Range of d
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
- 125 -
SRP-F310/312
For range ② m Bar Code System
65 UPC-A
Range of k Range of d
48 ≤ d ≤ 57
66 UPC-E
67 JAN13(EAN)
68 JAN8(EAN)
69 CODE39
70 ITF 1
71 CODABAR
72 CODE93
73 CODE128
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
Remarks:
■
■
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.
Differences: None
Rev. 1.00
BIXOLON - 126 -
GS r status
Code: ASCII GS r n
Hex
Decimal
1D
29 n = 1, 2, 49, 50
72
114 n n
Range:
Default: None
Description: The command transmits the status specified by n as follows: n
1, 49 Transmits paper sensor status
Function
2, 50 Transmits drawer kick-out connector status
Remarks: ■
■
The status is one byte.
The status to be transmitted is as follows:
•
Paper sensor status (n=1, 49):
Bit
0, 1
Off/On
Off
On
Hex
00
03
Decimal
0
3
2, 3
Off
On
00
0C
0
12
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
SRP-F310/312
Rev. 1.00
BIXOLON - 127 -
SRP-F310/312
Bits 2 and 3: This command can not be executed when the printer is offline due to the lack of paper. Therefore, the status of bit 2 (1) and bit 3 (1) is not transmitted.
•
Drawer kick-out connector status (n=2, 50):
Bit
0
Off/On
Off
On
Hex
00
01
Decimal
0
1
Function
Drawer kick-out connector pin 3 is LOW
Drawer kick-out connector pin 3 is HIGH
■
This command can be executed in real-time mode using DLE.
Differences: None
Rev. 1.00
BIXOLON - 128 -
SRP-F310/312
Function:
Code:
GS v 0
Print raster bit image
ASCII GS v 0 m xL xH yL yH d1...dk
Range:
Hex
Decimal
1D
29
76
118
30
48 m m
0 ≤ m ≤ 3, 48 ≤ m ≤ 51
1 ≤ (xL + xH x 256) ≤ 128 (0 ≤ xL ≤ 128, xh=0) xL xH yL yH d1...dk xL xH yL yH d1...dk
1 ≤ (yL + yH x 256) ≤ 4095 (0 ≤ yL ≤ 255, 0 ≤ yH ≤ 15)
0 ≤ d ≤ 255 k = (xL + xH x 256) x (yL + yH x 256)
Default: None
Description: ■ This command prints a raster bit image according to the mode defined by m.
DPI : Dots per Inch (25.4mm) m
0, 48
1, 49
2, 50
3, 51
Mode
Normal
Double-width
Double-height
Quadruple
Vertical dot density (DPI) Horizontal dot density (DPI)
180 180
180 90
90
90
180
90
•
•
• 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:
■
■
■
■
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.
Rev. 1.00
BIXOLON - 129 -
Differences: ■
SRP-F310: m
0, 48
1, 49
2, 50
3, 51
■ SRP-F312: m
0, 48
1, 49
2, 50
3, 51
Mode
Normal
Double-width
Double-height
Quadruple
Mode
Normal
Double-width
Double-height
Quadruple
Rev. 1.00
BIXOLON
SRP-F310/312
DPI : Dots per Inch (25.4mm)
Vertical dot density (DPI) Horizontal dot density (DPI)
180 180
180
90
90
90
180
90
DPI : Dots per Inch (25.4mm)
Vertical dot density (DPI) Horizontal dot density (DPI)
203
203
203
203/2
203/2
203/2
203
203/2
- 130 -
SRP-F310/312
GS w
Function:
Code:
Set bar code width
ASCII GS w n
Hex
Decimal
2 ≤ n ≤ 6
1D
29
77
119 n n
Range:
Default: n = 3
Description:
■
This command sets the horizontal size of the bar code, using n as follows: n
Multi-level bar code module width (mm)
2 0.282
Binary-level bar code
Thin element width (mm)
0.282
Thick element width (mm)
0.706
3 0.423
4 0.564
0.423
0.564
1.129
1.411
5 0.706
6
0.706 1.834
0.847 0.847 2.258
Remarks:
• 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.
Rev. 1.00
BIXOLON - 131 -
SRP-F310/312
Differences: ■ SRP-F310: n
Multi-level bar code module width (mm)
2 0.282
3 0.423
Binary-level bar code
Thin element width (mm) Thick element width (mm)
0.282
0.423
0.706
1.129
4 0.564
5 0.706
6
0.564
0.706
1.411
1.834
0.847 0.847 2.258
■ SRP-F312: n
2
3
Multi-level bar code module width (mm)
Binary-level bar code
Thin element width (mm) Thick element width (mm)
0.250 0.250 0.625
0.375 0.375 1.000
4
5
0.500 0.500 1.250
0.625 0.625 1.625
Rev. 1.00
BIXOLON - 132 -
BS F W
Function: Download
Code: ASCII BS F W n m
Range:
Hex 08
Decimal n = 0, 1
08
46
70
65 ≤ m ≤ 67 ( m = 65, 66 ,67)
57
87 n n m m
Default: None
Description: ■ Download customized font using the function number of n, m. n Function ( Select download area )
■
1 m
65
Select extended charater area 0x80 ~ 0xFF
Function ( Select font type )
Select customized font A ( 12x24 )
66
67
Select customized font B ( 9x17 )
Select customized font C ( 9x24 )
This command defines the customized font using the number of datas specified font size.
Font type font A font B
Font size
6144 bytes
4352 bytes font C 6144 bytes
Remarks: ■ The customized font can be selected by function BS M.
Differences: None
Rev. 1.00
BIXOLON
SRP-F310/312
- 133 -
Function:
Code:
Read customized font
ASCII BS
BS F R
F R n m
Range:
Hex 08
Decimal
14 ≤ n ≤ 255
08
46
70
65 ≤ m ≤ 67 ( m = 65, 66 ,67)
52
82 n n m m
Default: None
Description: ■ Read customized font using the function number of n, m. n Function ( Select download area )
1 m
65
66
67
Select extended charater area 0x80 ~ 0xFF
Function ( Select font type )
Select customized font A ( 12x24 )
Select customized font B ( 9x17 )
Select customized font C ( 9x24 )
■
This command can read the customized font using the number of datas specified font size.
Font type font A
Font size ( 1 character size )
48 bytes font B font C
34 bytes
48 bytes
Remarks: ■ The customized font can be selected by function BS M.
Differences: None
Rev. 1.00
BIXOLON
SRP-F310/312
- 134 -
Function:
Code:
Clear( Erase ) customized font
ASCII BS
BS F C
F C n m
Range:
Hex 08
Decimal
14 ≤ n ≤ 255
08
46
70
65 ≤ m ≤ 67 ( m = 65, 66 ,67)
43 n
67 n m m
Default: None
Description: ■ Erase customized font using the function number of n, m. n Function ( Select download area )
1 m
65
66
67
Select extended charater area 0x80 ~ 0xFF
Function ( Select font type )
Select customized font A ( 12x24 )
Select customized font B ( 9x17 )
Select customized font C ( 9x24 )
Remarks:
■
The customized font can be selected by function BS M.
Differences: None
Rev. 1.00
BIXOLON
SRP-F310/312
- 135 -
BS F I
Function:
Code:
Transmit customized font
ASCII BS F I n
Hex 08 46 49 n
Range:
Default:
Decimal
None n = 1, 49
08 70 73 n
Description:
■ nTransmit customized font information specified.
Hexadecimal
Header 5FH
Data 30H,31H
NUL 00H data
D1
D2
Customized font type
ASCII font A ( 12x24 )
ASCII font B ( 9x17 )
Decimal
95
48,49
0
D3 ASCII font C ( 9x24 )
D4 Reserved
D5
D6
Extended font A ( 12x24 )
Extended font B ( 9x17 )
D7 Extended font C ( 9x24 )
D8 Reserved
■
■
When return value data is 30H,customized font is not installed.
When return value data is 31H,customized font is installed.
Remarks: ■ The customized font can be selected by function BS M.
Differences: None
Rev. 1.00
BIXOLON
Amount of data
SRP-F310/312
- 136 -
SRP-F310/312
BS M
Function:
Code:
Select device font type
ASCII
0
BS
Off/On
Off
On
M n m
Hex
00
01
Decimal
0
1
Range:
Default:
Hex
Decimal
65 ≤ m ≤ 67 ( m = 65,66,67) n = 0
08
08
4D
77 n n m m
Description:
■
This command selects print mode(s) with bits having following meanings:
Bit Function
Resident ASCII font selected
Customized ASCII font selected
1
Off
On
00
02
0
2
Resident codepage font selected
Customized character font selected m
65
66
67
Function ( Select font type )
Font A (12x24)
Font B (9x17)
Font C (9x24)
■
The printer supports 3 font types by selecting m function.
Remarks:
■
The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Differences: None
Rev. 1.00
BIXOLON - 137 -
BS V
Function :
Code :
Select cut mode and cut paper
ASCII BS V
①
②
Hex 08 56
Decimal 08 86
ASCII BS V
Hex 08 56 m m m m m n n
Range:
Default:
Decimal 08 86 m
① m=0, 1, 48, 49 ② m=65, 66, 0 ≤ n ≤ 255
None n
Description : This command cuts paper in the specified mode as follows.
Remarks : For ①
■ If an auto cutter is not provided, this command is ignored command is executed.
For ②
■
■
When n = 0, the mechanism feeds the paper to the cutting position and cuts it.
If an auto cutter is not provided, the mechanism only feeds the paper for specified amount.
Rev. 1.00
BIXOLON
SRP-F310/312
- 138 -
SRP-F310/312
■ Vertical motion unit is used for calculating a paper feed amount. m Function
①
0,48
1,49
Executes a full cut (cuts the paper completely)
Executes a partial cut (one point left uncut)
②
65
66
Feeds paper to (cutting position + n × vertical motion unit) and executes a full cut(cuts the paper completely)
Feeds paper to (cutting position + n × vertical motion unit) and executes a partial cut(one point left uncut)
■
Cutting mode is changed only by setting MSW5-1.
Differences: None
Rev. 1.00
BIXOLON - 139 -
SRP-F310/312
Function :
Code :
BS W D
Define watermark image
ASCII BS W D n [xL xH yL d1...dk]1... [xL xH yL d1...dk]n
Range:
Hex 08 57 44 n [xL xH yL d1...dk]1... [xL xH yL d1...dk]n
Decimal
1 ≤ n ≤ 255
08 87 68 n [xL xH yL d1...dk]1... [xL xH yL d1...dk]n
1 ≤ (xL + xH ×256) ≤ 1023 (0 ≤ xL ≤ 255, 0 ≤ xH ≤ 3)
1 ≤ (yL + yH ×256) ≤ 288 (0 ≤ yL ≤ 255, yH=0,1)
0 ≤ d ≤ 255
Default: k = (xL + xH × 256) × (yL + yH × 256) × 8
None
Description :
■
This command defines the watermark image in the watermark memory.
• n denotes the number of the watermark being defined.
•
•
•
(xL, xH) and (yL, yH) set the number of dots in the horizontal and vertical directions to [(xL + xH × 256) x 8] and
[(yL + yH × 256) x 8] respectively for the watermark image. d specifies the defined data (column format).
When this command is entered, all watermark images previously defined are removed from the watermark memory.
Rev. 1.00
BIXOLON - 140 -
SRP-F310/312
Remarks : ■
■
■
After completion of this command, the printer executes a software reset to restore the settings as when turned on.
The watermark image is selected by BS W E.
During the execution of this command, paper feed button, LSB and real time functions will not operate.
• Watermark image data and print result are as follows: d1 dY+1 …
.
.
.
MSB
LSB
MSB d2 dY+2 … dk-2
LSB
.
.
.
.
.
.
MSB
… dk-1
LSB
MSB
■
LSB
The capacity of watermark memory area is 256KB.
Differences: None
Rev. 1.00
BIXOLON - 141 -
SRP-F310/312
Select watermark printing function
ASCII BS W E n
BS W E
Function :
Code :
Hex
Decimal
0 ≤ n ≤ 255
08 57 45 n
08 87 69 n
Range:
Default: n = 0
Description :
■
When n = 0 then watermark function is disabled.
■ n is assigned to each watermark image to be stored in download order by BS W D.
■
■
■
This command has no effect with watermark image not defined in advance.
In reverse mode, the watermark image is reversed with printing data. n is the number of the watermark image to enable.in case enabled watermark images exist already,the lastest
■ enabled watermark image wll be printed.
Vertical dot density and horizontal dot density specified as follows:
DPI : Dots per Inch (25.4mm)
Remarks : None
Differences: None
Model Vertical Dot Density (DPI)
SRP-F310 180
SRP-F312 203
Horizontal Dot Density (DPI)
180
203/2
Rev. 1.00
BIXOLON - 142 -
SRP-F310/312
BS ^ T
Function :
Code :
Set Last Status Back(LSB) time
ASCII BS ^ T n
Hex
Decimal
0 < n < 30
08
08
5E
94
54
84 n n
Range:
Default: n = 5
Description :
■
Set the check time interval to change the status of printer.
■
■
If there is any change comparing new status value to old status value,new status value will be stored in LSB buffer.
When the printer status changes, new status value will not be sent to host but be stored in LSB buffer.
■
The printer processor checks buffer periodically. If there is any change on status value, latest status value will be sent
to the host.
Remarks :
■ The LSB(Last Status Back) set time is [n x 100ms] and the default time is 500 ms.
•
Differences: None
If n is smaller than 1 or greater than 29, the LSB(Last Status Back) time is set to defaut[5 x 100ms].
Rev. 1.00
BIXOLON - 143 -
SRP-F310/312
BS DC1 % (fn = 1)
Function: Select
Code: ASCII BS DC1 % fn n
Hex
Decimal
0 ≤ n ≤ 2
08
08
11 25 01 n
17 37 01 n
Range:
Default: n = 0
Description:
■
If the value of n is 1,the printer enter the BIL(Bixolon Interactive Linker) mode. If the button of BIL(Bixolon Interactive
■
Linker) is pressed,the printer transmits specified key data to host automatically.
the button of BIL(Bixolon Interactive Linker) information consist of [Header ~ NULL] data as shown below:
Hexadecimal Decimal Amount of data
Header
Key data
NUL
30H ~ 39H 48 ~ 57
■
Select BIL mode using the function number of n.
n Function
1~4
5
Reserved
BIL disable
BIL enable
Remarks:
6
None
Differences: None
1 byte
Rev. 1.00
BIXOLON - 144 -
SRP-F310/312
Function:
Code:
Select reverse printing function
ASCII BS
BS DC1 % (fn = 3)
DC1 % fn n
Hex
Decimal
0 ≤ n ≤ 2
08
08
11 25 03 n
17 37 03 n
Range:
Default: n = 0
Description:
■
When the printer receives Reverse Printing Start command (n = 1), the data will be stored in receive buffer until it
■ receives Reverse Printing End command (n = 2).
When the printer receives Reverse Printing End (n = 2), the data will be printed upside down compared to standard
■ mode.
After printing data, the printers will return to standard mode automatically.
■ Select reverse printing mode using the function number of n.
n Function
1 Starts reverse printing mode
Ends the reverse mode and prints the data in reverse.
Remarks:
2
None
Differences: None
Rev. 1.00
BIXOLON - 145 -
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project