
Chapter 3 Configuring The KSSM Emulation With Control Codes
Set Relative Horizontal Print Position
ASCII Code | ESC \ n1 n2 |
Hex Code | 1B 5C n1 n2 |
Dec Code | 27 92 n1 n2 |
Purpose | Moves the horizontal print position left or right from the current |
| position. |
| For right movement: horizontal position = n2 * 256 + n1. |
| For left movement: horizontal position = 65536 - (n2*256 + n1). |
| Where: |
| 0 <= n1 <= 127 |
| 0 <= n2 <= 255 |
Comment | The printer ignores this command if the command would move |
| the print position outside the printing area. |
| The default defined unit for this command is according to the |
| current density: 1/120 inch for Near LQ and 1/180 inch for LQ, |
| Normal, |
Set Right Margin
ASCII Code | ESC Q n |
Hex Code | 1B 51 n |
Dec Code | 27 81 n |
Purpose | Sets the right margin to n columns in the current character |
| pitch, as measured from the |
| Where: |
| 1 <= n <= 255 |
| left margin < (current pitch) * n < printable area width |
Comment | In DBCS mode, the right margin will be set according to the |
| width of the DBCS character. |
| This command affects the front panel setting of “Right Margin.” |
| The default depends on the |
72