Radio Shack 26-1190A Hardware Manual page 19

Plotter printer. trs-80 micro computer system
Table of Contents

Advertisement

G90
Function:
Moves
and draws
a
line
first
to the specified
Y
coordinate, then
to the
X
coordinate,
then
to the
original
Y
coordinate,
and
then
back
to the
start
point.
Thus
a rectangle
can be defined
by
the positions
of
two
of
its
diagonal
corners.
(One
of
them
being the
current
pen
position.)
Example:
LPRINT "G90 X300 Y900"
(a,
Y)
(a,b)
Current point
(X,Y)
(300,
800)
I
(X,b)
The pen moves
and draws
a
line
from
the current
pen
position
(a,
b) to
(a,
Y)
to (X,
Y)
to (X, b)
and
then
back
to
(a,
b).
G91
Function:
Moves
and draws
a
line
to
(a,
Y),
then
to
(X,
b),
and
then
to the
starting
point
(a,
b),
creating a triangular shape.
Example:
LPRINT
"G91 XI 000 Y1300"
(a,
Y)
t
(a,b)
Current point
*—
(X,Y)
1000, 1300)
(X,b)
Note on
G
Functions
When
a
G
function
code
is
not
specified,
any
previously
specified
G
function
will
continue.
Example:
LPRINT "G00 X800
Y400"
:
LPRINT
"XI 000
Y200"
(800,
400)
/
\
/
\
/
/
s
Starting
point
/
(1000,200)
-18-

Advertisement

Table of Contents
loading

Table of Contents