Printronix MVP Series Printer User Manual


 
Programming728
ASCII Characters
The 150B currently recognizes 56 ASCII control codes. These codes may be
single ASCII control characters (decimal numbers 00 through 31 and 127) or
the Escape character (decimal 27) followed by an ASCII character and, in
some cases, one or more additional decimal characters.
NOTE: Refer to Appendix A for more information on the extended ASCII
character set.
In BASIC
Because most programmers are familiar with BASIC, and BASIC uses
decimal numbers in LPRINT CHR$ (n) statements, all the control codes are
referenced by their decimal value. For example, if you wish to transmit a
Line Feed command to the printer in BASIC, you would use the following
syntax:
LPRINT CHR$ (10);
NOTE: 10 is the decimal value of the ASCII control character LF, or line
feed.
Table 79 alphabetically lists the standard set of 128 ASCII characters and
their corresponding codes in binary, octal, decimal and hexadecimal. An
extended ASCII character set is included in Appendix A.
NOTE: To view the ASCII control codes by function, refer to Appendix A.