Herunterladen Inhalt Inhalt Diese Seite drucken

Citizen CBM-270 Bedienungsanleitung Seite 83

Inhaltsverzeichnis

Werbung

GS
C0
m
[Function]
Setting the numbering print mode
[Code]
<1D>H<43>H<30>H<m><n>
0 ≤ m ≤ 5
[Range]
0 ≤ n ≤ 5
[Outline]
This command sets the numbering (serial number counter) print mode.
number of print columns.
m = 0
Prints the digits indicated by a numeral.
m = 1 to 5
Indicates the maximum number of columns to be printed.
this the number of columns set with this command, the printer will print the lower m -digits of
the counter value.
n specifies a printing position within the printing columns.
n = 0
Prints the data right justified.
n = 1
Prints the data right justified. The blank columns are filled with "0".
n =2
Prints the data left justified.
[Caution]
If either m or n has a value beyond their ranges, that setting will become invalid.
[See Also]
GS C1, GS C2, GS c, GS C
[Default]
m = 0, n = 0
[Sample Program]
LPRINT CHR$ (&H1D) ; "C0" ;
LPRINT CHR$ (0) ; CHR$ (0) ;
GOSUB * CNT
LPRINT CHR$ (&H1D) ; "C0" ;
LPRINT CHR$ (1) ; CHR$ (0) ;
GOSUB * CNT
LPRINT CHR$ (&H1D) ; "C0" ;
LPRINT CHR$ (3) ; CHR$ (0) ;
GOSUB * CNT
LPRINT CHR$ (&H1D) ; "C0" ;
LPRINT CHR$ (3) ; CHR$ (1) ;
GOSUB * CNT
LPRINT CHR$ (&H1D) ; "C0" ;
LPRINT CHR$ (3) ; CHR$ (2) ;
GOSUB * CNT
END
[Print Result]
n
In this case, n has no meaning.
The blank columns are spaced.
The right blank columns are spaced.
* CNT
Counts from 1 to 5 at m = 0 and n = 0.
Counts from 6 to 10 at m = 1 and n = 0.
Counts from 11 to 15 at m = 3 and n = 0.
Counts from 16 to 20 at m = 3 and n = 1.
Counts from 21 to 25 at m = 3 and n =2.
68
CBM-270 User's Manual
If a counter value is larger than
FOR I=1 TO 5
LPRINT CHR$ (&HID) ; "c" ;
NEXT I
LPRINT CHR$ (&HA) ;
RETURN
m denotes the
CITIZEN

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis