CHAPTER 2 INSTALLATION
55
4.2. Set the IEEE 48S Printer t
A. Example in Microsoft Pascal
{ FILE NAME. EX2 MS.PAS
}
{ SET IEEE-488 PRINTER
}
{ Purpose : This program converts an IEEE-488 printer to a
}
{ PC system printer.
}
{ Language : Microsoft Pascal
}
Program example2(input,output);
{$INCLUDE : ‘MSPGPIB.INC’}
var
addr,portno
:
integer;
s
:
char;
outstr
:
lstring(255);
PRINTER
:
text;
begin
ieseg(16#D000);
icinit(l6Y2B8~2l~o);
( Enter the IEEE-488 bus printer address )
addr:=-1;
while(addr < 0) or (addr > 30) do
begin
write(‘Enter the GP-IB printer address 7 ‘),
readln(addr); writeln;
end;
portno:=1;
iedevice(addr,portno);
writeln(‘GP-IB printer is ready to use.’);
write(‘Send string to printer ? (y/n)’);
readln(s); writeln;
if(s = ‘y’) then
begin
write(‘Enter the string : ‘);
readln(outstr); writeln;
writeln(‘Sending string
‘);
assign(PRINTER, ‘LPT1:’);
rewrite(PRINTER);
writeln(PRINTER,outstr);
close(PRINTER);
writeln(‘Done!’);
end;
end.
(End of program)
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...