Chapter 4 Configuring the Serial Matrix Emulation with Control Codes

Configuring the Serial Matrix Emulation with Control Codes

The remainder of this chapter describes the Serial Matrix printer control language codes that may be sent from a host computer attached to the printer, in order to configure and invoke numerous printer functions.

Format for Control Code Descriptions

The following information is listed for each code function (where applicable and possible).

Name The title or function of the command.

ASCII Code The standard ASCII name for the control code.

Hex Code The code's numeric equivalent in hexadecimal.

Dec Code The code's numeric equivalent in decimal.

Purpose The function(s) of the control code.

Discussion A description of exceptions or limitations to normal use.

Example A sample is provided for some control codes when it is possible to illustrate the effect of a control code, or if a specific syntax is required to complete the program statement (i.e. Horizontal Tab set, Vertical Tab set/clear).

IMPORTANT If you specify any parameters for a control code other than the ones that are defined in the control code description, unpredictable results may occur.

Escape Control Code Header

Serial Matrix codes use only ESC as the control code header. For example, to enable bold print in the Serial Matrix printer protocol, use the Serial Matrix ESC and the bold print control code character G as follows:

Ascii: ESC G

Hex: 1B 47

Dec: 27 71

Attribute Set and Reset Codes

Certain print attributes are set or reset (turned on or off) by using the appropriate ESC code sequence and the numbers 1 or 0. These 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, Superscript/Subscript Print, and Underline are attributes which are set and reset in this fashion.

78

Page 78
Image 78
IBM 4400 Escape Control Code Header, Configuring the Serial Matrix Emulation with Control Codes, Ascii ESC G Hex 1B Dec 27