EasyManua.ls Logo

Sharp PC-1500 - Page 126

Sharp PC-1500
169 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...
A
ll
and more about Sharp PC-1500
at
http://www.PC-1500.info
C.6.7. TAB
T
he
TAB
statement
is
ident
ical
to
the LCURSOR state
men
t. except that it
ma
y be used within
an
LPRINT state
me
nt
. This ty
pe
of
LPRINT stat
emen
t has
th
e form:
LPAINT TAB
po
siti o
n;
item·list
The same
comments
which apply
to
the position expression of LCURSOR
app
ly
to
TAB. If
the i
tern
·list is e
mp
ty the
net
'e
su
lt of the instruc
tio
n
li
sted
abo
ve
\Vi
ii
be
a Line Feed.
C.6.8. SORGN {Set ORiGiN)
The SOHGN
command
is used
to
establish
the
or
igi
n of the X- Y coordin
ate
syst
em
fo
r
sub
·
sequent graphing
co
mm
a
nd
s. ·r
hc
SORGN stat
eme
nt mak
es
the
cu
rrent
pe
n pos.ition the origin .
Th
us,
this instr
uct
ion is usually u
sed
d ir
ect
ly
af
te;r an instructio n v;hich
moves
the
pen
to
a given
sp
ot
on the paper.
Th
e
fo
rm
or
t
he
SO
RG
N
co
mm
an
d is simply:
SORG
N
(GRAPH
mode
on
ly)
NOTE.
Th
e C
15
0
printe
r allows a
pe
n positi
on
to
be
sr>ccifiC?
d
wh
ich
is
outs
ide the range of
dr
av1ab
le positions. In this
case
the pen
moves
as
fa
r as it c
an
and
th
en "cuts o
ff
". If the pen
is
moved into
this
im
agi
na
ry realm
and
then the
SORGN
command
is
i
ss
ued,
subs
equent
pr
i
nt
i
ng
or
drawi
ng
statements
~
·1ill
h
ave
no effect.
It
.....
ould thus appear
as
if the progr
am
\Vas
in er
ro
r
or
that the Interface
i.
vas damaged.
Th
e
fo
ll
ow
ing pr
ogram
sets the origin to
100
un
its up and 1
00
un
its to t
he
right
of
the pen
's
current position.
ll
then draws a 10 unit box wi1h one of the boxes' corners
at
the nevJ origi
n:
10 GRAPH
20 LINE (0
.0)
- {
100
, 10
0).9
30
SORGN
40
LINE (0,
OJ
- (10, 10),
0,
O.
B
50 TEXT
60
E
ND
C
.6.9.
GLCURSOR
The
GLCURSOR
statement m
oves
the pen
to
any
X - Y coordinate \'Vithout d
ra
wi
ng
a line.
Th
e
fo
rm of the G
LCU
RS
OA
statement
is:
GLCURSOR (expr
e.,
ion 1, expre-ssion
21
Both
exp
ressio
ns
mu
st
eval
uate
to
a numb
er
in the range
-204
7
to
+204
7.
Expression 1
represents the X
dis
tance to the destination
poin
t
an
d expre
ssi
on 2 represents the Y distance
to the destination
po
int.
NOT
E If the destination
poin
t
is
outside the range of points to
\"V
hich the
p.
en
may
a
ct
ually
move, the pen
wi
ll
stop at one side
of
the
pa
p
er.
I
nt
erna
lly,
the counters whicA
cont
rol the pen
are
still
CO
t.
Jnt
i
ng
to
ward the goal.
Examples of the
use
of the GL
CU
RSOR sta
tem
en
t follow:
124
Do
not sale this PDF
!!!

Table of Contents

Other manuals for Sharp PC-1500

Related product manuals