SRP-270

SRP-270
Command Manual
SRP-270
Impact Printer
Rev. 1.01
http://www.samsungminiprinters.com
SRP-270
■ Table of Contents
1. Notice.......................................................................................................................... 3
2. Control Commands List ............................................................................................ 3
2-1 EPSON Mode ......................................................................................................... 3
2-2 CITIZEN Mode........................................................................................................ 4
2-3 STAR Mode ............................................................................................................ 4
3. Control Commands Details....................................................................................... 6
3-1 Command Notation................................................................................................. 6
3-2 Explanation of Terms.............................................................................................. 6
3-3 Control Commands Details..................................................................................... 6
Rev. 1.01
-2-
SRP-270
1. Notice
This Control Commands Manual contains information on the protocol and functions of all
control commands that can be used with this printer (SRP-270).
2. Control Commands List
2-1 EPSON Mode
Control code
<HT>
<LF>
<CR>
<DLE> <EOT> n
<DLE> <ENQ> n
<ESC> <SP> n
<ESC> ! n
<ESC> % n
<ESC> & y c1 c2 ..
<ESC> * m nL nH ..
<ESC> - n
<ESC> 2
<ESC> 3 n
<ESC> <
<ESC> = n
<ESC> ? n
<ESC> @
<ESC> D n1 ~ nK
<ESC> E n
<ESC> G n
<ESC> J n
<ESC> K n
<ESC> R n
<ESC> U n
<ESC> a n
<ESC> c 3 n
<ESC> c 4 n
<ESC> c 5 n
<ESC> d n
<ESC> p m t1 t2
<ESC> t n
<ESC> r n
<ESC> m
<ESC> { n
<ESC> e n
<GS> I n
<GS> V m
<GS> V m n
<GS> a n
<GS> r n
Rev. 1.01
Hexadecimal code
09
0A
0D
10 04 n
10 05 n
1B 20 n
1B 21 n
1B 25 n
1B 26 y c1 c2
1B 2A m nL nH
1B 2D n
1B 32
1B 33 n
1B 3C
1B 3D n
1B 3F n
1B 40
1B 44 … 00
1B 45 n
1B 47 n
1B 4A n
1B 4B n
1B 52 n
1B 55 n
1B 61 n
1B 63 33 n
1B 63 34 n
1B 63 35 n
1B 64 n
1B 70 m t1 t2
1B 74 n
1B 72 n
1B 6D
1B 7B n
1B 65 n
1D 49 n
1D 56 m
1D 56 m n
1D 61 n
1D 72 n
Function
Horizontal tab
Print and line feed
Print and carriage return
Real-time status transmission
Real-time request to printer
Set right-side character spacing
Select print modes
Select/Cancel user-defined character set
Define user-defined characters
Select bit-image mode
Turn underline mode on/off
Select default line spacing
Set line spacing
Return home
Set peripheral device
Cancel user-defined characters
Initialize printer
Set horizontal tab position
Turn emphasized mode on/off
Turn double-strike mode on/off
Print and feed paper
Print and Reverse feed
Select an international character set
Turn unidirectional printing mode
Select justification
Select paper sensor to output paper end signals
Select paper sensor to stop printing
Enable/Disable panel button
Print and feed n lines
Generate pulse
Select character code table
Select print color
Execute partial cut
Turn on/off upside-down printing mode
Print and reverse feed n lines
Transmit printer ID
Select cut mode and cut paper
Enable/Disable Automatic status back
Transmit status
-3-
SRP-270
2-2 CITIZEN Mode
Control code
<FF> "n"
<LF>
<SO>
<SI>
<DC1>
<DC2>
<DC3>
<CAN>
<ESC> "P" <0>
<ESC> "P" <1>
<ESC> "-" "n"
<ESC> "1"
<ESC> "2"
<ESC> "C" "n"
<ESC> "f" "1"
<SUB>
<FS>
<ESC><BEL> n1 n2
Hexadecimal code
0C + n
OA
0E
0F
11
12
13
18
1B, 50, 00
1B, 50, 01
1B, 2D, n
1B, 31
1B, 32
1B, 43, n
1B, 66, 01
1A
1C
1B, 07, n1, n2
<BEL>
07
Function
"n" -lines paper feed command
Paper feed command
Enlarged character command
Normal character command
Initial set command
Inverted character command
Red color print command
Clear command
Paper partial cut command
Paper partial cut command
Underline command
1/9 inch paper feed preset command
2/9 inch paper feed preset command
Page length set command
Form feed command
Second drawer drive command
First drawer quick drive command
Drive pulse setting command for the first
drawer
First drawer drive command
2-3 STAR Mode
Control code
<ESC> "C" n
<ESC> "R" n
<ESC> "M"
<SO>
<SI>
<DC2>
<DC4>
Hexadecimal code
1B 43 n
1B 52 n
1B 4D
0E
0F
12
14
<ESC> "W" "1"
<ESC> "W" <1>
<ESC> "W" "0"
<ESC> "W" <0>
<ESC> "4"
<ESC> "5"
<ESC> "E"
<ESC> "F"
1B 57 31
1B 57 01
1B 57 30
1B 57 00
1B 34
1B 35
1B 45
1B 46
<ESC> "a" n
1B 61 n
Rev. 1.01
Function
Set page length at n lines
Select international character set.
Select 9×7(Half dots) character size
Select expanded character mode
Select upside-down
Cancel upside-down character
Cancel expanded character mode
(Default setting)
Select expanded character mode
Cancel expanded character mode
(Default setting)
Red color print selection
Red color print deselection
Emphasized print mode selection
Emphasized print mode deselection
(Default setting)
Feed paper n lines
-4-
SRP-270
Control code
<ESC><BEL>n1 n2
Hexadecimal code
1B 07 n1 n2
<BEL>
07
<FS>
1C
<SUB>
1A
<EM>
19
<CAN>
<ESC> "@"
<ESC> "e" "0"
<ESC> "e" <0>
<ESC> "e" "1"
<ESC> "e" <1>
<ESC> U n
<ESC> - n
<ESC> "z" "1"
<ESC> "z" <1>
<FF>
<ESC> d <0>
<ESC> d <1>
<ESC> "-" "1"
<ESC> "-" <1>
<ESC> "-" "0"
<ESC> "-" <0>
<ESC> "e" "1"
<ESC> "e" <1>
<ESC> "e" "0"
<ESC> "e" <0>
<ESC> "f" "1"
<ESC> "f" <1>
<ESC> "f" "0"
<ESC> "f" <0>
18
1B 40
1B 65 30
1B 65 00
1B 65 31
1B 65 01
1B 55 n
1B 2D n
1B 7A 31
1B 7A 01
0C
1B 64 00
1B 64 01
1B 5F 31
1B 5F 01
1B 5F 30
1B 5F 00
1B 65 31
1B 65 01
1B 65 30
1B 65 00
1B 66 31
1B 66 01
1B 66 30
1B 66 00
Rev. 1.01
Function
Adjust drive pulse width for peripheral
unit(Default setting)
Deferred drive command "A" for peripheral
unit 1
Immediate drive command "B" for peripheral
unit 1
Immediate drive command for peripheral
unit 2
Immediate drive command for peripheral
unit 2
Cancel print data in buffer
Initialize printer
FEED switch valid
(Default setting)
FEED switch invalid
Set or Cancel uni-direction mode
Set or Cancel underline mode
Set 1/6 inch line feed
Page feed (form feed)
Partial cut
Partial cut
Select overline mode
Cancel overline mode
Set the control panel switch invalid
Set the control panel switch valid
Set the ON LINE switch invalid
Set the ON LINE switch valid
-5-
SRP-270
3. Control Commands Details
3-1 Command Notation
[Name]
[Format]
[Range]
[Description]
The name of the command.
The code sequence. ASCII Indicates the ASCII equivalents.
Hex indicates the hexadecimal equivalents.
Decimal indicates the decimal equivalents.
[ ] k indicates the contents of the [ ] should be repeated k times.
Gives the allowable ranges for the arguments.
Describes the function of the command.
3-2 Explanation of Terms
LSB
Least Significant Bit
3-3 Control Commands Details
HT
[Name]
[Format]
[Description]
LF
[Name]
[Format]
[Description]
CR
[Name]
[Format]
[Description]
Rev. 1.01
Horizontal tab.
ASCII
HT
Hex
09
Decimal
9
Moves the print position to the next horizontal tab position.
Print and line feed.
ASCII
LF
Hex
0A
Decimal
10
Prints the data in the print buffer and feeds one line based on the current
line spacing.
Print and carriage return.
ASCII
CR
Hex
0D
Decimal
13
- This command prints the data in the print buffer and does not feed the
paper.
- Sets the print starting position to the beginning of the line.
-6-
SRP-270
DLE EOT n
[Name]
[Format]
[Range]
[Description]
Real-time status transmission.
ASCII
DLE
EOT
n
Hex
10
04
n
Decimal
16
4
n
1 ≤n ≤4
Transmits the selected printer status specified by n in real-time, according
to the following parameters :
n = 1 : Transmit printer status.
n = 2 : Transmit off-line status.
n = 3 : Transmit error status.
n = 4 : Transmit paper roll sensor status.
n = 1 : Printer status
Bit
0
1
2
3
4
5
6
7
Off/On
Off
On
Off
On
Off
On
On
Off
On
Off
Hex
00
02
00
04
00
08
10
00
20
00
Decimal
0
2
0
4
0
8
16
0
32
0
Function
Not used. Fixed to Off.
Not used. Fixed to On.
Drawer open/close signal is LOW (connector pin 3).
Drawer open/close signal is HIGH (connector pin 3).
On-Line
Off-Line
Not used. Fixed to On.
Not waiting for on-line recovery.
Waiting for on-line recovery.
Undefined.
Not used. Fixed to Off.
n = 2 : Off-line status
Bit
0
1
2
3
4
5
6
7
Off/On
Off
On
Off
Hex
00
02
00
Decimal
0
2
0
On
On
Off
On
Off
On
Off
08
10
00
20
00
40
00
8
16
0
32
00
64
0
Rev. 1.01
Function
Not used. Fixed to Off.
Not used. Fixed to On.
Undefined.
Paper is not being fed by using the PAPER FEED
button.
Paper is being fed by the PAPER FEED button.
Not used. Fixed to On.
No paper-end stop.
Printing stops due to paper end.
No error.
Error occurs.
Not used. Fixed to Off.
-7-
SRP-270
n = 3 : Error status
Bit
0
1
2
3
4
6
7
Off/On
Off
On
Off
On
On
Off
On
Off
Hex
00
02
00
04
10
00
40
00
Decimal
0
2
0
4
16
0
64
0
Function
Not used. Fixed to Off.
Not used. Fixed to On.
No mechanical error.
Mechanical error occurred.
Undefined.
Not used. Fixed to On.
No auto-recoverable error.
Auto-recoverable error has occurred.
Not used. Fixed to Off.
Bit 2 :
Mechanical errors include home position, carriage sensor, and slip ejection
errors.
Bits 2 & 3 :
If these errors occur due to paper jams or the like, it is possible to recover by
correcting the cause of the error and executing ELE ENQ n(1 ≤n ≤2). If an
error due to a circuit failure (e.g. broken wire) occurs, it is impossible to
recover.
Bit 6 :
If the print head temperature becomes high, bit 6 is transmitted until the print
head temperature drops sufficiently. The printer automatically recovers from
this error.
n = 4 : Continuous paper sensor status
Bit
0
1
2
3
4
5
6
7
Off/On
Off
On
Off
On
Off
On
On
Off
On
On
On
Off
DLE ENQ n
[Name]
[Format]
[Range]
[Description]
Rev. 1.01
Hex
00
02
00
04
00
08
10
00
20
00
40
00
Decimal
0
2
0
4
0
8
16
0
32
0
64
0
Function
Not used. Fixed to Off.
Not used. Fixed to On.
Paper roll end sensor. Paper adequate.
Paper roll end sensor. Paper end.
Paper roll end sensor. Paper adequate.
Paper roll end sensor. Paper end.
Not used. Fixed to On.
Paper roll end sensor. Paper present.
Paper roll end sensor. No paper.
Paper roll end sensor. Paper present.
Paper roll end sensor. No paper.
Not used. Fixed to Off.
Real-time request to printer.
ASCII
DLE
ENQ
n
Hex
10
05
n
Decimal
16
5
n
1 ≤n ≤2
Recovers from an error after clearing the receive and print buffers.
This command is available only with a serial interface, and is ignored with
a parallel interface.
-8-
SRP-270
ESC SP n
[Name]
[Format]
[Range]
[Description]
ESC ! n
[Name]
[Format]
[Range]
[Description]
Set right-side character spacing.
ASCII
ESC
SP
n
Hex
1B
20
n
Decimal
27
32
n
0 ≤n ≤255
Sets the character spacing for the right side of the character to n/160
inches.
Select print mode(s).
ASCII
ESC
!
n
Hex
1B
21
n
Decimal
27
33
n
0 ≤n ≤255
Selects print mode(s) using n as follows.
Bit
0
Off/On
Hex
Decimal Function
Off
00
0
Character font(9 ×9) selected.
On
01
1
Character font(9 ×7) selected.
1,2
Undefined.
3
Off
00
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
Undefined.
7
Off
00
0
Underline mode not selected.
On
80
128
Underline mode selected.
* Determine the values of n by adding the value of all the characteristics
you want to select.
ESC % n
[Name]
[Format]
[Range]
[Description]
[Notes]
[Default]
Rev. 1.01
Select / Cancel user-defined character set.
ASCII
ESC
%
n
Hex
1B
25
n
Decimal
27
37
n
0 ≤n ≤255
Selects or cancels the user-defined character set.
When the Least Significant Bit(LSB) is 0, the user-defined character set is
canceled and the internal character set is enabled.
When the LSB is 1, the user-defined character set is selected.
The user-defined character and the downloaded bit image cannot be
defined simultaneously.
n=0
-9-
SRP-270
ESC & y c1 c2 [x1 d1…d(y X x1)]… [xk d1… d(yx X xk)]
[Name]
Define user-defined characters.
[Format]
ASCII ESC & n y c1 c2[x1 d1…d(y X x1)]… [xk d1… d(yx X xk)]
Hex
1B 26 n y c1 c2[x1 d1…d(y X x1)]… [xk d1… d(yx X xk)]
Decimal 27 38 n y c1 c2[x1 d1…d(y X x1)]… [xk d1… d(yx X xk)]
[Range]
y = 2, 32 ≤c1 ≤c2 ≤126
0 ≤x ≤12 (9x9 font)
0 ≤x ≤9 (7x9 font)
0 ≤d1 … d(y X x) ≤255
[Description] Defines user-defined characters.
- y specifies the number of bytes in the vertical direction.
- c1 specifies the beginning character code for the definition,
and c2 specifies the final code. For only one character, use c1 = c2.
- The allowable character code range is from decimal code 32 to 126.
The maximum number of user-define character is 95.
- x specifies the number of dots in the horizontal direction.
- d is the dot data for the characters. The dot pattern is on the horizontal
direction from the left side. Any remaining dots on right side are blank.
- The number of bytes required to download a character definition for one
character is “y” X “x”.
- In the definition data, a “1” represents a dot that is to be printed, and
a “0” represents a dot that is not to be printed.
- Independent downloaded character definitions are possible for each font.
The font is selected characters are cleared in the following circumstance.
1. When “ESC @” is executed
2. When deleted by “ESC ?”
3. When printer is reset or turned off
ESC * m nL nH d1…dk
[Name]
Select bit-image mode.
[Format]
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
[Description] 0 ≤nL ≤255
0 ≤nH ≤1
0 ≤d ≤255
Selects a bit-image mode using m for the number of dots specified by nL
and nH.
m
No. Vertical Dots
0
1
8
8
Rev. 1.01
Horizontal Direction
Dot Density
Adjacent dot
Single Density
Permitted
Double Density
Prohibited
- 10 -
Maximum number of dots
180
360
SRP-270
- The nL and nH indicate the number of dots of the bit image in the horizontal direction.
The number of dots is calculated by nL + nH x 256.
- If the bit-image data input exceeds the number of dots to be printed on a line, the excess
data is ignored.
- d indicates the bit-image data. Set a corresponding bit to 1 to print a dot or to 0 not to
print a dot.
- The relationship between the image data and the dots to be printed is as follows.
ESC - n
[Name]
[Format]
[Range]
[Description]
[Default]
Turn underline mode on / off.
ASCII
ESC
n
Hex
1B
2D
n
Decimal
27
45
n
n = 0, 1, 48, 49
Turns underline mode on or off, based on the following values of n :
n=0
n
0, 48
0, 49
ESC 2
[Name]
[Format]
[Description]
ESC 3 n
[Name]
[Format]
[Range]
[Description]
[Default]
Rev. 1.01
Function
Turns off underline mode.
Turns on underline mode.
Select default line spacing.
ASCII
ESC
2
Hex
1B
32
Decimal
27
50
Sets the line spacing to 1/6-inch line spacing.
Set line spacing
ASCII
ESC
3
n
Hex
1B
33
n
Decimal
27
51
n
0 ≤n ≤255
Sets the line spacing to [n X vertical or horizontal motion unit] inches.
n = 24
- 11 -
SRP-270
ESC <
[Name]
[Format]
[Description]
ESC = n
[Name]
[Format]
[Range]
[Description]
[Default]
Bit
0
1,2
ESC ? n
[Name]
[Format]
[Range]
[Description]
ESC @
[Name]
[Format]
[Range]
[Description]
Return home.
ASCII
ESC
<
Hex
1B
3C
Decimal
27
60
Moves the print head to the standby position.
Select peripheral device.
ASCII
ESC
=
n
Hex
1B
3D
n
Decimal
27
61
n
0 ≤n ≤253
Selects device to which host computer sends data, using n as follows :
n=1
Off/On
Off
On
-
Hex
00
01
-
Decimal
0
1
-
Function
Printer Disabled.
Printer Enabled.
Undefined.
Cancel user-defined characters.
ASCII
ESC
?
n
Hex
1B
3F
n
Decimal
27
63
n
32 ≤n ≤126
Cancels user-defined characters.
Initialize printer.
ASCII
ESC
@
Hex
1B
40
Decimal
27
64
32 ≤n ≤126
Clears the data in the print buffer and resets the printer mode to the mode
that was in effect when the power was turned on.
ESC D n1… nk NUL
[Name]
Set horizontal tab positions.
[Format]
ASCII
ESC
D
n1… nk NUL
Hex
1B
44
n1… nk NUL
Decimal
27
68
n1… nk NUL
[Range]
1 ≤n ≤255
0 ≤k ≤32
[Description] Sets horizontal tab positions.
* n specifies the column number for setting a horizontal tab position from the beginning
of the line.
* k indicates the total number of horizontal tab positions to be set.
Rev. 1.01
- 12 -
SRP-270
ESC E n
[Name]
[Format]
Turn emphasized mode on / off.
ASCII
ESC
E
n
Hex
1B
45
n
Decimal 27
69
n
[Range]
0 ≤n ≤255 (Only the lowest bit of n is enabled)
[Description] Turns emphasized mode on or off.
* When the LSB of n is 0, emphasized mode is turned off.
* When the LSB of n is 1, emphasized mode is turned on.
ESC G n
[Name]
[Format]
Turn on / off double-strike mode.
ASCII
ESC
G
n
Hex
1B
47
n
Decimal 27
71
n
[Range]
0 ≤n ≤255
[Description] Turns double-strike mode on or off.
* When the LSB of n is 0, double-strike mode is turned off.
* When the LSB of n is 1, double-strike mode is turned on.
ESC J n
[Name]
[Format]
[Range]
[Description]
ESC K n
[Name]
[Format]
[Range]
[Description]
ESC R n
[Name]
[Format]
[Range]
[Description]
[Default]
Rev. 1.01
Print and feed paper.
ASCII
ESC
G
n
Hex
1B
4A
n
Decimal 27
74
n
0 ≤n ≤255
Prints the data in the print buffer and feeds the paper n X vertical or
horizontal motion unit.
Print and reverse feed.
ASCII
ESC
K
n
Hex
1B
4B
n
Decimal 27
75
n
0 ≤n ≤255
Prints the data in the print buffer and feeds the paper n X vertical or
horizontal motion unit in the reverse direction.
Select an international character set.
ASCII
ESC
R
n
Hex
1B
52
n
Decimal
27
82
n
0 ≤n ≤10
Selects an international character set in from the following table.
n=0
- 13 -
SRP-270
n
0
1
2
3
4
Character set
U.S.A
France
Germany
U.K
Denmark 1
n
5
6
7
9
10
Character set
Sweden
Italy
Spain
Norway
Denmark 2
ESC U n
[Name]
[Format]
Turn on / off unidirectional printing mode.
ASCII
ESC
U
n
Hex
1B
55
n
Decimal
27
85
n
[Range]
32 ≤n ≤255
[Description] Turns unidirectional printing mode on or off.
* When the LSB of n is 0, turns off unidirectional printing mode.
* When the LSB of n is 1, turns on unidirectional printing mode.
ESC a n
[Name]
[Format]
[Range]
[Description]
Select justification.
ASCII
ESC
a
n
Hex
1B
61
n
Decimal
27
97
n
0 ≤n ≤2, 48 ≤n ≤50
Aligns all the data in one line to the specified position.
n selects the type of justification as follows.
n
0, 48
1, 49
2, 50
Justification
Left justification
Centering
Right justification
ESC c 3 n
[Name]
[Format]
Select paper sensor(s) to output paper end signals.
ASCII
ESC
c
3
n
Hex
1B
63
33
n
Decimal
27
99
51
n
[Range]
0 ≤n ≤255
[Description] Selects the paper sensor(s) to output paper end signals.
[Default]
This command is available only with a parallel interface and is ignored with
serial interface.
* Each bit of n is used as follows.
* This command is available only with a parallel interface and is ignored with
a serial interface.
Bit
0
1,2
Rev. 1.01
Off/On
Off
On
-
Hex
00
01
-
Decimal
0
1
-
- 14 -
Function
Paper roll end sensor disable.
Paper roll end sensor enable.
Undefined.
SRP-270
ESC c 5 n
[Name]
[Format]
Enable / Disable panel button.
ASCII
ESC
c
3
n
Hex
1B
63
35
n
Decimal
27
99
53
n
[Range]
0 ≤n ≤255
[Description] Enables or disables the panel button.
* When the LSB of n is 0, the panel buttons are enabled.
* When the LSB of n is 1, the panel buttons are disabled.
ESC d n
[Name]
[Format]
[Range]
[Description]
ESC e n
[Name]
[Format]
[Range]
[Description]
ESC m
[Name]
[Format]
[Description]
Print and feed n lines.
ASCII
ESC
d
n
Hex
1B
64
n
Decimal
27
100
n
0 ≤n ≤255
Prints the data in the print buffer and feeds n lines.
Print and reverse feed n lines.
ASCII
ESC
e
n
Hex
1B
65
n
Decimal
27
101
n
0 ≤n ≤2
Prints the data in the print buffer and feeds n lines in the reverse direction.
Executes partial cut.
ASCII
ESC
m
Hex
1B
6D
Decimal
27
109
Executes partial cut with one point uncut.
ESC p m t1 t2
[Name]
Generate pulse.
[Format]
ASCII
ESC
p
m t1 t2
Hex
1B
70
m t1 t2
Decimal
27
112
m t1 t2
[Range]
m = 0, 1, 48, 49
0 ≤t1 ≤255
0 ≤t2 ≤255
[Description] Outputs the pulse specified by t1 and t2 to connector pin m as follows.
m
0, 48
1, 49
Rev. 1.01
Connector pin
Drawer kick-out connector pin 2
Drawer kick-out connector pin 5
- 15 -
SRP-270
ESC r n
[Name]
[Format]
[Range]
[Description]
Select print color.
ASCII
ESC
r
n
Hex
1B
72
n
Decimal
27
114
n
n = 0, 1, 48, 49
Selects a print color, using n as follows.
n
0, 48
1, 49
ESC t n
[Name]
[Format]
[Range]
[Description]
n
0
2
3
4
5
19
Print color
Black
Red
Select character code table.
ASCII
ESC
t
n
Hex
1B
74
n
Decimal
27
116
n
0 ≤n ≤5, 254 ≤t1 ≤255
Selects a page n from the character code table.
Page
0 (PC437 {USA, standard Europe})
2 (PC850 {Multilingual})
3 (PC860 {Portuguese})
4 (PC863 {Canadian-French})
5 (PC865 {Nordic})
19 (PC858 {Euro})
ESC u n
[Name]
[Format]
Peripheral status.
ASCII
ESC
u
n
Hex
1B
75
n
Decimal
27
117
n
[Range]
n=0
[Description] Transmits the peripheral status (drawer).
After receiving this command, the printer transmits only 1 byte without
confirming the condition of the DSR signal.
Transmit data : 01H = drawer open.
00H = drawer closed.
* This command is available only with a serial interface, and is ignored with a parallel
interface.
Rev. 1.01
- 16 -
SRP-270
ESC { n
[Name]
[Format]
Turns on / off upside-down printing mode.
ASCII
ESC
{
n
Hex
1B
7B
n
Decimal
27
123
n
[Range]
0 ≤n ≤255
[Description] Turns upside-down printing mode on or off.
* When the LSB of n is 0, upside-down printing mode is turned off.
* When the LSB of n is 1, upside-down printing mode is turned on.
GS I n
[Name]
[Format]
[Range]
[Description]
n
1, 49
2, 50
3, 51
Transmit printer ID.
ASCII
GS
I
n
Hex
1D
49
n
Decimal
29
73
n
1 ≤n ≤3, 49 ≤n ≤51
Transmits the printer ID specified by n as follows :
Printer ID
Printer model ID
Type ID
ROM version ID
n=2, Type ID
Bit
Off/On
0
Off
1
Off
2, 3
4
Off
5, 6
7
Off
Hex
00
00
00
00
Specification
SRP-270 / SRP-270P
See table below.
ROM version
Decimal
0
0
0
0
ID (hexadecimal)
0DH
Function
Two-byte character code not supported.
Auto cutter not equipped.
Undefined.
Not used. Fixed to Off.
Undefined.
Not used. Fixed to Off.
[Notes]
* When DTR / DSR control is selected, the printer transmits only 1 byte after confirming
that the host is ready to receive data (DSR signal is SPACE).
If the host computer is not ready to receive data (DSR signal is MARK), the printer
waits until the host is ready. When XON / XOFF control is selected, the printer transmits
only 1 byte without confirming the condition of the DSR signal.
* The printer ID is transmitted when the data in the receiving buffer is developed.
Therefore, there maybe a time lag between receiving this command and transmitting the
status, depending on the receive buffer status.
GS V m n
[Name]
[Format]
[Range]
[Description]
Rev. 1.01
Feed paper for cutting position.
ASCII
GS
V
m
n
Hex
1D
56
m
n
Decimal
29
86
m
n
65 ≤m ≤66, 0 ≤n ≤255
Feed paper for cutting position as follows :
- 17 -
SRP-270
m
65
66
GS r n
[Name]
[Format]
[Range]
[Description]
Print mode
Feeds paper (cutting position + [nX(vertical motion unit)]), and cuts the
paper Partially.
Feeds paper (cutting position + [nX(vertical motion unit)]), and cuts the
paper partially.
Transmit status.
ASCII
GS
V
n
Hex
1D
72
n
Decimal
29
114
n
1 ≤n ≤2, 49 ≤n ≤50
Transmits the status specified by n as follows.
n
1, 49
2, 50
Print mode
Transmits paper sensor status.
Transmits drawer kick-out connector status.
Paper sensor status (n=1, 49)
Bit
Off/On
Hex
Off
00
0
On
01
Off
00
1
On
02
Off
00
2
On
04
Off
00
3
On
08
4
Off
00
5, 6
7
Off
00
Decimal
0
1
0
2
0
4
0
8
0
0
Function
Paper roll end sensor : paper adequate.
Paper roll end sensor : paper end.
Paper roll end sensor : paper adequate.
Paper roll end sensor : paper end.
Paper roll end sensor : paper present.
Paper roll end sensor : no paper present.
Paper roll end sensor : paper present.
Paper roll end sensor : no paper present.
Not used. Fixed to Off.
Undefined.
Not used. Fixed to Off.
Bits 0 and 1 : The “paper roll end” detector is an option : on units that do not have this
detector, the “paper roll end” detector always indicates that paper
is present (bits 0 and i=1), whether or not it actually is.
Bit
0
1-3
4
5-6
7
Rev. 1.01
Off/On
Off
On
Off
Off
Hex
00
01
00
00
Decimal
0
1
0
0
- 18 -
Function
Drawer kick-out connector pin 3 is LOW.
Drawer kick-out connector pin 3 is HIGH.
Undefined.
Not used. Fixed to Off.
Undefined.
Not used. Fixed to Off.
Was this manual useful for you? yes no
Thank you for your participation!

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

Download PDF

advertisement