Specifications

- 84 -
GS C 1 n1 n2 n3 n4 n5 n6
[Function] Setting the numbering counter mode (A)
[Code] <1D>H<43>H<31>H<n1><n2><n3><n4><n5><n6>
[Range] 0 n1 , n2 , n3 , n4 , n5 , n6 255
[Outline] This command sets the numbering (serial number counter) mode.
n1 + n2 x256 (n1 = remainder, n2 = quotient): Counter default
n3 + n4 x256 (n3 = remainder, n4 = quotient): Counter final value
n5: Counter step value
n6: Identical counter print counter
(n1 + n2 x256) < (n3 + n4 x256): Count-up system
(n1 + n2 x256) > (n3 + n4 x256): Count-down system
(n1 + n2 x256) = (n3 + n4 x256) or n5 = 0 or n6 = 0: Counter stop
[Default] n1 + n2 x256 = 1
n3 + n4 x256 = 65535
n5 = 1
n6 = 1
[See Also] GS C0 , GS C2 , GS c , GS C ;
[Sample Program]
LPRINT CHR$(&H1D);"C0"; *CNT
LPRINT CHR$(3); CHR$(0); FOR I=1 TO 5
LPRINT CHR$(&H1D);"C1"; LPRINT CHR$(&H1D);"c";
LPRINT CHR$(50); CHR$(0); NEXT I
LPRINT CHR$(0); CHR$(0); LPRINT CHR$(&HA);
LPRINT CHR$(5); CHR$(2); RETURN
GOUSAB *CNT
LPRINT CHR$(&H1D);"C2";
LPRINT CHR$(5); CHR$(0); CHR$(10);
GOUSAB *CNT
END
[Print Results]
When printing the counter value by setting a count-down
range = 0 to 50, step value = 5, repeat count = 2,
50 50 45 45 40 and starting value = 50.
5
0 50 45 40 When printing the counter value by setting a count-down
range to 0 to 50, step value = 5, repeat count = 1,
and starting value = 5, step cleared.