Page 2
STP-103 1. Control Commands List Command Name Horizontal tab Print and line feed Print and carriage return DLE EOT Real-tine status transmission DLE ENQ Real-time request to printer ESC SP Set right-side character spacing ESC ! Select print mode(s) ESC $...
Page 3
STP-103 2. Control Commands Details 2-1 Command Notation [Name] The name of the command. [Format] The code sequence. ASCII indicates the ASCII equivalents. Hex indicates hexadecimal equivalents. Decimal indicates the decimal equivalent. [ ]k indicates the contents of the [ ] should be repeated k times.
Page 4
STP-103 [Name] Print and carriage return. [Format] ASCII Decimal [Description] When automatic line feed is enabled, this command functions the same as LF; when automatic line feed is disabled, this command is ignored. DLE EOT n [Name] Real-time status transmission.
Page 5
STP-103 n=3 : Error status Off/On decimal Function Not used. Fixed to Off. Not used. Fixed to On. Undefined. Not used. Fixed to Off. Not used. Fixed to On. Not used. Fixed to Off. Not used. Fixed to Off. Not used. Fixed to Off.
Page 6
STP-103 ESC ! n [Name] Select print mode(s) [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Selects print mode(s) using n as following table in next page. Off/On Decimal Function 24 character (font A : 12 ×24) 42 character (font B : 9 ×24) Undefined 32 character (font A : 12 ×24)
Page 7
STP-103 ESC & y c1 c2 [x1 d1… d(y X x1)]…[xk d1…d(y X xk)] [Name] Define user-defined characters ASCII ESC & y c1 c2 [x1 d1… d(y X x1)]…[xk d1…d(y X xk)] 1B 26 y c1 c2 [x1 d1… d(y X x1)]…[xk d1…d(y X xk)] Decimal 27 38 y c1 c2 [x1 d1…...
Page 8
STP-103 ESC 2 [Name] Select 1/6-inch line spacing [Format] ASCII Decimal [Description] Selects 1/6-inch line spacing. ESC 3 n [Name] Set line spacing [Format] ASCII Decimal [Range] Sets the line spacing to [n X (vertical or horizontal motion unit)] inches.
Page 9
STP-103 ESC @ [Name] Initialize printer [Format] ASCII Decimal [Description] 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]...
Page 10
STP-103 ESC R n [Name] Select an international character set [Format] ASCII Decimal [Range] 0 ≤n ≤10 [Description] Selects an international character set n from the following table: Character set U.S.A. France Germany Denmark Ⅰ Sweden Italy Spain Japan Norway Denmark Ⅱ...
Page 11
STP-103 ESC V n [Name] Turn 90° clockwise rotation mode on/off [Format] ASCII Decimal [Range] 0 ≤n ≤1, 48 ≤n ≤49 [Description] Turns 90° clockwise rotation mode on off. N is used follows: Function 0,48 Turn off 90°clockwise rotation mode 1,49 Turns on 90°clockwise rotation mode...
Page 12
STP-103 ESC d n [Name] Print and feed paper n lines [Format] ASCII Decimal [Range] 0 ≤n ≤255 [Description] Prints the data in the print buffer and feeds the paper n line. ● This command sets the print starting position to the beginning of the line.
Page 13
STP-103 FS p n m [Name] Print non-volatile bit image [Format] ASCII Decimal 1 ≤ n ≤ 255 , 0 ≤ m ≤3 , 48 ≤ m ≤ 51 [Range] [Description] Prints a non-volatile bit image n using the mode specified by m...
Page 14
STP-103 Off/On Decimal Function Character height selection. See Table 2. Character width selection. See Table 1 Table 1 : Character width Selection Table 2 : Character height Selection Decimal Width Decimal Height 1 (normal) 1 (normal) 2 (double-width) 2 (double-height) GS * x y d1...d (x X y X 8)
Page 15
1 ≤n ≤3 , 49 ≤n ≤51 [Description] Transmits the printer ID specified by n as follows: Printer ID Specification ID(hexadecimal) 1,49 Printer model ID STP-103 / STP-103P 2,50 Type ID 3,51 ROM version ID Depends on ROM version - 15 -...
Page 16
STP-103 GS L nL nH [Name] Set left margin [Format] ASCII Decimal [Range] 0 ≤ nL ≤255 0 ≤ nH ≤255 [Description] Sets the left margin using nL and nH. ● The left margin is set to [(nL + nH X 256) X (horizontal motion unit6)] inches.
Page 17
STP-103 GS ^ r t m [Name] Execute macro [Format] ASCII Decimal [Range] 0 ≤ r ≤ 255 0 ≤ t ≤ 255 0 ≤ m ≤ 1 [Description] Executes a macro. ● r specifies the number of times to execute the macro.
Page 18
STP-103 First byte (printer information) Off/On Decimal Status for ASB Not used. Fixed to off Not used. Fixed to off Not used. On-line Off-line Not used. Fixed to on Cover is closed Cover is open Paper is not being fed by using the paper feed...
Page 19
STP-103 GS b n [Name] Turns smoothing mode on/off [Format] ASCII Decimal 0 ≤ n ≤255 [Range] [Description] Turns smoothing mode on or off. ● When the LSB of n is 0, smoothing mode is turned off. ● When the LSB of n is 1, smoothing mode is turned on.
Page 20
STP-103 Bar Code System Number of Characters Remarks UPC-A 11≤k≤12 48≤d≤57 JAN 13(EAN) 12≤k≤13 48≤d≤57 JAN8(EAN) 7≤k≤8 48≤d≤57 ① 48≤d≤57,65≤d≤90,32, CODE39 1≤k 36,37,43,45,46,47 1≤k (even number) 48≤d≤57 48≤d≤57,65≤d1≤68, CODABAR 1≤k 36,43,45,46,47,58 Bar Code System Number of Characters Remarks UPC-A 11≤n≤12 48≤d≤57...
Page 21
STP-103 <Example> Printing GS k 72 7 67 111 100 101 13 57 51 [When CODE128 (m=73) is used :] ● Refer to Appendix J for the information of the CODE128 bar code and its code table. ● When using the CODE128 in this printer, take the following points into account for data transmission : ①...
Page 22
STP-103 ② Special characters are defined by combining two characters “{“ and one character. The ASCII character “{“ is defined by transmitting “{“ twice consecutively. Transmit data Specific character ASCII Decimal SHIFT 7B,53 123,83 CODE A 7B,41 123,65 CODE B...
Need help?
Do you have a question about the STP-103 and is the answer not in the manual?
Questions and answers