6 0
PCLS-848-P User's Manual
4.4. ADSOO PMU Programming
A. Example in Microsoft Pascal
{ FILE NAME
:
EX4_MS.PAS
}
{
ADS00 PMU PROGRAMMING
}
{ Purpose
:
This program measures 16 channel of voltages
}
{
and displays them. If the voltage of any channel }
{
is greater than a certain level then it close a
}
{
relay to drive an alarm.
}
{ Remark
:
The ADS00 has a 16 channel multiplexer in slot
}
{
0 and 16 channel relay actuator in slot 1. The
}
{
voltage measurement is done by an HP3478A DMM.
}
{
The ADS00 has an address of 9 and HP3478A has an }
{
address of 23.
}
{ Language
:
Microsoft Pascal
}
Program example4(input,output);
{$INCLUDE : ‘MSPGPIB.INC’}
Procedure iochk; {I/O error check routine}
var
errno [origin 16#DOoo:l6#2olA] : integer;
begin
case errno of
O
:
;
1
:
writeln(‘TIME OUTIl’);
otherwise
writeln(‘INTERFACE ERRORt1’);
end;
end;
var
oeolstr
:
lstring(8);
instr,outstr,chstr
:
lstring(255);
v
:
array[0..15] of real;
v_lmt
:
real;
i,k,hp3478,adS00
:
integer;
alarm,dum,meas
:
integer;
dumflag
:
boolean;
begin
{ main
}
hp3478:=23;
adS00:=9;
v_lmt:=3;
{ Voltage limit }
oeolstr:=chr(13);
ieseg(16#D000);
ieinit(l6X2B8~2l~o)
for i:=1 to 24 do writeln;
{ Clear screen
}
ieabort;
for i:=1 to 10000 do dum:=dum+1-1;
{ Delay for ADS00 reset }
Summary of Contents for PCLS-848-P
Page 1: ...PCLS 848 P IEEE 488 INTERFACE CARD PASCA SUPPORT PACKAGE USER S MANUAL...
Page 6: ...Figures Figuree 7 1 PCL 848A B Block Diagram 77...
Page 10: ...4 PCLS 848 P User s Manual...
Page 20: ...14 PCLS 848 P User s Manual...
Page 32: ...26 PCLS 848 P User s Manual If addr 0 or addr 30 ATN is set false String is entered...
Page 37: ...CHAPTER 2 INSTALLATION 31 ieinit ioport myaddr setting...
Page 42: ...36 PCLS 848 P User s Manual If addr 0 or addr 30 ATN is set false Long string is sent...
Page 56: ...50 PCLS 848 P User s Manual...
Page 80: ...74 PCLS 848 P User s Manual...
Page 83: ...CHAPTER 7 THEORY OF OPERATION 77 Figuree 7 1 PCL 848A B Block Diagram...
Page 84: ...78 PCLS 848 P User s Manual...
Page 95: ...CHAPTER 7 THEORY OF OPERATION 89...
Page 97: ...CHAPTER 7 THEORY OF OPERATION 91 Handshake Timing Sequence...
Page 102: ...96 PCLS 848 P User s Manual...