B. Control code summary (HP)
❏PCL mode
ITEM | SYMBOL | Hexadecimal & Decimal | FUNCTION |
|
| |
[1] | BEL | [07] H | [7] D | Activates the bell. (Valid for PCL3+, PCL+D) | ||
|
|
|
|
|
| |
[2] | BS | [08] H | [8] D | Backspace one character. | ||
[3] | HT | [09] H | [9] D | Moves to next horizontal tab. | ||
[4] | LF | [0A] H | [10] D | Linefeeds after printing. | ||
[5] | VT | [0B] H | [11] D | Linefeeds to next vertical tab position after printing. | ||
[6] | FF | [0C] H | [12] D | Form feeds after printing. | ||
[7] | CR | [0D] H | [13] D | Carriage return after printing. | ||
[8] | SO | [0E] H | [14] D | Selects secondary font. | ||
[9] | SI | [0F] H | [15] D | Selects primary font. | ||
[10] | ESC | [1B] H | [27] D | Designate start of escape sequence. | ||
[11] | SP | [20] H | [32] D | Space one character. | ||
[12] | DEL | [7F] H | [127] D | To print the ASCII DEL character. | ||
[13] | ESC & a # C | [1B,26,61,#,43]H | Horizontal positioning by column. | |||
|
| [27,38,97,#,67]D |
|
|
| |
[14] | ESC & a # H | [1B,26,61,#,48]H | Horizontal positioning by 1/720". | |||
|
| [27,38,97,#,72]D |
|
|
| |
[15] | ESC & a # L | [1B,26,61,#,4C]H | Sets left margin. |
|
| |
|
| [27,38,97,#,76]D |
|
|
| |
|
|
|
|
|
| |
[16] | ESC & a # M | [1B,26,61,#,4D]H | Sets right margin. |
|
| |
|
| [27,38,97,#,77]D |
|
|
| |
[17] | ESC & a # R | [1B,26,61,#,52]H | Vertical positioning by VMI. | |||
|
| [27,38,97,#,82]D |
|
|
| |
[18] | ESC & a # V | [1B,26,61,#,56]H | Vertical positioning by 1/720". | |||
|
| [27,38,97,#,86]D |
|
|
| |
[19] | ESC & d # D | [1B,26,64,#,44]H | Designate underline mode. |
| ||
|
| [27,38,100,#,68]D |
|
|
| |
|
|
|
|
| ||
[20] | ESC & d @ | [1B,26,64,40]H | Cancel underline mode. | |||
|
| [27,38,100,64]D |
|
|
| |
[21] | ESC & k # E | [1B,26,6B,#,45]H | Designates/Cancels the auto- cancellation of underline. | |||
|
| [27,38,107,#,69]D |
|
|
| |
|
|
|
|
| ||
[22] | ESC & k # F | [1B,26,6B,#,46]H | Designates/Cancels the auto- cancellation of secondary font. | |||
|
| [27,38,107,#,70]D |
|
|
| |
|
|
|
| Note: If # is set to "0" , current secondary font set | ||
|
|
|
| changes automatically to primary font when vertical | ||
|
|
|
| position changes . |
|
|
[23] | ESC & k # G | [1B,26,6B,#,47]H | Designates line termination . | |||
|
| [27,38,107,#,71]D | # = 0 (30H) :CR=CR,LF=LF,FF=FF | |||
|
|
|
| # = 1 (31H) :CR=CR+LF,LF=LF,FF=FF | ||
|
|
|
| # = 2 (32H) :CR=CR,LF=LF+CR,FF=FF+CR | ||
|
|
|
| # = 3 (33H) :CR=CR+LF,LF=LF+CR,FF=FF+CR | ||
|
|
|
|
| ||
[24] | ESC & k # H | [1B,26,6B,#,48]H | Sets HMI(Horizontal motion index ). | |||
|
| [27,38,107,#,72]D | - HMI is set by 1/120 inch. | |||
|
|
|
| - HMI is defined as the distance where the | ||
|
|
|
| print position moves when the character code | ||
|
|
|
| is input. If # is 12, the input characters are | ||
|
|
|
| printed in 10 cpi. | ||
|
|
|
|
| ||
[25] | ESC & k # S | [1B,26,6B,#,53] H | Designates character spacing. | |||
|
| [27,38,107,#,83] D | - Character spacing is set. | |||
|
|
|
| # = 0 (30H) | :Normal (10 cpi) | |
|
|
|
| # = 1 (31H) | :Double width(5 cpi) | |
|
|
|
| # = 2 (32H) | :Compressed (16.7 cpi) | |
|
|
|
| # = 4 (34H) | :12 cpi spacing | |
|
|
|
|
|
|
|