Citizen CBM1000II Command Reference Manual page 108

Line thermal printer
Hide thumbs Also See for CBM1000II:
Table of Contents

Advertisement

GS C0 m n
[Function]
[Code]
[Range]
[Outline]
[Caution]
[Default]
[See Also]
[Sample Program]
[Print Result]
Setting the numbering print mode.
<1D>H<43>H<30>H<m><n>
0
m
5
0
n
2
This command sets the numbering(serial number counter) print
mode. m denotes the number of print columns.
m=0
Prints the columns indicated by numeral. In theis
case, n has no meaning.
m=1 to 5 Indicates the maximum number of columns to be
printed.
If a counter value is larger than this the number of
columns set with this command, the printer will
the lower m-columns of the counter value.
n specifies a printing position within the printing columns.
n=0
Prints the data right justified. The blank columns
are spaced.
n=1
Prints the data right justified. The blank columns
are filled with "0".
n=2
Prints the data left justified. The right blank will
become invalid.
• If either m or n has a value beyond their ranges, that setting
will becomes invalid.
m = 0 , n = 0
GS C1, GS C2, GS c, GS C;
LPRINT CHR$(&H1D) ;"C0";
LPRINT CHR$(0);CHR$(0);
GOUSAB *CNT
LPRINT CHR$(&H1D);"C0";
LPRINT CHR$(1); CHR$(0);
GOUSAB *CNT
LPRINT CHR$(&H1D);"C0";
LPRINT CHR$(3) CHR$(0);
GOUSAB *CNT
LPRINT CHR$(&H1D);"C0";
LPRINT CHR$(3); CHR$(1)
GOUSAB *CNT
LPRINT CHR$(&H1D);"C0";
LPRINT CHR$(3) CHR$(2);
GOUSAB *CNT
END
12345 <
67890 <
11 12 13 14 15 <
0160 170 180 19020 < Counts from 16 to 20 at m = 3 and n = 1.
21 22 23 24 25 <
— 106 —
LPRINT CHR$(&H1D);"c";
RETURN
Counts from 1 to 5 at m = 0 and n = 0.
Counts from 6 to 10 at m = 1 and n = 0.
Counts from11 to 15 at m = 3 and n = 0.
Counts from 21 to 25 at m = 3 and n = 2.
*CNT
FORI = 1 TO 5
NEXT I
LPRINT CHR$(&HA);

Advertisement

Table of Contents
loading

Table of Contents