Summary Of Output Response Types - HP 7470A Interfacing And Programming Manual

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

Advertisement

)
■}
he Output Status Instruction, OS
The output s t a t u s instruction, OS, is used to o u t p u t t h e
decimal equivalent of the s t a t u s byte.
i ' M v l
T h i s instruction is useful in debugging o p e r a t i o n s a n d in
digitizing applications.
I f f i E E l
OS
(terminator)
No p a r a m e t e r s are used. The instruction will execute
even if no t e r m i n a t o r is received.
Upon receipt of the O S instruction, the internal eight-bit s t a t u s byte is
converted to a n integer between 0 a n d 255. Output is in A S C I I in t h e
form:
s t a t u s [TERM)
The s t a t u s bits are defined a s follows:
B i t
V a l u e
B i t
P o s i t i o n
16
32
64
28
4
5
6
7
M e a n i n g
Pen down.
P I or P 2 changed; cleared b y r e a d i n g
output of O P in HP-IB or HP-IL s y s t e m
or b y a c t u a l output of P1.P2 i n RS-232-C
system.
Digitized point available; cleared b y
r e a d i n g digitized value in HP-IB or
HP-IL system or by output of point in
RS-232-C system.
Initialized; cleared b y r e a d i n g O S output
in HP-IB or HP-IL system or by output
of the s t a t u s byte in RS-232-C system.
Ready for data; pinch wheels down.
Error; cleared by r e a d i n g OE output in
HP-IB or HP-IL system or by output of
the error in RS-232-C system.
Require service message set ( a l w a y s 0
for O S ; 0 or 1 for HP-IB serial poll).
Not used
Upon power up, t h e s t a t u s is decimal 24, the s u m of 8 (initialized) a n d
16 (ready for d a t a ) . U p o n o u t p u t of the s t a t u s byte after a n O S
c o m m a n d , bit position 3 is cleared.
■8 OBTAINING INFORMATION FROM THE PLOTTER
Summary of Output R e s p o n s e Types
T h e following t a b l e s h o w s t h e n u m b e r a n d t y p e of i t e m s in the re­
s p o n s e to e a c h H P - G L o u t p u t c o m m a n d . T h e t a b l e i n c l u d e s o u t p u t com­
m a n d s e x p l a i n e d in C h a p t e r s 2 a n d 6 a s well a s in t h i s c h a p t e r . T h i s
table will be helpful w h e n p r o g r a m m i n g in l a n g u a g e s s u c h as FOR­
T R A N w h i c h r e q u i r e you to specify t h e t y p e of a n d n u m b e r of digits i n
a variable.
Instruction
OA
OC**
OD
OE
OF
01
0 0
OP
OS
OW
Number of
Parameters
Returned*
3
3
3
1
2
1
8
4
1
4
Type and R a n g e
integers, all =? 5 digits
decimals, a l K 11 digits
integers, all ^ 5 digits
integer, 1 digit —
integers, 2 digits each
5-character string
integers, 1 digit each
integers, 1st and 3rd =S 5 digits;
2nd and 4th ^ 4 digits
integer, ^ 3 digits
integers, 1st and 3rd ^ 5 digits;
2nd and 4th ^ 4 digits
*In addition to these parameters, the output terminator [TERM] is always sent
at the end of output, and commas are sent to separate parameters.
**If you have an HP-IB or RS-232-C plotter that has a serial prefix number
lower than 2308A, OC parameters are output as integers. For more informa­
tion, refer to the explanation of the OC instruction in this chapter.
OBTAINING INFORMATION FROM THE PLOTTER 7-9

Advertisement

Table of Contents
loading

Table of Contents