Sharp MZ-700 Series Owner's Manual page 239

Personal computer
Hide thumbs Also See for MZ-700 Series:
Table of Contents

Advertisement

A.6.3 Graphic mode commands
A. 6. 3. 1 Command type
In the graphic mode, the printer can be controlled by outputting the following commands to the printer.
Words in parentheses are BASIC statements which have the same functions as the graphic mode com-
mands.
Command name
Format
Function
LINE TYPE
Lp (p = 0 to 15)
Specifies the type of line (solid or dotted) and
the dot pitch.
p = 0 : solid line, p = 1 — 15 : dotted line
p
p
ALL INITIALIZE
A
Sets the printer in the text mode.
HOME (PHOME)
H
Lifts the pen and returns it to the origin (home
position).
INITIALIZE (HSET)
I
Sets the current pen location as the origin
(x = 0, y = 0).
DRAW
(LINE)
Dx, y, . . . xn, yn
( - 9 9 9 ^ x , y < 999)
Draws lines from the current pen location to
coordinates ( x j , y j ) , then to coordinates
(
x
2 ' Y2 )>
a n
d so forth.
RELATIVE DRAW
(RLINE)
J A X ,
Ay . . . Axn, Ayn
( - 9 9 9 < AX, Ay < 9 9 9 )
Draws lines from the current pen location to
relative coordinates (axj , Ayj), then to relative
coordinates (AX
2
, AY
2
) and so forth.
MOVE
(MOVE)
Mx, y
(—999 < x, y < 999)
Lifts the pen and moves it to coordinates (x, y).
RELATIVE MOVE
(RMOVE)
R A X ,
Ay
( - 9 9 9
< A X ,
Ay
<
999)
Lifts the pen and moves it to relative coordinates
( A X ,
Ay).
COLOR CHANGE
(PCOLOR)
Cn (n = 0 to 3)
Changes the pen color to n.
SCALE SET
Sn (n = 0 to 63)
Specifies the character scale.
ALPHA ROTATE
Qn (n = 0 to 3)
Specifies the direction in which characters are
printed.
PRINT
P c ! c
2
c
3
. . . cn (n = °°)
Prints characters.
AXIS
(AXIS)
Xp, q, r (p = 0 or 1)
(q = - 9 9 9 to 999)
( r = 1 to 255)
Draws an X axis when p = 1 and a Y axis when
p = 0. q specifies the scale pitch and r specifies
the number of scale marks to be drawn.
A. 6. 3. 2 Command format
There are 5 types of command formats as shown below.
1.
Command character only (without parameters)
"A",
H , I
2.
Command character plus one parameter
"L", "C", S , Q
3.
Command character plus pairs of parameters
D , J , M , R
, is used to separate parameters, and a CR code is used to end the parameter list.
4.
Command plus character string
P
The character string is terminated with a CR code.
5.
Command plus three parameters
x
.,
"," is used to separate parameters.
199-

Advertisement

Table of Contents
loading

Table of Contents