Tab; Sorgn; Glcursor - Sharp PC-1500A Instruction Manual

Hide thumbs Also See for PC-1500A:
Table of Contents

Advertisement

All
and
more
about Sharp
PC-1500
at
http://www.PC-1500.info
C.6.7.
TAB
The TAB statement
is identical to
the
LCURSOR statement. except that it may
be
used within
an
LPRINT
statement. This
type
of LPR INT
statement
has
the form:
LPR
INT
TAB
position; it•m
·list
The
same
comments
which apply
to
the
position expression
of
LCU
RSOR
apply to TAB
.
If
the
item-list
is empt:Y
the
net
result of the
instruction
listed above \Viii
be
a Linc Feed.
C.6.8.
SORGN
(Se
t
ORiGiN)
The SORGN command
is
used to establish the origin of the
X-
Y coordinate
system for
sub·
sequent graphing
commands.
The SORGN statement
makes
the current pen position the origin.
Thus, this instruction
is usually
used
directly
after an
instruction
which moves the pen to
a
given
spot on the paper.
The
form
of
the SORGN command
is
simply:
SORGN
(GRAPH
mode
only)
NOTE.
The
CE-15-0 printer allows a pen
position to
be
specified
which
is
outside the
range
of
drawable
positions.
In
this
case
the
pen
moves
as far as
it
can
and
then "cuts off". If
the
pen is
moved into
this
imaginary realm
and then
the
SORGN command
is issued.
subsequent
printing
or
dra\'Jing statements \viii
have no
effect.
It
would thus appear as
if
the
program
was in
error
or
th
at
t
he
Interface was damaged.
The following
p
royram sets
the origin to 100
units
up and
100
u
nits
to
the
right of
the
pen's
current position.
l'l
then draws a
10 unit box
with one
of
the
boxes' corners at
the
new
origin:
10 GRAPH
20
LINE
(0, 0) -
(100,
100), 9
30
SORGN
40
LINE
(0,
0)
-
(10.
10),
0, O. B
50
TEXT
60
END
C.6.9.
GLCURSOR
The
GLCURSOR statement moves
the
pen
to
any
X-
Y coord
inate without
drawing a line.
The
form
of
the
GLCURSOR statement
is:
G6CURSOR
(expre$$ion
1,
expres.sion
2)
Botti expressions
must
evaluate to a n
umber
in tile
range
-2047
to
+2047.
Expression1
represents the X distance to the
destination
point and cxpression2 represents the Y distance
to the destination point.
NOTE
If the des-tination point
is
outside
the range
of points to which the pen may
actually
move, the pen will stop at one side of the paper.
Internally,
the
counters which control
the
pen
are
still
counting toward
the
goal.
Examples
of
the use
of the GLCURSOR statement follow:
124
Do not sale this PDF
!!!

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents