5525B/31/32 Line Matrix Printer LinePrinter Plus Programmer's Reference
Special Function Control Code (SFCC) Header
23
Special Function Control Code (SFCC) Header
A Special Function Control Code (SFCC) is used to extend the control code
protocol. The SFCC is the control code introducer (or header); it is the first
input in the sequence of parameters. The general control code sequence is:
(SFCC)(parameter 1)(parameter 2)...(parameter
n
)
P-Series codes can be configured to use any value from 1 through 127 (hex
01 through hex 7F) as control code introducers. For example, bold print could
be configured to be enabled in the P-Series protocol using any of the control
code introducers listed in Table 3.
SFCC Command Line
Print format, print mode, or international language selection can be controlled
by a longer sequence known as a command line. Command lines are string
type commands placed between complete lines of text and affect the text
which follows. The protocol has six command lines: PMODE, OSET, PSET,
LPI, LINES, and INCHES. Each of these command lines is discussed in this
chapter under the appropriate Control Code function.
For example, the forms length (in inches) can be set using the following
command line:
SFCC INCHES;
n.f
where:
n
is the whole number of inches, and
f
is the fractional increment
in 0.5 inch increments.
When using the SFCC in a command line, the SFCC must be the first non-
blank symbol in the line (space, hex 20, is a blank symbol). In addition,
characters following spaces (other than a valid line terminator) in a command
line are ignored so that user comments can be included on the command line.
The valid line terminators are Form Feed (FF), Line Feed (LF), and Carriage
Return (CR); however, when used in the command line, these line terminators
do
not
cause any paper motion. If a command line contains an error, the
command will not be executed.
Table 3. SFCC Example (Bold Print)
ASCII Hex Decimal
SOH G
ETX G
ESC G
^ G
~ G
01 47
03 47
1B 47
5E 47
7E 47
01 71
03 71
27 71
94 71
126 71