A Brief Word About Plotter Output; Notes For An Hp-Ib User; Notes For An Rs-232-C User; Notes For An Hp-Il User - HP 7470A Interfacing And Programming Manual

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

Advertisement

)
\ Brief Word about Plotter Output
>.
There are slight differences in the timing of output when the plotter is
)
used with the HP-IB, HP-IL, or RS-232-C interfaces. Read the para-
\
graph below which pertains to your system.
totes for a n HP-IB User
)
When the 7470 has an HP-IB interface, the terminator for an output
)
)
)
)
> )
I )
i.
)
■ ■
)
' v
)
( )
{ )
' )
''. )
statement, denoted [TERM], is a carriage return followed by a line feed.
The output instructions in this chapter should not be used when the
plotter is in listen-only mode since the plotter in listen-only mode can­
not output anything. Output instructions will be ignored by the plotter
so the computer will get no response to its read statement, and, typi­
cally, the program will halt.
A plotter with an HP-IB interface will respond only when the computer
sends a read command (the plotter is instructed to talk). Therefore, a
read statement should directly follow any output command. When a
second output command is received before data from the first command
has been read, the new data overwrites the old data and the old data is
lost. Refer to Chapter 9 for more information.
otes for a n RS-232-C User
With an RS-232-C interface, the 7470's terminator for an output state­
ment, denoted [TERM], is a carriage return, unless the terminator is
modified by an ESC . M command. As soon as an output command has
been parsed by the plotter, output occurs according to the handshake
protocol established by the ESC . M and ESC . N commands. Use of
turnaround delays, intercharacter delays, and an output initiator
should be specified as necessary to assure that output will not be lost
because the computer is not prepared to receive it. The information nec­
essary to assure this should be contained in the documentation for your
computer. Refer to Chapter 10 of this manual for more information.
' )
( )
i )
'
)
C )
/lotes for a n HP-IL User
When the 7470 has an HP-IL interface, the terminator for an output
statement, denoted [TERM], is a carriage return followed by a line feed.
A plotter with an HP-IL interface will only respond when it is instructed
by the controller to talk. Therefore, a read statement should follow any
output command so that the plotter can send the requested information.
There are no special output timing considerations with HP-IL. This is
because data are sent through the interface bit-serially; only one mes­
sage can travel through the loop at a given time. Refer to Chapter 11
and your computer's documentation for more information.
)
-2 OBTAINING INFORMATION FROM THE PLOTTER
The Output Actual Position and
Pen Status Instruction, OA
I'lyililliill'lJ
The output actual position and pen status instruction,
OA, is used to output the X- and Y-coordinates and pen status (up or
down) associated with the actual pen position.
I ' f i ¥ l
This instruction can be used to determine the pen's current
position in plotter units. You might use that information to position a
label or figure, or determine the parameters of some desired window.
§SMi?lfiKl OA
(terminator)
Output is always in plotter units.
No parameters are used. The instruction will execute even if no term­
inator is received.
The pen position and status are output to the computer as integers in
ASCII in the form:
X,Y,P [TERM]
where
X is always the X-coordinate in plotter units,
Y is always the Y-coordinate in plotter units,
P is the pen status (0 = pen up, 1 = pen down), and
[TERM] is the output terminator for the interface installed.
The ranges of the X- and Y-coordinates are the current mechanical
limits determined by the setting of the paper switch.
US
A4
0 < X < 1 0 300
0 ^ X ^ 1 0 900
0 s S Y < 7 6 5 0
0^Y*S7650
No positive sign is output.
E'l3
OBTAINING INFORMATION FROM THE PLOTTER
7-3
t )

Advertisement

Table of Contents
loading

Table of Contents