Sharp MZ-700 Series Owner's Manual page 91

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

Advertisement

2.7.6.8 AXIS
Format
Function
Example
. .
(abbreviated format: AX.)
AXIS x, p, r
x
Integer specifying the axis drawn (0 or 1)
p
Integer specifying the scale pitch (—999 to 999)
r
Integer specifying the number of repetitions (1 to 255)
This statement draws the X-axis when x = 0 and the Y-axis when x = 1. The number
of scale marks specified in r are drawn with a pitch of p.
The following example draws the X and Y axes with scale marks from —240 to 240
at 10 unit intervals.
1 0
M O D E
G R
Switches the printer to the graphic
mode.
2 0
M O V E
2 4 0 ,
5
3 0
G P R I N T
[ 1 , 0 ] ,
" A "
4 0
M O V E
2 4 0 , 0
Lifts the pen and moves it to position
A (240, 0).
5 0
A X I S
0 , - 1 0 ,
4 8
Draws the Y-axis from position A to
position B with scale marks included
at 10-unit interval.
6 0
M O V E
2 4 0 ,
- 5 0 0
7 0
G P R I N T
[ 1 , 0 ] ,
" B "
8 0
M O V E
0 , — 2 4 0
Lifts the pen and moves it to position
C (0, - 2 4 0 ) .
9 0
G P R I N T
[ 1 , 0 ] ,
" C "
1 0 0
M O V E
0 ,
- 2 4 0
1 1 0
A X I S
1 , 1 0 , 4 8
Draws the X-axis from position C to
position D with scale marks included
at 10-unit intervals.
1 2 0
M O V E
4 7 0 , - 2 4 0
1 3 0
G P R I N T
[ 1 , 0 ] ,
" D "
1 4 0
M O D E
T N
The coordinates can be used in the same manner as ordinary Cartesian coordinates
after setting the point of intersection of the X and Y axes as the new origin. (X =
- 2 4 0 to 240, Y = - 2 4 0 to 240)
-89

Advertisement

Table of Contents
loading

Table of Contents