Compuprint 3046 Programmer Manual

Compuprint 30X6
Programmer Manual
Contents
Commands..........................................................................................................................3
1Index for ESC/PK.............................................................................................................3
2Command interpretation for ES C/PK.......................................................................... 4
3Other C ommand Sets..................................................................................................... 16
Interfaces ..........................................................................................................................20
1. The Parallel Interface.......................................................................................................20
Signals Description..............................................................................................................20
2. The Serial Interface .......................................................................................................... 24
3. USB interface..................................................................................................................... 25
4. Network interface.............................................................................................................. 26
CCoommmmaannddss
1
1
IInnddeexx ffoorr EESSCC//PPKK
NO Command Function
1
ESC ( C
2
ESC ( U
3
ESC C
4
ESC C NUL
5
ESC N
6
ESC O
7
ESC Q
8
ESC l
9
CR
10
LF
11
FF
12
ESC J
13
HT
14
VT
15
BS
16
ESC 0
17
ESC 2
18
ESC 3
19
ESC +
20
ESC A
21
ESC D
22
ESC B
23
ESC t
24
ESC R
25
ESC %
26
ESC x
27
ESC M
28
ESC g
29
ESC SP
30
ESC 4
31
ESC 5
32
ESC G
33
ESC H
34
ESC q
35
SO
36
ESC SO
Set page length in defined unit
Set unit Set page length in lines Set page length in inches Set bottom margin Cancel bottom margin Set right margin Set left margin CR Carriage return Line feed Form feed Advance print position vertically Tab horizontally Tab vertically Backspace Select 1/8-inch line spacing Select 1/6-inch line spacing Set n/180-inch line spacing Set n/360-inch line spacing Set n/60-inch line spacing Set horizontal tabs Set vertical tabs Select character table Select an international character set Select user-defined set Select LQ or draft Select 12-cpi Select 15-cpi Set character space Select italic font Cancel italic font Select double-strike printing Cancel double-strike printing Select character style Select double-width printing (one line) Select double-width printing (one line)
37
DC4
38
ESC W
39
ESC w
40
ESC U
41
ESC *
42
ESC @
43
CAN
44
DEL
45
ESC -
46
ESC E
47
ESC F
48
ESC P
49
ESC p
Cancel double-width printing (one line) Turn double-width printing on/off Turn double-height printing on/off Turn unidirectional mode on/off Select bit image Initialize printer Cancel line Delete last character in buffer Turn underline on/off Select bold font Cancel bold font Select 10-cpi Turn proportional mode on/off
Additional commands
All these additional commands are only for your reference.
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
ESC $ ESC \ ESC b ESC / ESC & ESC : ESC k ESC ! ESC ( ­ESC S ESC T SI ESC SI DC2 ESC 6 ESC 7 ESC < BEL ESC 8 ESC 9 ESC s ESC ? ESC K ESC L ESC Y ESC Z ESC ( B
Set absolute horizontal print position
Set relative horizontal print position
Set vertical tabs in VFU channels
Select vertical tab channel
Define user-defined characters
Copy ROM to RAM
Select typeface
Master select
Select line/score
Select superscript/subscript printing
Cancel superscript/subscript printing
Select condensed printing
Select condensed printing
Cancel condensed printing
Enable printing of upper control codes
Enable upper control codes
Unidirectional mode (one line)
Beeper
Disable paper-out detector
Enable paper-out detector
Select low-speed mode
Reassign bit-image mode
Select 60-dpi graphics
Select 120-dpi graphics
Select 120-dpi, double-speed graphics
Select 240-dpi graphics
Bar code setup and print
77
DC1
78
DC3
79
ESC #
80
ESC =
81
ESC >
82
ESC j
2
2
CCoommmmaanndd iinntteerrpprreettaattiioonn ffoorr EESSCC//PPKK
Select printer
Deselect printer
Cancel MSB control
Set MSB to 0
Set MSB to 1
Reverse paper feed
ESC ( C Set page length in defined unit
Format
ASCII ESC ( C nL nH mL mH Hex 1B 28 43 nL nH mL mH Decimal 27 40 67 nL nH mL mH
Parameter range
nL = 2, nH = 0 0 < ((mH 256) + m  L) (defined unit)    22
Function
Sets the page length in the specified number of units—previously defined with the ESC( U command—according to the following formula:
(page length) = ((mH  256) + mL)  (defined unit)
ESC ( U Set unit
Format
ASCII ESC ( U nL nH m Hex 1B 28 55 n Decimal 27 40 85 n
L nH m
L nH m
Parameter range
nL = 1, nH = 0 m = 10, 20, 30, 40, 50, 60
Function
Sets the unit to m/3600 inch. The printer uses this unit when moving the print position,
ESC C Set page length in lines
Format
ASCII ESC C n Hex 1B 43 n Decimal 27 67 n
Parameter range
1  n  127 0 < n  (current line spacing)  22 inches
Function
Sets the page length to n lines in the current line spacing
ESC C NUL Set page length in inches
Format
ASCII ESC C NUL n Hex 1B 43 00 n Decimal 27 67 0 n
Parameter range
1  n  22
Function
Sets the page length to n inches
ESC N Set bottom margin
Format
ASCII ESC N n Hex 1B 4E n Decimal 27 78 n
Parameter range
0 < n  127 0 < (current line spacing)  n < (page length)
Function
Sets the bottom margin on continuous paper to n lines (in the current line spacing) from the top-of-form position on the next page.
ESC O Cancel bottom margin
Format
ASCII ESC O Hex 1B 4F Decimal 27 79
Function
Cancels the top and bottom margin settings
ESC Q Set right margin
Format
ASCII ESC Q n Hex 1B 51 n Decimal 27 81 n
Parameter range
1  n  255 (left margin) < (current pitch)  n  (printable area width)
Function
Sets the right margin to n columns in the current character pitch, as measured from the leftmost printable column
ESC l Set left margin
Format
ASCII ESC l n Hex 1B 6C n Decimal 27 108 n
Parameter range
1  n  255 0  (left margin) <(right margin)
Function
Sets the left margin to n columns in the current character pitch, as measured from the leftmost printable column
CR Carriage return
Format
ASCII CR Hex 0D Decimal 13
Function
Moves the print position to the left-margin position
LF Line feed
Format
ASCII LF Hex 0A Decimal 10
Function
Advances the vertical print position one line (in the currently set line spacing)
FF Form feed
Format
ASCII FF Hex 0C Decimal 12
Function
Advances the vertical print position on continuous paper to the top-margin position of the next page
ESC J Advance print position vertically
Format
ASCII ESC J n Hex 1B 4A n Decimal 27 74 n
Parameter range
0  n  255
Function
Advances the vertical print position n/180 inch
HT Tab horizontally
Format
ASCII HT Hex 09 Decimal 9
Function
Moves the horizontal print position to the next tab to the right of the current print position
VT Tab vertically
Format
ASCII VT Hex 0B Decimal 11
Function
Moves the vertical print position to the next vertical tab below the current print position Moves the horizontal print position to the left-margin position
BS Backspace
Format
ASCII BS Hex 08 Decimal 8
Function
Moves the print position to the left a distance equal to one character in the current character pitch plus any additional character space.
ESC 0 Select 1/8-inch line spacing
Format
ASCII ESC 0 Hex 1B 30 Decimal 27 48
Function
Sets the line spacing to 1/8 inch
ESC 2 Select 1/6-inch line spacing
Format
ASCII ESC 2 Hex 1B 32 Decimal 27 50
Function
Sets the line spacing to 1/6 inch
ESC 3 Set n/180-inch line spacing
Format
Loading...
+ 18 hidden pages