Graphic Mode Commands; Command Format - Sharp mz-800 Technical Reference And User's Manual

Hide thumbs Also See for mz-800:
Table of Contents

Advertisement

11-14 Graphic mode commands
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
LINE TYPE
Lp (p=O to 15)
ALL INITIALIZE
A
HOME (PHONE)
H
INITIALIZE (HSET)
I
DRAW (LINE)
Ox, y, ... , xn, yn
(-999~x. y~999)
RELATIVE DRAW
J..6.x, ..6.y, .. , ..6.xn, ..6.yn
(RUNE)
(-999~..6.x,
..6.y;a999)
MOVE (MOVE)
Mx, y
(-999;ax,
y~999)
RELATIVE MOVE
R..6.x,..6.y
(RMOVE)
(-
999~
..6.x,..6.y
~999)
COLOR CHANGE
Cn (n=O to 3)
(PCOLOR)
SCALE SET
Sn (n=O to 63)
ALPHA ROTATE
Qn (n=O to 3)
PRINT
Pc1c2c3 ... en (n= oo)
AXIS (AXIS)
Xp,q,r (p= 0 or 1)
(q = -999 to 999)
(r= 1 to 255)
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
0, J,
M, R
Function
Specifies the type of line (solid or dotted) and the dot
pitch.
p=O: solid line, p=1 to 15: dotted line
Places the printer in the text mode.
Lifts the pen and returns it to the origin (home po·
sit ion).
Sets the current pen location as the origin (x=O, y=
0).
Draws lines from the current pen location to coor·
dinates (xl, yl), then to coordinates (x2, y2), and so
forth.
Draws lines from the current pen location to relative
coordinates (..6.x1, ..6.y1), then to relative coordinates
(..6.x2, ..6.y2), and so forth.
Lifts the pen and moves it to coordinates (x, y).
Lifts the pen and moves it to coordinates(..6.x, ..6.y)
Changes the pen colour to n.
Specifies the character scale.
Specifies the direction in which characters are printed.
Prints characters.
Draws an X axis when p= 1 and a Y axis when p=O.
q specifies the scale pitch and r specifies the number
of scale marks to be drawn.
", " 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.
41

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents