5 6
PCLS-848-P User's Manual
B.
Example in Turbo Pascal
( FILE NAME
:
EX2 TB.PAS
}
{
SET IEEE-488 PRINTER
)
{ Purpose
:
This program converts an IEEE-488 printer to a )
{
PC system printer.
)
{ Language
:
Turbo Pascal
)
program example2(input,output);
{SI TBPGPIB.INC)
var
addr,portno
:
integer;
s
:
char;
outstr
:
lstring;
begin
ieinit($2B8,21,0);
{ Enter the IEEE-488 bus printer address )
addr:=-l;
while (addr<O) or (addr>30) do
begin
write(‘Enter the GP-IB printer address ? ‘);
read(addr); writeln;
end;
portno:=l;
iedevice(addr,portno);
writeln(‘GP-IB printer is ready to use.’);
write(‘Send string to printer ? (y/n)’);
read(s); writeln;
if(s = ‘y’) then
begin
write(‘Enter the string : ‘);
read(outstr); writeln;
writeln(‘Sending string
‘);
writeln(Lst,outstr);
writeln(‘Donel,);
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...