— 11 —
ESC $ n1 n2
[Function] Specifying the Absolute Positions
[Code] <1B>H<24>H<n1><n2>
[Range] {0 =< n1 =< FF(Hex)}
{0 =< n2 =< 1(Hex)}
[Outline] The printing start position is specified in the number of dots (1/203 inch unit) from
the beginning of line.
• The number of dots is divided by 256, whose quotient is taken as n2 and the residual
as n1.
• Therefore, the printing start position is equal to n1 + n2 × 256 from the beginning of
line.
[Caution] Specifying beyond the line end is ignored.
[Default] The initial value is not specified.
[See Also] ESC \
[Sample Program]
PRINT #1, CHR$ (&H1B) + “$”;
PRINT #1, CHR$ (0) + CHR$ (0) + “A”;
PRINT #1, CHR$ (&H1B) + “$”;
PRINT #1, CHR$ (50) + CHR$ (0) + “B”;
PRINT #1, CHR$ (&H1B) + “$”;
PRINT #1, CHR$ (0) + CHR$ (1) + “C”;
PRINT #1, CHR$ (&HA);
PRINT #1, CHR$ (&H1B) + “$”;
PRINT #1, CHR$ (100) + CHR$ (0) + “A”;
PRINT #1, CHR$ (&H1B) + “\”;
PRINT #1, CHR$ (&HC2) + CHR$ (&HFF) + “B”;
PRINT #1, CHR$ (&HA);
[Print Results]
050100 256
A B C
B A
>
>
>
>
>
>