EasyManua.ls Logo

Panasonic KX-P1124 - 4.5 Entering Control Codes from Within a Program; 4.6 Entering Hexadecimal Code

Panasonic KX-P1124
180 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
This Manual: http://www.manuallib.com/file/2525964
Software Introduction
Notice that when you enter a BASIC command directly from the
keyboard, you
do
NOT
use
a line number
as
you
would
in
a BASIC
program.
Moreover, control codes may
be
entered only one line at a
time.
4.5 Entering Control Codes from Within a Program
Control commands may also
be
entered from within a BASIC program.
~
The advantage to this technique is that
you
can
incorporate a number of
different control commands into a single program
and
therefore
produce output with a variety of special features. This is done
by
RUNning your program once.
In
this case BASIC requires that each line
in
your program
be
preceded
by
a line number.
As
an
example, we mentioned earlier that the command LPRINT
CHR$(15)
entered directly from the keyboard
will
set compressed print
on
this printer.
From
within a BASIC program, this command might
be:
50
LPRINT CHR$(15)
4.6 Entering Hexadecimal Code
In
the event that you will
be
entering ASCII codes
in
hexadecimal form,
you must supply two extra characters per
code.
These
are
the
ampersand
(&)
and
the letter
H.
The example below illustrates the
BASIC command to set compressed print
on
this printer.
Decimal Hexadecimal
LPRINT CHR$(15)
LPRINT
CHR$(&HOF)
Refer
to
Appendix
A.
4.7 Control Codes
A number of the printer control commands require only a single
ASCII-coded character
as
part of the LPRINT statement. The command
LPRINT CHR$(15) which we discussed earlier is
an
example of a
single-byte control command.
4-4

Table of Contents