Chapter 5 Configuring the Proprinter III XL Emulation with Control Codes

Initialize Parameters

ASCII Code ESC [ K n1 NUL n2 n3 n4 n5

Hex Code 1B 5B 4B n1 00 n2 n3 n4 n5

Dec Code 27 91 75 n1 0 n2 n3 n4 n5

Purpose Sets the printer's initial condition.

Discussion This command causes the printer to reset and defines the configuration that will be loaded to the printer during the reset. Several variables must be specified to define the load configuration, as described below.

NOTE: An ESC[K code can occur at any place in the datastream and is acted upon immediately. All numerical parameters are in the hex 00 through

FFrange unless stated otherwise. Only specified parameters are supported. Other values may be ignored or cause unpredictable results, and should be avoided.

n1

The value of n1 defines which of the following n bytes will be included in the command line, as shown in Table 27.

 

Table 27. n1 Values

 

 

n1 Hex Value

Function

 

 

 

 

1

One byte follows (n2)

3Three bytes follow (n2, n3 and n4)

4Four bytes follow (n2, n3, n4 and n5)

NOTE: Specifying any value for n1 other than 1, 3, or 4 may cause unpredictable results, and should be avoided.

n2

The 2-digit hexadecimal value for n2 defines the load configuration for the printer. The Proprinter III XL supports six values for this parameter: 00, 01, 04, 05, 254, and 255 (hex 00, 01, 04, 05, FE, and FF). Any other value will be ignored.

If any of the six supported values is entered for the n2 parameter, then the printer will reset to the factory default configuration. Configuration parameters defined by command bytes n4 and n5, if present, will override conflicting factory default values.

n3

Parameter n3 is provided for compatibility with the Proprinter III XL printer control language standard. You may define any value for this parameter. (For Proprinters, this bit must define the attached printer as either Proprinter, value 03, or Proprinter III XL, value 22 [hex 16].)

134

Page 134
Image 134
IBM 4400 manual Initialize Parameters, N1 Values, Function, One byte follows n2