Attribute set and reset codes – Printronix P3000 Series User Manual

Page 89

Advertising
background image

6–3

Programming

NOTE: SFCC commands must be terminated by a semicolon (;) in a BASIC program or by
text following the command string. A paper motion command directly following a special
function code command may result in erroneous paper movement.

You can control print format, print mode, or international language selection 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 printer 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, when in P–Series emulation, you can set the form length in inches 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” incre-
ments.

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 you can include program comments on the Com-
mand Line. Valid line terminators are: Form Feed (FF), Line Feed (LF), and Carriage Return (CR). The
valid line terminator does not produce paper motion. If a Command Line contains an error, the com-
mand is not executed, and the line truncates to include any of the following error messages:

Command Line Error Messages

Error Message

Explanation

INVALID PARAMETER

The command received cannot be interpreted
correctly, or the correct command is not followed by an
expected delimiter.

PARAMETER OUT OF
BOUNDS

A decimal parameter in the command is out of range.

MISSING PARAMETER

ILLEGAL CHARACTER IN

One or more necessary parameters is missing
from the command.

DECIMAL PARAMETER

TOO MANY DIGITS IN

DECIMAL PARAMETER

A decimal parameter contains a non–numeric
character, or a fractional digit is out of range.

A decimal parameter contains too many digits.

Attribute Set and Reset Codes

Certain print attributes are set and reset (turned on or off) by using the appropriate ESC or SFCC code
sequence and the values 1 or 0. These values may be either the hexadecimal code 01 and 00, or the
ASCII code for the printable symbols of decimal 1 and 0 (hexadecimal code 31 and 30, respectively).
Expanded Print, Super/Subscript Print, and Underline are attributes which are set/reset in this fashion.

Advertising