POSBank A11 Standard, A11 Prime Command Manual

A11-Prime/Standard-E(Rev001)
A11 Standard/Prime
Command Manual
Table of Contents
1. Notice .................................................................................................................................................................................................................................. 3
2. Control Commands List in Alphanumeric Order ......................................................................................................................................................... 4
2-1 Command Description Items ......................................................................................................................................................................................... 6
2-2 Details of Control Commands ....................................................................................................................................................................................... 7
1. Notice
This document contains proprietary information of POSBANK 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, POSBANK 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 POSBANK Corporation. POSBANK 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 POSBANK 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.
2. Control Commands List in Alphanumeric Order
No.
Command
Function
No.
Command
Function
1
HT
Horizontal tab
26
ESC R
Specify an international character set
2
LF
Print and line feed
27
ESC S
Select standard mode
3
FF
Form feed (in page mode)
28
ESC T
Select print direction in page mode
4
CR
Print and carriage return
29
ESC V
Turn 90° clockwise rotation mode on/off
5
CAN
Cancel the print data in page mode
30
ESC W
Set print area in page mode
6
DLE EOT
Transmit real-time status
31
ESC \
Set relative print position
7
DLE DC4
Generate pulse at real-time
32
ESC a
Set position alignment
8
ESC SP
Set the character right space
33
ESC d
Print and feed n lines
9
ESC !
Set print mode
34
ESC i
Partial cut
10
ESC $
Set absolute print position
35
ESC m
Partial cut
11
ESC %
Select/cancel user-defined character set
36
ESC p
Generate pulse
12
ESC &
Define user-defined character set
37
ESC t
Select character code table
13
ESC *
Specify bit image mode
38
ESC v
Transmit paper sensor status
14
ESC -
Turn underline mode on/off
39
ESC {
Turn upside-down print mode on/off
15
ESC 2
Select default line spacing
40
FS p
Print NV bit image
16
ESC 3
Set line spacing
41
FS q
Define NV bit image
17
ESC =
Select peripheral device
42
GS !
Select character size
18
ESC ?
Cancel user-defined characters
43
GS $
Set absolute vertical print position in page mode
19
ESC @
Initialize printer
44
GS ( A
Execute test print
20
ESC D
Set horizontal tab positions
45
GS ( L GS 8 L
Select graphics data
21
ESC E
Turn emphasized mode on/off
46
GS ( k
Specify and print the symbol
22
ESC G
Turn double-strike mode on/off
47
GS *
Define downloaded bit image
23
ESC J
Print and feed paper
48
GS /
Print downloaded bit image
24
ESC L
Select page mode
49
GS :
Start/end macro definition
25
ESC M
Select character font
50
GS B
Turn white/black reverse print mode on/off
No.
Command
Function
51
GS H
Select print position of HRI characters
52
GS I
Transmit printer ID
53
GS L
Set left margin
54
GS V
Select cut mode and executes a partial cut
55
GS W
Set print area width
56
GS ^
Execute macro
57
GS a
Enable/Disable Automatic Status Back (ASB)
58
GS f
Select font for HRI characters
59
GS h
Set bar code height
60
GS k
Print bar code
61
GS r
Transmit status
62
GS v 0
Print raster bit image
63
GS w
Set bar code width
64
BS M
Select device font type
65
BS V
Select cut mode and executes a partial/full Cut
66
BS ^ P
Set power saving mode
67
SYN
Turn melody on/off
68
GS FF
Top of form of black paper
69
GS <
Mechanically initialize printer
70
GS A
Marked Paper Form Feed Position Corrent
71
GS ( F
Set black mark adjustment value
72
GS ( M
Save/Load black mark adjustment value Set black mark adjustment value auto-load when powering on
2-1 Command Description Items
Command
Function:
Command function outline
Code:
Command format expressed in ASCII, hexadecimal, and decimal codes
Range:
Argument value (Setting range) for the command
Default:
Initial argument value for the command
Description:
Detailed command function description
Remarks:
Additional information about using the command
Differences:
Variations depending on the printer model
2-2 Details of Control Commands
HT
Function:
Horizontal tab
Code:
ASCII
HT
Hex
09
Decimal
9
Range:
None
Default:
None
Description:
This command moves the print position to the next horizontal tab position. If the next horizontal tab position is not specified, this command will be void.
Remarks:
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
LF
Function:
Print and line feed
Code:
ASCII
LF
Hex
0A
Decimal
10
Range:
None
Default:
None
Description:
This command prints the data in the print buffer and feeds one line based on the current set line spacing in standard mode.
Remarks:
In page mode, the printer does not perform actual printing, but moving only the print position to the next line.
Differences:
None
FF
Function:
Form feed (in page mode)
Code:
ASCII
FF
Hex
0C
Decimal
12
Range:
None
Default:
None
Description:
This commands prints all data collected in the printer buffer In page mode. After completion of printing, the printer is returned to standard mode.
Remarks:
The printer is returned to standard mode after completion of printing.
This command works in page mode enabled by ESC L.
If the paper is positioned at the print starting position, this command is ignored, not performing actual paper feeding
operation.
Differences:
None
CR
Function:
Print and carriage return
Code:
ASCII
CR
Hex
0D
Decimal
13
Range:
None
Default:
None
Description:
This command prints the data. With auto line feed enabled, it performs printing and one line feeding same as LF.
Differences:
None
CAN
Function:
Cancel the print data in page mode
Code:
ASCII
CAN
Hex
18
Decimal
24
Range:
None
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
DLE EOT
Function:
Transmit real-time status
Code:
ASCII
DLE
EOT
n
Hex
10
04
n
Decimal
16 4 n
Range:
1 ≤ n ≤ 4
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
Transmit printer status
2
Transmit off-line status
3
Tranmit error status
4
Transmit paper roll sensor status
Printer transmits the following status
n=1: Printer status
Bit
Binary
Hex
Decimal
Status
0 0 00
0
Not used. Fixed to Off
1 1 02
2
Not used. Fixed to On
2
0
00
0
Drawer kick-out connector pin 3 i LOW
1
04
4
Drawer kick-out connector pin 3 is HIGH
3
0
00
0
Online 1 08
8
Offline 4 1
10
16
Not used. Fixed to On
5 0 00
0
Not used. Fixed to Off
6 0 00
0
Not used. Fixed to Off
7 0 00
0
Not used. Fixed to Off
n=2: Off-line status
Bit
Off/On
Hex
Decimal
Status
0
Off
00
0
Fixed 1 On
02
2
Fixed 2 Off
00
0
Cover is closed
On
04
4
Cover is open
3 Off
00
0
Paper is not being fed by using the paper FEED button
On
08
8
Paper is being fed by the paper FEED button
4
On
10
16
Fixed 5 Off
00
0
No paper-end stop
On
20
32
Printing is being stopped
6 Off
00
0
No error
On
40
64
Error has occurred
7
Off
00
0
Fixed
n=3: Error status
Bit
Binary
Hex
Decimal
Status
0 0 00
0
Not used. Fixed to Off
1 1 02
2
Not used. Fixed to On
2 0 00
0
Not used. Fixed to Off
3
0
00
0
No autocutter error
1
08
8
Autocutter error occurred
4 1 10
16
Not used. Fixed to On
5 0 00
0
Not used. Fixed to Off
6 0 00
0
Not used. Fixed to Off
7 0 00
0
Not used. Fixed to Off
n=4: paper sensor status
Bit
Binary
Hex
Decimal
Status
0 0 00
0
Not used. Fixed to Off
1 1 02
2
Not used. Fixed to On
2,3 0 00
0
Not used. Fixed to Off
4 1 10
16
Not used. Fixed to On
5,6
00
00
0
Paper end sensor: paper present
11
60
96
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
DLE DC4
Function:
Generate pulse at real-time
Code:
ASCII
DLE
DC4 n m
t
Hex
10
14 n m
t
Decimal
16
20 n m
t
Range:
n = 1, m=0,1, 1 ≤ t ≤ 8
Default:
None
Description:
Output the pulse specified by t to connector pin m as following:
m
Connector pin
0
Drawer kick-out connector pin 2
1
Drawer kick-out connector pin 5
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].
Remarks:
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
ESC SP
Function:
Set the character right space
Code:
ASCII
ESC
SP
n
Hex
1B
20
n
Decimal
27
32
n
Range:
0 ≤ n ≤ 255
Default:
n = 0
Description:
This command sets the size of space to right of character.
Right space = n × [horizontal motion units].
Remarks:
In a double width mode, the right space will be doubled.
Horizontal motion unit varies depending the printer model.
Differences:
Horizontal motion unit: 0.141mm(1/180 inch)
ESC !
Function:
Set print mode
Code:
ASCII
ESC ! n
Hex
1B
21
n
Decimal
27
33
n
Range:
0 ≤ n ≤ 255
Default:
n = 0
Description:
This command selects print mode(s) with bits having following meanings.
Bit
Off/On
Hex
Decimal
Function
0
Off
00
0
Character font A selected
On
01
1
Character font B selected
1,2
Off
00
0
Reserved
3
Off
0
0
Emphasized mode not selected
On
08
8
Emphasized mode selected
4
Off
00
0
Double-height mode not selected
On
10
16
Double-height mode selected
5
Off
00
0
Double-width mode not selected
On
20
32
Double-width mode selected
6
Off
00
0
Reserved
7
Off
00
0
Underline mode not selected
On
80
128
Underline mode selected
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
ESC $
Function:
Set absolute print position
Code:
ASCII
ESC $ nL
nH
Hex
1B
24
nL
nH
Decimal
27
36
nL
nH
Range:
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nH ≤ 255, 0 ≤ nL ≤ 255)
Default:
None
Description:
This command specifies the next print starting position in reference to the left edge of the print area. The printing start position is calculated using (nL + nH x 256) x (vertical or horizontal motion units).
Remarks:
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: 0.141mm(1/180 inch)
ESC %
Function:
Select/cancel user-defined character set
Code:
ASCII
ESC % n
Hex
1B
25
n
Decimal
27
37
n
Range:
0 ≤ n ≤ 255
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
ESC &
Function:
Define user-defined character set
Code:
ASCII
ESC
&
y c1 c2 [x1 d1 ... d(yx1)]... [xk d1 ... d(yxk)]
Hex
1B
26
y c1 c2 [x1 d1 ... d(yx1)]... [xk d1 ... d(yxk)]
Decimal
27
38
y c1 c2 [x1 d1 ... d(yx1)]... [xk d1 ... d(yxk)]
Range:
y = 3
32 ≤ c1 ≤ c2 ≤ 126 0 ≤ x ≤ 12 (Font A) 0 ≤ x ≤ 9 (Font B) 0 ≤ d ≤ 255 k = c2 – c1 + 1
Default:
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.
d1
d3
d5
d7
d9
d11
d13
MSB
LSB
d2
d4
d6
d8
d10
d12
d14
MSB
LSB
Differences:
None
ESC *
Function:
Specify bit image mode
Code:
ASCII
ESC * m
nL
nH
d1...dk
Hex
1B
2A m nL
nH
d1...dk
Decimal
27
42 m nL
nH
d1...dk
Range:
m = 0, 1, 32, 33
0 ≤ nL ≤ 255 0 ≤ nH ≤ 3 0 ≤ d ≤ 255
k = nL + nH × 256 [in case of m = 0, 1] k = (nL + nH × 256) × 3 [in case of m = 32, 33]
Default:
None
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:
DPI : Dots per Inch (25.4mm)
m
Mode
Number of dots in
vertical direction
Vertical dot
density (DPI)
Horizontal dot
density (DPI)
Number of bytes (k)
0
8-dot single-density
8
60
90
nL + nH x 256
1
8-dot double-density
8
60
180
nL + nH x 256
32
24-dot single-density
24
180
90
(nL + nH x 256) x 3
33
24-dot double-density
24
180
180
(nL + nH x 256) x 3
ESC –
Function:
Turn underline mode on/off
Code:
ASCII
ESC - n
Hex
1B
2D
n
Decimal
27
45
n
Range:
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
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
Function
0,48
Turns off underline mode
1,49
Turns on underline mode, set at 1-dot thick
2,50
Turns on underline mode, set at 2-dot thick
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
ESC 2
Function:
Select default line spacing
Code:
ASCII
ESC
2
Hex
1B
32
Decimal
27
50
Range:
None
Default:
None
Description:
This command sets the default line spacing The default line spacing is approximately 3.75 mm, which is equivalent to 30 dots.
Remarks:
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: 4.23 mm (30 dots)
ESC 3
Function:
Set line spacing
Code:
ASCII
ESC 3 n
Hex
1B
33
n
Decimal
27
51
n
Range:
0 ≤ n ≤ 255
Default:
Corresponding to the default line spacing defined by ESC 2
Description:
This command sets the line spacing using a following rule.
Line spacing = n x (vertical or horizontal motion units)
Remarks:
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:
Vertical unit
Horizontal unit
Max line spacing
0.0705mm (1/360 inch)
0.141mm (1/180 inch)
17.98mm
ESC =
Function:
Select peripheral device
Code:
ASCII
ESC = n
Hex
1B
3D
n
Decimal
27
61
n
Range:
1 ≤ n ≤ 3
Default:
None
Description:
This command selects the device to which the host computer communicates according to n as follows:
n
Function
1
Enables the printer
2
Disables the printer
3
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
ESC ?
Function:
Cancel user-defined characters
Code:
ASCII
ESC ? n
Hex
1B
3F
n
Decimal
27
63
n
Range:
32 ≤ n ≤ 126
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
ESC @
Function:
Initialize printer
Code:
ASCII
ESC
@
Hex
1B
40
Decimal
27
64
Range:
None
Default:
None
Description:
This command cancels conditions previously set and initializes the printer to the conditions having existed at power on.
Remarks:
The data in the printer buffer is cleared.
The 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
ESC D
Function:
Set horizontal tab position
Code:
ASCII
ESC
D
n1...nk
NUL
Hex
1B
44
n1...nk
00
Decimal
27
68
n1...nk
0
Range:
1 ≤ n ≤ 255 , 0 ≤ k ≤ 32
Default:
n = 8, 16, 24, 32, 40,....., 232, 240, 248
Description:
This command sets the horizontal tab position.
n defines the number of columns from the beginning of the line to the horizontal tab setting.
k denotes the number of horizontal tab positions to be set.
The horizontal tab position is stored as a value of [character width x n] measured form the beginning of the line.
Remarks:
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
ESC E
Function:
Turn emphasized mode on / off
Code:
ASCII
ESC E n
Hex
1B
45
n
Decimal
27
69
n
Range:
0 ≤ n ≤ 255
Default:
n = 0
Description:
This command turns emphasized mode on or off by toggling the least significant bit of n like following.
When the LSB of n is 0, emphasized mode is turned off.
When the LSB of n is 1, emphasized mode is turned on.
Remarks:
The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Differences:
None
ESC G
Function:
Turn double-strike mode on/off
Code:
ASCII
ESC G n
Hex
1B
47
n
Decimal
27
71
n
Range:
0 ≤ n ≤ 255
Default:
n = 0
Description:
This command turns double-strike mode on or off by toggling the least significant bit of n like following.
When the LSB of n is 0, emphasized mode is turned off.
When the LSB of n is 1, emphasized mode is turned on.
Remarks:
The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Differences:
None
Loading...
+ 97 hidden pages