Citizen CBM-272 User Manual page 96

Line thermal printer
Hide thumbs Also See for CBM-272:
Table of Contents

Advertisement

ESC $ n1 n2
[Function]
[Code]
[Range]
[Outline]
[Caution]
[Default]
[See Also]
[Sample Program]
[Print Results]
Specifying the absolute positions
<1B> H <24> H < n1> <n2>
0
n1
255
0
n2
1
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 x
256 from the beginning of line.
Specifying beyond the line end is ignored.
The initial value is not specified.
ESC \
LPRINT CHR$ (&H1B) ; "$" ;
LPRINT CHR$ (0) ; CHR$ (0) ; "A" ;
LPRINT CHR$ (&H1B) ; "$" ;
LPRINT CHR$ (50) ; CHR$ (0) ; "B" ;
LPRINT CHR$ (&H1B) ; "$" ;
LPRINT CHR$ (0) ; CHR$ (1) ; "C" ;
LPRINT CHR$ (&HA) ;
LPRINT CHR$ (&H1B) ; "$" ;
LPRINT CHR$ (100) ; CHR$ (0) ; "A" ;
LPRINT CHR$ (&H1B) ; "\" ;
LPRINT CHR$ (&HC2) ; CHR$ (&HFF) ; "B" ;
LPRINT CHR$ (&HA) ;
END
Absolute Position Specified
0
50
100
A
B
B
A
<
Relative Position Specified – 62
— 77 —
256
C

Advertisement

Table of Contents
loading

Table of Contents