Page 19 of 33
5.3 Control Codes and Escape Sequences for SP-5000/4
CATEGORY SYM DEC (HEX) FUNCTION
Control Code
SLF 10 (0A) Single Line Feed
Print 13 (0D) Carriage Return
S_REQ 9 (13) Echo Back Error Status Byte
M_REQ 21 (15) Echo Back Printer Mode Status Byte
CAN 24 (18) Clear All Buffers
ESC 27 (1B) Escape
ESC Sequence
ESC,3,n 51 (33) Set Line Spacing to n dots 6" n=1-255
ESC,@ 64 (40) Reset Printer
ESC,C, n1,n2 67 (43) Bar Code 3 of 9
n1=# of Characters
n2=Height of Code= n2x32 dots high
ESC, D, n 68 (44) Delivery Ticket Removal
n=1=Enable
n=0=Disable Delivery
ESC, c 99 (63) Activate Cutter and Deliver Document
ESC, i,n1,n2 105 (69) Bar Code Interleaf 2 of 5
n1= Horizontal Offset n1x8 dots offset
n2 = Height of Code n2x32 dots high
Used with ESC,h,n 104 (68) Horizontal Graphics Tab n=1-255
Optional ESC,j,n 106 (6A) Line Feed in Horiz. Graphics n=1-255
Windows ESC,l,n 108 (6C) Horizontal Graphics n=1-255
Driver
ESC,m 109 (6D) Print ROM Data
ESC,p,n1,n2,n3,n4 112 (70) Program 512K Non-Volatile Data
n1=Data Bank Storage Location (0-30)
n2=Number of Banks Required
n3=Data Byte Remainder
(high Number Multiple of 256)
n4=Data Byte Remainder
(low number must be 1-255)
ESC,q,n 113 (71) Print 512K Non-Volatile Data
n=0-30
0 Defaults to Print all Data Banks
ESC,s,n 115 (73) Set Character Set Size n=1-4 1=80 col.,
2=50 col., 3=25 col., 4=12 col.
ESC, u, n1,n2 117 (75) UPC Bar Code
n1= Horizontal Offset n1x8 dots offset,
n2 =Height of Code n2x32 dots high