Plotter-To-Computer - HP 7470A Interfacing And Programming Manual

Graphic plotter
Hide thumbs Also See for HP 7470A:
Table of Contents

Advertisement

>
)
)
)
)
)
;
)
)
)
Result:
APPLE I I SENDING DATA
The PR# 3: IN# 3 statement must be included in each program before
instructions can be sent to the plotter. These statements assume the
IEEE-488 interface card (HP-IB) is in slot three of the computer. The
string Z$ addresses the plotter at address 5 to listen. It must be
included in every print statement which sends HP-GL commands to the
plotter. The PR# 0: IN# 0 statement directs keyboard output to the dis­
play and must be included before the end of the program or before any­
thing can be printed on the display.
El, 3
■T"
EsrS
E i 3
lotter-to-Computer
Typically, the computer obtains output information from the plotter by
using I/O statements such as READ, INPUT, or ENTER. Sometimes
these statements are available only in I/O ROMs, such as in the
v )
HP Series 80 computers. Check your computer documentation or ask
, \
your HP salesperson to determine if your system requires a special I/O
ROM. The following examples of obtaining output data from the plotter
[ )
using various computers are only intended to illustrate the necessity for
v
understanding the I/O statement protocol implemented on your com-
* '
puter. Each of these examples commands the pen to move to plotter
f \
coordinates X = 1000, Y = 1000 and then output the current pen position
and the plotter identifier string to the computer.
T
P 9825 and 9826 HPL
Example:
o
0 :
1 :
2 :
3 :
4 :
5 :
6 :
f x d
uir t
r ed
wr t
r ed
dsp
end
0 ; d i m
n $ [ 5 ]
7 0 5 , " P R 1 0 0 0 , 1 O O O ; 0 C "
7 0 5 , R , B , C
7 0 5 , " 0 1 "
7 0 5 , R $
R , B , C , R *
Displayed current pen position and identification.
1000 1000 0 7470A
{P 9826 BASIC
Example:
( )
( )
( )
10
PRINTER I S 705
20
PRINT " P R 1 0 0 0 , 1 0 0 0 ; 0C"
30
ENTER 7 0 5 ; f l , B , C
40
PRINT " 0 1 "
50
ENTER 7 0 5 ; R $
60
DISP
R , B , C , R $
70
END
Displayed current pen position and identification.
1000
1000
0
7470A
9-10 HP-IB INTERFACING
HP 9835/9845
Example:
10
20
30
40
50
60
70
PRINTER I S
7 , 5
PRINT
" P R 1 0 0 0 , 1 0 0 0 ; 0 C
ENTER 7 0 5 ; f l , B , C
PRINT " 0 1 "
ENTER 7 0 5 ; R $
DISP R , B , C , f l $
END
I
E 3
eta
E
1
3
1
Displayed current pen position and identification.
1000
1000
0
HP 2647
Example:
10 RSSIGN " H t t 5 "
TO «1
20 PRINT
« 1 ; " P R 1 0 0 0 , 1 0 0 0 ; O C "
30 RERD
tt1;R,B,C
4 0 PRINT
* 1 ; " 0 I "
50 RERD «1 ;R$
60 PRINT
R , B , C , R $
70 END
Displayed current pen position and identification.
1000
1000
0
HP-85/86/87
Example:*
10 PRINTER IS 705
20 PRINT "PR1000,1000;0C"
30 ENTER 705 ; R,B,C
40 PRINT "01;"
50 ENTER 705 ; R$
60 DISP R,B,C,fl$
70 END
Displayed current pen position and identification.
7470A
7470A
El 3
1000
0
1000
7470A
♦Requires I/O ROM HP Part Number 00087-15003.
HP-IB INTERFACING
9-11
C)

Advertisement

Table of Contents
loading

Table of Contents