Genicom 5000 Programmer's Manual.pdf

(583 KB) Pobierz
Chapter 1
CHAPTER 2. ANSI EMULATION
CONTROL CODE AND ESCAPE SEQUENCE ACTIVITY LEVELS
ANSI control codes and escape sequences are assigned activity levels
depending on which print mode is currently active. The following
charts provide Information on what to expect from the control codes
and escape sequences in each printing mode.
I -IGNORED No noticeable effect on printing will occur.
V -VALID
These sequences will not affect the printing mode in
progress, but will take effect when normal printing
resumes.
A –ACTIVE
This sequence will take effect immediately.
D –DATA
These control codes are used as data.
Notes
Note 1
If printer option 1 is active, either in ANSI (4800) or
ANSI (4410) emulation, SO and SI will activate or
deactivate this printing mode. SO and ST are VALID in
bar codes and oversize-ACTIVE in expanded. Please
see Appendix G, Description of Strapping options,
tables 5 and 6 on page Error! Bookmark not defined.
for details on options which affect printer operation in
ANSI emulation.
Note 2
VALID during enhanced oversize-ACTIVE during
normal oversize.
Note 3
Discarded while in the native mode.
Note 4
Will cause an error symbol to print (XOX).
Control Code Activity Levels
Control Code Activity Levels
Control
Code
Line
Terminator
Normal
Dot
Graphics
Bar Codes
Oversize
POSTNET
BEL
No
A
A
D
A
Note 4
BS
Yes
A
I
I
I
Note 4
CR
Yes
A
A
I
A
Note 4
DC1
No
A
A
D
A
Note 4
DC3
No
A
A
D
A
Note 4
DEL
No
Note 3
Note 3
D
Note 3
Note 4
FF
Yes
A
A
I
A
Note 4
HT
No
A
A
A
A
A
LF
Yes
A
A
I
A
Note 4
SI
No
A
I
Note 1
Note 1
Note 4
SO
No
A
I
Note 1
Note 1
Note 4
VT
Yes
A
A
I
A
Note 4
GEK-?????
1
5000 Series Programmer’s Manual
458877630.003.png
Escape Sequence Activity Levels
Escape
Sequence
Line
Terminator
Normal
Dot
Graphics
Bar
Codes
Oversize POSTNET
DCS (Graphics)
No
A
I
I
A
I
Font Load
No
A
I
I
A
I
GENBCS
No
A
A
A
A
I
GENFD
No
A
A
A
A
I
GENGRM
No
A
V
A
A
I
GENHTS
No
A
A
A
A
I
GENOSM
No
A
V
V
A
I
GENSLR
No
A
A
A
A
I
GENSNC
No
A
V
V
Note 2
I
GENSPM
No
A
V
A
A
A
GENTST
Yes
A
A
I
A
I
GENVFU
Yes
A
A
A
A
I
DENVTS
No
A
A
A
A
I
GSM
No
A
V
V
A
I
HPA
Yes
A
A
A
A
I
HPB
Yes
A
A
A
A
I
HPR
No
A
A
A
A
I
HTS
No
A
A
A
A
I
HVP
Yes
A
A
A
A
I
PLD
Yes
A
I
I
A
I
PLU
Yes
A
I
I
A
I
REP
No
A
A
I
A
I
RIS
No
A
A
A
A
I
RM
No
A
A
A
A
I
SGR
No
A
V
V
Note 2
I
SM
No
A
A
A
A
I
SPI
No
A
V
V
Note 2
I
ST
No
I
A
I
I
I
TBC
No
A
A
A
A
I
VFU Load
No
A
I
I
A
I
VPA
Yes
A
A
A
A
I
VPB
Yes
A
A
A
A
I
VPR
Yes
A
A
A
A
I
ANSI Emulation
2
GEK-99???
458877630.004.png 458877630.005.png 458877630.006.png
CONTROL CODE DEFINITIONS
BEL
Bell (07H): Receipt of a BEL code causes the beeper to sound for
approximately 1/2 second after any preceding printable data has been
processed.
BS
Back Space (08H): Line terminator. The paper position remains
unchanged and the print position is moved left one character space
at the current CPI. If the print position is at the left margin no action
is taken.
CR
Carriage Return (0DH): Line terminator. The print position is reset to the
left margin and the paper position is left unchanged.
CSI
Control Sequence Introducer (9BH): Signals the beginning of an ANSI
control sequence. When 8-bit data is used. CSI (9BH) can be substituted for
ESC [ (1BH 5BH). Also see ESC.
DC1
Device Control 1 (11H): Parallel and Serial Interface: Receipt of a
DC1 code with the printer in local mode puts the printer online
(SELECTS printer) and enables receipt of data.
Through CCU menu options, a serial interface protocol may be
selected that transmits a DC1 code to the host to signal that the printer is
ready to receive data.
NOTE
The print position can also be set to the left margin via the
CCU control panel menu using the SETUP/FORMAT/MODIFY
FORMAT/PRINT CONTROL menu selection.
DC3(Device Control 3 – 13H): Parallel and Serial Interface: Receipt of a DC3 code w
Through menu options, a serial interface protocol may be selected that
transmits a DC3 code to the host to signal that the printer Is not ready to
receive data.
NOTE
The print position can also be set to the left margin via the
CCU control panel menu using the SETUP/FORMAT/MODIFY
FORMAT/PRINT CONTROL menu selection.
ESC
Escape (1BH): Signals the beginning of an escape sequence. See also
CSI, above.
GEK-?????
3
5000 Series Programmer’s Manual
458877630.001.png
FF
Form Feed (0CH): Line terminator. The paper is advanced to the next
top of form position. If the EVFU is enabled and programmed, paper will
advance to the next stop in channel 1.
NOTE
An option strap from the CCU control panel menu using the
SETUP/FORMAT/MODIFY FORMAT/GENPRTOPTS selection
can disable This feature.
HT
Horizontal Tab (09H): Advances the print position to the next
horizontal tab location. If no tabs are set, an HT code is either converted to a
space or ignored, depending on menu option settings.
LF
Line Feed (0AH): Line terminator. The paper is advanced to the next
line. When printing horizontal dot graphics, the paper is advanced to the next
dot row.
NOTE: an option strap from the CCU control panel menu using the
SETUP/FORMAT/MODIFY FORMAT/GENPRTOPTS selection can
disable This feature.
SI
Shift In (0FH): Used to exit a Special Print Mode (GENSPM) when
printer control strap A9 (Appendix G) is set.
SO
Shift Out (0EH): Used to enable a special, print mode (GENSPM)
when ANSI emulation strap 1 is reset.
VT
Vertical Tab (0BH): Line terminator. The paper is advanced to the
next vertical tab stop. If no tabs are set, a VT code causes a line feed. When
using the EVFU, paper advances to the next stop in channel 12.
NOTE: an option strap from the CCU control panel menu using the
SETUP/FORMAT/MODIFY FORMAT/GENPRTOPTS selection can
disable This feature.
ANSI Emulation
4
GEK-99???
 
ESCAPE SEQUENCE DIRECTORY
Sequence
Meaning
Page
CSI or ESC [
Control Sequence Introducer
8
CSI p1 p2 SP ~
GENEMU: Select emulation
10
ESC [p1 ; p2 SP B
GSM: Modifies vertical (p1) and horizontal (p2)
character size
21
ESC [p1 ; p2 SP G
SPI: Sets LPI (p1) and/or CPI (p2) in decipoints
22
ESC H
HTS: Set a tab at current print position
20
ESC J
VTS: Set a tab at current paper position
18
ESC K
PLD: Moves print line down 3/72 inch (subscript)
15
ESC L
PLU: Moves print line up 3/72 inch (superscript)
32
ESC P
DCS: Introduces dot graphics
30
ESC Q
Self-Test: Inactive. Sequence ignored.
ESC [ p1 a
HPR: Moves print position right p1 distance (relative)
15
ESC [p1 b
REP: Dot graphics: repeat preceding character p1
times
30
ESC c
RIS: Resets printer to a known initial state
24
ESC [ p1 d
VPA: Sets vertical position to p1 decipoints or lines
16
ESC [ pl e
VPR: Moves paper forward p1 decipoints
16
ESC [ p1; p2 f
HVP: Moves paper and print position (absolute)
16
ESC [ p1 g
TBC: Clears tabs: p1=3 for horizontal
18
ESC [ p1 ; p... h
SM: Set mode (PUM, LNM, proportional. character
mapping)
24
ESC [ p1 j
HPB: Moves print position left by decipoints or
columns
16
ESC [ p1 k
VPB: Moves paper backward by decipoints or lines
17
ESC [ p1 ;p ... l
RM: Reset mode (PUM, LNM, proportional, character
mapping)
22
ESC [ p1;p ... m
SGR: Selects font styles and enhancements
22
ESC [ p1 p2 ! p
GENVF2: EVFU vertical paper movement command
34
ESC [ p1 ; p2 SP n
ESC [ p1 ; p2 ; p3 SP q GENGRM: Selects graphics horizontal and vertical dot
densities
31
ESC [ p1; p2 ; p3 r
GENFD: Sets form length (pl), margins - top (p2),
bottom (p3)
18
ESC [ p1; p2 s
GENSLR: Sets margins. Left (p1), right (p2) in
decipoints
19
GEK-?????
5
5000 Series Programmer’s Manual
458877630.002.png
Zgłoś jeśli naruszono regulamin