Esc q n – Star Micronics Dot Impact Printer User Manual
Page 37

3-29
STAR Command Specifications
Rev. 0.70
ESC Q n
[Name] Set right margin
[Code]
ASCII
ESC
Q
n
Hexadecimal
1B 51
n
Decimal
27 81
n
[Defined Area]
2 ≤ n ≤ maximum printable digits ≤ 255
[Initial Value]
Maximum printable digits
[Function]
This command sets the printable region (current ANK character pitch x n) using the left edge as a reference
after printing data in the line buffer.The left edge is also the reference for upside-down printing.
Setting this command partway will print the data in the line buffer at that time, perform a line feed and then
take affect from the next line.
Character spacing is included in the character pitch but is unaffected by expansion settings.
The right margin set using this command is unaffected by changing the character pitch.
The print region within the defined range must be at least a minimum of 18 dots for the right margin.
If the printable region as set by the left and right margins is smaller than one character, including the space
between characters, printing is not possible. A question mark (“?”) is printed instead of the character.
(*1) More than four characters of 7 x 9 fonts; more than three characters of 5 x 9 fonts (2P=1) (when
character spacing = 0)
Printable Region
Print Region
Left Margin
Right Margin