Philips PM 5191 Operating Manual page 74

Programmable synthesizer / function generator 0.1mhz—- 2 mhz
Hide thumbs Also See for PM 5191:
Table of Contents

Advertisement

Available languages

Available languages

E 3-20
In line 149 A$ picks up the command for the PM 5191. In the following lines 145, 15@ and 155 the
program: checks on whether this command
is 'IS?' for the learn mode, '1D?' for the identification of
the device, or '//' to switch back to local. If one of the two strings 'ID?' and 'IS?' is keyed in, the output
of the command
is followed immediately by taking in the string BS with the consequent output on the
VDU
(lines 175 and 180). In case of an error the status byte is output using the service request (SRQ);
bits @, 1, 2, 5 and 6 were activated in line 7@ using command 'MSR 193'. If an SRO occurs, the program
branches out at line 22@ and carries out a serial poll there; the decimal value of the entered status
byte is displayed as the variable 'S' in line 225.
If the PM 5191 is controlled by the P 2000 C via the IEEE interface, it should be taken into account
that the respond time of the PM 5191 at the JEC bus is considerably slower than that of the P 2000 C.
It is for this reason that line 16@ calls up a short waiting loop using GOSUB
259 after the command
(string A$) has been sent to the PM 5191. If an error occurs, then SRQ can be received before the next
INPUT is started in line 140.
2.
Programming example using an HP 85 computer
This example shows a possibility of controlling the PM 5191 via the IEC/IEEE bus using an HP 85. With
this program all commands can be sent to the instrument, strings accepted and error messages (= status
byte) received after a SRQ.
m@ OI
A¢Cf0I
device address = 5
@
OI1M
BSs£3H9
aq
Ges"
REMOTE
Fas
LOCAL
LOCKOUT
Ff
NUTFUT
745
a "MSR
163"
CH
TIMEGQUT
F
GOSUB
Se
SET
TIMEQUT
73186
OW
LHTR
- GOSUB
fhe
CONTROL
F.i
3
8
FE hi
REM
--------------
REM
QOISPe
"COMMAND
="
INPUT
ASF
IF Ags""-"
THEN
226
CUTFUT
FBS
«AF
ENTER
FMS
ES
B
OISP
oF
Reo"
GOTO
i46
LOCAL
Yas
STOP
GOTO
148
RE
FEM
------------
oreo
REM
CONTROL
Ff.
S=SPOLL« 7b
OiSP
"IHPUT
ERROR
}| ?
§ S="55
COWMTROL
7.4
3
RETURN
RE
REM
---------
ore ror
RETURN
END
ied
ne
a)!
Ot
fe ai Pe
'St
Wi cyt
dT
LS fe Gd he ee
OL
co AO
eed
es
a ate
ap ace
ASST
ate
Ee Tee
cs ee Pes
ee Ss ee
a Se Ge ee
am, ant
17) CT) fe Od
ee = Or
Don
OC
wr
Cod
Od
tad
tad
Kab
td
Cod
Gd
De
ho
Pea
fe
fea
Prd
oa
Pd
[ed
fa ee ee ee
et
ee Rt et
ee ae)

Advertisement

Table of Contents
loading

Table of Contents