Chapter 2 Configuring the P-Series Emulation with Control Codes

Configuring the P-Series Emulation with Control Codes

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

Format for Control Code Descriptions

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

Name The title or function of the command.

ASCII Code The ASCII mnemonic for the command is shown. Command sequences are in 7-bit (ASCII) form.

Hex Code The code or command sequence in hexadecimal numbers.

Dec Code The code or command sequence in decimal numbers.

Purpose The function(s) of the control code.

Comment A discussion of the uses of the code or command sequence, including exceptions or limitations to its 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.

Special Function Control Code-Control Code 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 use any value from 1 through 255 (hex 01 through hex

FF)as control code introducers. For example, bold print can be enabled in the P-Series protocol using any of the following control code introducers:

ASCII: SOH G

Hex: 01 47

Dec: 1 71

ETX G

03 47

3 71

ESC G

1B 47

27 71

^ G

5E 47

94 71

~ G

7E 47

126 71

NOTE: The SFCC has been set to ESC for all examples.

26

Page 26
Image 26
IBM 4400 manual Format for Control Code Descriptions, Special Function Control Code-Control Code Header, Hex 01 Dec 1