24.01.2015 Views

1 Turn off the power of the printer. - Van Mechelen

1 Turn off the power of the printer. - Van Mechelen

1 Turn off the power of the printer. - Van Mechelen

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GS C0 m n<br />

[Function]<br />

[Code]<br />

[Range] 0 m 5<br />

0 n 2<br />

[Outline]<br />

[Caution]<br />

[Default] m = 0 , n = 0<br />

Setting <strong>the</strong> numbering print mode.<br />

HHH<br />

This command sets <strong>the</strong> numbering(serial number counter) print<br />

mode. m denotes <strong>the</strong> number <strong>of</strong> print columns.<br />

m=0 Prints <strong>the</strong> columns indicated by numeral. In <strong>the</strong>is<br />

case, n has no meaning.<br />

m=1 to 5 Indicates <strong>the</strong> maximum number <strong>of</strong> columns to be<br />

printed.<br />

If a counter value is larger than this <strong>the</strong> number <strong>of</strong><br />

columns set with this command, <strong>the</strong> <strong>printer</strong> will<br />

<strong>the</strong> lower m-columns <strong>of</strong> <strong>the</strong> counter value.<br />

n specifies a printing position within <strong>the</strong> printing columns.<br />

n=0 Prints <strong>the</strong> data right justified. The blank columns<br />

are spaced.<br />

n=1 Prints <strong>the</strong> data right justified. The blank columns<br />

are filled with "0".<br />

n=2 Prints <strong>the</strong> data left justified. The right blank will<br />

become invalid.<br />

• If ei<strong>the</strong>r m or n has a value beyond <strong>the</strong>ir ranges, that setting<br />

will becomes invalid.<br />

[See Also] GS C1, GS C2, GS c, GS C;<br />

[Sample Program]<br />

[Print Result]<br />

LPRINT CHR$(&H1D) ;”C0”;<br />

LPRINT CHR$(0);CHR$(0);<br />

GOUSAB *CNT<br />

LPRINT CHR$(&H1D);”C0”;<br />

LPRINT CHR$(1); CHR$(0);<br />

GOUSAB *CNT<br />

LPRINT CHR$(&H1D);”C0”;<br />

LPRINT CHR$(3) CHR$(0);<br />

GOUSAB *CNT<br />

LPRINT CHR$(&H1D);”C0”;<br />

LPRINT CHR$(3); CHR$(1)<br />

GOUSAB *CNT<br />

LPRINT CHR$(&H1D);”C0”;<br />

LPRINT CHR$(3) CHR$(2);<br />

GOUSAB *CNT<br />

END<br />

12345 < Counts from 1 to 5 at m = 0 and n = 0.<br />

67890 < Counts from 6 to 10 at m = 1 and n = 0.<br />

11 12 13 14 15 < Counts from11 to 15 at m = 3 and n = 0.<br />

0160 170 180 19020 < Counts from 16 to 20 at m = 3 and n = 1.<br />

21 22 23 24 25 < Counts from 21 to 25 at m = 3 and n = 2.<br />

— 143 —<br />

*CNT<br />

FORI = 1 TO 5<br />

LPRINT CHR$(&H1D);”c”;<br />

NEXT I<br />

LPRINT CHR$(&HA);<br />

RETURN

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!