Download Print this page

Sharp MZ-800 Service Manual page 44

Hide thumbs

Advertisement

MZ-800
4-3.
Graphic mode commands
4-3-1. Command type
In the graphics mode, the computer can control the printer with the following commands.
The words in parentheses are BASIC statements which have the same functions as the graphics mode
commands.
Command name
Format
Function
LINE TYPE
Lp (p=O to 15)
Specifies the type of line (solid or dotted) and the
dot pitch.
p = 0 : solid line, p = I to 15 : dotted line
ALL INITIALIZE
A
Places the printer in the text mode.
HOME (PHONE)
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=O).
DRAW (LINE)
Dx, y, ... , xn, yn
Draws lines from the current pen location to
(-
999~x, y~999)
coordinates (Xl. Yt), then to coordinates (X2, Y2),
and so forth.
RE LA TIVE DRAW
J.:lx, .:ly, ... , .:lxn, .:lyn
Draws lines from the current pen location to reI a-
(RLINE)
( - 999
~
.:lx, .:ly
~
999)
tive coordinates (.:lxI. .:lYt), then to relative coor-
dinates (.:lx2, .:lY2) and so forth.
MOVE (MOVE)
Mx, Y
Lifts the pen and moves it to coordinates (x, y).
(-999~x, y~999)
RELATIVE MOVE
R.:lx, .:ly
Lifts the pen and moves it to coordinates
(RMOVE)
( - 999
~.:lx,
.:ly
~
999)
(.:lx, .:ly).
COLOR CHANGE
Cn (n=O to
3)
Changes the pen colour to n.
(PCOLOR)
SCALE SET
Sn (n=O to
63)
Specifies the character scale.
ALPHA ROTATE
Qn (n= 0 to
3)
Specifies the direction in which characters are
printed.
PRINT
PCtC2C3 ... cn (n =
00)
Prints characters.
AXIS (AXIS)
Xp, q, r (p=O or I)
Draws an X axis when p = I and a Y axis when
(q = - 999 to 999)
p = O. q specifies the scale pitch and r specifies the
(r = I to 255)
number of scale marks to be drawn.
4-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 separater 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.
43

Advertisement

loading

  Also See for Sharp MZ-800

  Related Manuals for Sharp MZ-800

This manual is also suitable for:

Mz-1p16Mz-1e20