Samsung Bixolon SRP-500 Command Manual

Command Manual
SRP-500
Inkjet Printer Rev. 1.00
Rev. 1.00
- 2 -
SRP-500
1. EPSON Mode (TM-U200)
n Command Description Hexadecimal 1 CR Print and carriage return 0D 2 HT Horizontal tab 09 3 LF Print and linefeed 0A 4 DLE EOT Transmit real-time status 10 04 5 DLE ENQ Real-time request to printer 10 05 6 ESC SP Set right-side character spacing 1B 20 7 ESC % Select/Cancel user defined characters 1B 25 8 ESC & Define user-defined characters 1B 26
9 ESC * Select bit-image mode 1B 2A 10 ESC ! Select print mode 1B 21 11 ESC - Turn underline mode on/off 1B 2D 12 ESC = Select peripheral device status 1B 3D 13 ESC 2 Select default line spacing 1/6 lpi 1B 32 14 ESC 3 Set line spacing 1B 33 15 ESC < Return home 1B 3C 16 ESC ? Cancel user defined characters 1B 3F 17 ESC @ Initialize printer 1B 40 18 ESC D Set horizontal positions 1B 44 19 ESC E Turn emphasized mode on/off 1B 45 20 ESC G Turn double-strike mode on/off 1B 47 21 ESC J Print and feed paper <n> vertical units 1B 4A 22 ESC R Select an international character set 1B 52 23 ESC U Turn unidirectional printing mode on/off 1B 55 24 ESC a Select justification 1B 61 25 ESC c 3 Select paper sensor to output paper end signal 1B 63 33 26 ESC c 4 Select paper sensor to stop printing 1B 63 34 27 ESC c 5 Enable/disable panel button 1B 63 35 28 ESC d Print and feed <n> line 1B 64 29 ESC g <0> Start macro record (For logo) 1B 67 00 30 ESC g <n> Execute macro (For logo) 1B 67 <n> 31 ESC m Execute partial cut 1B 6D 32 ESC p Generate pulse 1B 70 33 ESC r Select color 1B 72 34 ESC t Select character code table 1B 74 35 ESC v Transmit paper sensor status 1B 76 36 ESC { Turn upside-down printing mode on/off 1B 7B 37 GS ( A Execute test print 1B 28 41 38 GS I Transmit printer ID 1D 49 39 GS V Select cut mode and cut paper 1D 56 40 GS a Enable/disable Automatic Status Back (ASB) 1D 61 41 GS j Enable/disable Automatic Status Back (ASB) for ink 1D 6A 42 GS r Transmit status 1D 72
Rev. 1.00
- 3 -
SRP-500
2. STAR Mode (SP-320)
n Command Description Hexadecimal 1 BEL Deferred drive command “A” for peripheral unit 1 07 2 FF Page feed (Form feed) 0C 3 CR Print and linefeed (same as LF) 0D 4 SO Select expanded character mode 0E 5 SI Select upside-down 0F 6 DC2 Cancel upside-down character 12 7 DC4 Cancel expanded character mode (Default setting) 14 8 CAN Cancel print data in buffer 18 9 EM Immediate drive command for peripheral unit2 19
10 SUB Immediate drive command for peripheral unit 2 1A
11 ESC BEL Adjust drive pulse width for peripheral unit
(Default setting)
1B 07
12 ESC - Set or Cancel underline mode 1B 2D 13 ESC 4 Red color print selection 1B 34 14 ESC 5 Red color print deselection 1B 35 15 ESC @ Initialize printer 1B 40 16 ESC C Set page length at n lines 1B 43 17 ESC E Emphasized print mode 1B 45 18 ESC F Emphasized print mode deselection (Default setting) 1B 46 19 ESC M Select 9 x 7(Half dots) character size 1B 4D 20 ESC R Select international character set 1B 52 21 ESC U Set or cancel uni-direction mode 1B 55 22 ESC W 1
ESC W <1>
Select expanded character mode
1B 57 31 1B 57 01
23 ESC W 0
ESC W <0>
Cancel expanded character mode (Default setting)
1B 57 30 1B 57 00
24 ESC _ 1
ESC _ <1>
Select over-line mode
1B 5F 31 1B 5F 01
25 ESC _ 0
ESC _ <0>
Cancel over-line mode
1B 5F 30
1B 5F 01 26 ESC a Feed paper n lines 1B 61 27 ESC d 0 Partial cut 1B 64 30 28 ESC d 1 Partial cut 1B 64 31 29 ESC e 1
ESC e <1>
Set the control panel switch invalid
1B 65 31
1B 65 01 30 ESC e 0
ESC e <0>
Set the control panel switch valid
1B 65 30
1B 65 00 31 ESC f 1
ESC f <1>
Set the ON LINE switch invalid
1B 66 31
1B 66 01 32 ESC f 0
ESC f <0>
Set the ON LINE switch valid
1B 66 30
1B 66 00 33 FS Immediate drive command “B” for peripheral unit 1 1C
Rev. 1.00
- 4 -
SRP-500
3. CITIZEN Mode (iDP-3541)
n Command Description Hexadecimal 1 BEL First drawer drive command1 07 2 LF Paper feed command 0A 3 FF n “n”-lines paper feed command 0C n 4 SO Enlarged character command 0E 5 SI Normal character command 0F 6 DC1 Initial set command 11 7 DC2 Inverted character command 12 8 DC3 Red color print command 13
9 CAN Clear command 18 10 SUB Second drawer drive command 1A 11 ESC BEL Drive pulse setting command for the first drawer 1B 07 12 ESC - Underline command 1B 2D 13 ESC 1 1/9 inch paper feed preset command 1B 31 14 ESC 2 2/9 inch paper feed preset command 1B 32 15 ESC C Paper length set command 1B 43 16 ESC P <0> Paper partial cut command 1B 50 00 17 ESC P <1> Paper partial cut command 1B 50 01 18 FS First drawer quick drive command 1C 19 CR Printing ØD 20 ESC * n1 n2 Specifying the bit image mode 1B 2A n1 n2 21 ESC f <1> Form feed 1B 66 Ø1
Rev. 1.00
- 5 -
SRP-500
4. Control Commands Details
4-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.
4-2 Explanation of Terms
LSB
Least Significant Bit
4-3 Control Commands Details
HT
[Name] Horizontal tab [Format] ASCII HT
Hex 09
Decimal 10 [Description] Moves the print position to the next horizontal tab position. [Notes]
This command is ignored unless the next horizontal tab position has been set. Horizontal tab positions are set with ESC D. The default tab positions are at intervals of 8 characters (columns 9, 17, 25..) for the
font B (12 x 12).
[Reference] ESC D
LF
[Name] Print and line feed [Format] ASCII LF
Hex 0A
Decimal 10 [Description] Prints the data in the print buffer and feeds one line based on the
current line spacing. [Note] This command sets the print position to the beginning of the line. [Reference] ESC 2, ESC 3
Rev. 1.00
- 6 -
SRP-500
CR
[Name] Print and carriage return [Format] ASCII CR
Hex 0D
Decimal 13 [Description] This command prints the data in the print buffer and does not feed the
paper. [Note] Sets the print starting position to the beginning of the line [Reference] LF
DLE EOT n
[Name] Real-time status transmission [Format] ASCII DLE EOT n Hex 10 04 n Decimal 16 4 n [Range] 1 ≤ n ≤ 4 [Description] 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 [Notes]
This command should not be used within the data sequence of another command that
consists of 2 or more bytes. For example, If you attempt to transmit ESC 3 n to the printer, but DTR (DSR for the host computer) goes to MARK before n is transmitted and then DLE EOT 3 interrupts before n is received, the code <10>H for DLE EOT 3 is processed as the code for ESC 3 <10>H.
n = 1 : Printer status
Bit Off/On Hex Decimal Function
0 Off 00 0 Not used. Fixed to Off. 1 On 02 2 Not used. Fixed to On.
Off 00 0 Drawer kick-out signal is LOW (connector pin 3) 2 On 04 4 Drawer kick-out signal is HIGH (connector pin 3) Off 00 0 On-line. 3
On 08 8 Off-line. 4 On 10 16 Not used. Fixed to On. 5 Off 00 0 Not used. Fixed to Off. 6 Off 00 0 Not used. Fixed to Off. 7 Off 00 0 Not used. Fixed to Off.
Rev. 1.00
- 7 -
SRP-500
n = 2 : Off-line status
Bit Off/On Hex Decimal Function
0 Off 00 0 Not used. Fixed to Off. 1 On 02 2 Not used. Fixed to On. 2 Off 00 0 Cover is closed (front & rear)
On 04 4 Cover is open (front or rear)
Off 00 0
Paper is not being fed by using the paper feed button.
3
On 08 8 Paper is being fed by the paper feed button. 4 On 10 16 Not used.
Off 00 0 Fixed to On. 5
On 20 32 No paper-end stop.
Off 00 0 Printing stops due to paper end. 6
On 40 64 No error. Error occurs. 7 Off 00 0 Not used. Fixed to Off.
Bit 5 : On (printing stops due to paper-end) when printing stops due to paper-end detected
by the paper-end sensor or the paper near-end enabled by using the ESC c 4.
n = 3 : Error status
Bit Off/On Hex Decimal Function
0 Off 00 0 Not used. Fixed to Off. 1 On 02 2 Not used. Fixed to On.
Off 00 0 No mechanical error. 2
On 04 4 Mechanical error occurred.
Off 00 0 No auto-cutter error. 3
On 08 8 Auto-cutter error occurs. 4 On 10 16 Not used. Fixed to On.
Off 00 0 No unrecoverable error. 5
On 20 32 Unrecoverable error occurs.
Off 00 0 Automatic recover error. 6
On 40 64 No automatic recover error. 7 Off 00 0 Not used. Fixed to Off.
Bit 2 : 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 DLE ENQ 2. If an error due to a circuit failure (e.g. wire break) occurs, it is impossible to recover.
n = 4 : Continuous paper sensor status
Bit Off/On Hex Decimal Function
0 Off 00 0 Not used. Fixed to Off. 1 On 02 2 Not used. Fixed to On.
Off 00 0 Paper near-end sensor. Paper adequate.
2, 3
On 0C 12
Paper near-end is detected by the paper near-end sensor.
4 On 10 16 Not used. Fixed to On.
Off 00 0 Paper end sensor. Paper adequate. 5, 6
On 60 96 Paper end is detected by the paper end sensor. 7 Off 00 0 Not used. Fixed to Off.
Rev. 1.00
- 8 -
SRP-500
DLE ENQ n
[Name] Real-time request to printer [Format] ASCII DLE ENQ n
Hex 10 05 n
Decimal 16 5 n [Range] n = 2 [Description] The printer responds to a request from the host specified by n.
n = 2: Recovers from an error after clearing the receive and print
buffers. [Notes]
This command should not be used within the data sequence of another command that
consists of two or more bytes. For example, If you attempt to transmit ESC 3 n to the printer, but DTR (DSR for the host computer) goes to MARK before n is transmitted, and DLE ENQ 2 interrupts before n is received, the code <10>H for DLE ENQ 2 is processed as the code for ESC 3 <10>H.
This command n = 2 is valid only when a mechanical error or an auto-cutter error has
occurred.
DLE ENQ 2 enables the printer to recover from an error after clearing the data in the
receive buffer and the print buffer. The printer retains the settings (by ESC !, ESC 3, etc.) in effect when the error occurred. The printer can be initialized completely by using this command and ESC @. This command is enabled only for errors that have the possibility of recovery
ESC SP n
[Name] Set right-side character spacing [Format] ASCII ESC SP n
Hex 1B 20 n
Decimal 27 32 n [Range] 0 ≤ n ≤ 255 [Description] Sets the character spacing for the right side of the character to [ n x
0.122 mm {1/208 inches}] .
[Notes] The right-side character spacing for double-width mode is twice the
normal value. [Default] n = 0
ESC ! n
[Name] Select print mode(s) [Format] ASCII ESC ! n
Hex 1B 21 n
Decimal 27 33 n [Range] 0 ≤ n ≤ 255 [Description] Selects print mode(s) using n as follows:
Rev. 1.00
- 9 -
SRP-500
Bit Off/On Hex Decimal Function
Off 00 0 Character font A (12 x 14) selected. 0
On 01 1 Character font B (12 x 12) selected. 1 - - - Undefined. 2 - - - Undefined.
Off 00 0 Emphasized mode not selected. 3
On 08 8 Emphasized mode selected.
Off 00 0 Double-height mode not selected. 4
On 10 16 Double-height mode selected.
Off 00 0 Double-width mode not selected. 5
On 20 32 Double-width mode selected. 6 - - - Undefined.
Off 00 0 Underline mode not selected. 7
On 80 128 Underline mode selected.
[Notes]
When both double-height and double-width modes are selected, quadruple size
characters are printed.
Underlining is added to the entire width of each character, including the space to the
right of a character, but is not added to portions of lines that were skipped by means of
an HT. [Default] n = 1 [Reference] ESC E, ESC –
ESC % n
[Name] Select/cancel user-defined character set [Format] ASCII ESC % n
Hex 1B 25 n
Decimal 27 37 n [Range] 0 ≤ n ≤ 255 [Description] 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. [Notes]
When the downloaded character set has been released, the internal character set is
specified automatically. [Default] n = 0 [Reference] ESC &, ESC ?
Loading...
+ 18 hidden pages