Esc gs y p, Esc gs y i – Star Micronics Line Thermal/Dot Printer User Manual
Page 159

Rev. 0.00
3-147
STAR Line Mode Command Specifications
ESC GS y P
[Name] Print QR code
[Code]
ASCII
ESC
GS
y
P
Hexadecimal
1B
1D
79
50
Decimal
27
29
121
80
[Defined Area]
Thermal
: -
Slip
: -
Validation
: -
[Initial Value]
Thermal
: -
Slip
: -
Validation
: -
[Function]
This command prints the bar code data.
When this command is received, the printer prints unprinted data, if unprinted data remains in the
image buffer, then prints the bar code.
Margins of more than 4 cells are required around the QR code. The user must ensure the margins.
• Bar codes to be printed should always be confirmed through an actual printout.
Four bytes ignored
ESC GS y I
[Name] Get QR code expansion information
[Code]
ASCII
ESC
GS
y
I
Hexadecimal
1B
1D
79
49
Decimal
27
29
121
73
[Defined Area]
Thermal
: -
Slip
: -
Validation
: -
[Initial Value]
Thermal
: -
Slip
: -
Validation
: -
[Function]
In expanding bar codes with the current setting using this command, information such as the size of
the generated image and errors is sent to the printer.
Therefore, it is possible to confirm whether printing is possible before actual printing, with this com-
mand.
If there is an error in the bar code expansion, the command is ignored even if the expansion com-
mand ESC GS y P is sent.
Also, if the following errors occur, “Error” information is sent to the printer.
• When an error occurs when generating the bar code by the combination of bar code settings
• When the generated bar code exceeds the printable size.
Transmission format:
n1 n2
Bar Code Information
0x0000
Error
0x0001 to 0xffff
Size of one side of generated bar code data (Units: Dots)
Send