¿ªÔÆÌåÓý

Re: Personal Problem to Link OpAmp with SubCircuit


 

--- In LTspice@..., <Bernhard_Kraemer@w...> wrote:
Hello,

I have a problem with new symbol designing!

I'd like to design a simple amplifier circuit with the OpAmp TL071.
For that, I drawed a new symbol: TL071.asy
I set the attribute "Prefix : X"
I also set the attribute "SpiceModel" to the filename TL071.lib,
which can be found in the directory C:&#92;Programme&#92;LTSpice&#92;lib&#92;sub&#92;.
In the file TL071.lib, I saved the subcircuit like this:
.SUBCKT TL071 1 2 3 4 5
C1 11 12 3.498E-12
C2 6 7 15.00E-12
DC 5 53 DX
and so on...

Unfortunately, I don't get no circuit with the so-defined TL071 to
work.
The error message tells:
"Error: Unknown device type in: xu1 n004 n001 n002 0 n002 tl071"

I think, it is because I didn't clearly define the library file
where the TL071 subcircuit is saved. But I don't know no way to
define a library in a schematics file.

What could I do to get my circuit with my self-designed OpAmp-Model
to work?

Hello Bernhard,
have you really drawn it new?

Just make a copy of the LT1013.asy -> TL071.asy
Replace the obvious LT1013 with TL071.
Then restart LTSPICE.
Replace the ltc.lib with your ti.lib. You can put
as many models you want into this library file.

Best Regards
Helmut

The adapted LT1013.asy file:

Version 4
SymbolType CELL
LINE Normal -32 32 32 64
LINE Normal -32 96 32 64
LINE Normal -32 32 -32 96
LINE Normal -28 48 -20 48
LINE Normal -28 80 -20 80
LINE Normal -24 84 -24 76
LINE Normal 0 32 0 48
LINE Normal 0 96 0 80
LINE Normal 4 44 12 44
LINE Normal 8 40 8 48
LINE Normal 4 84 12 84
WINDOW 0 16 32 Left 0
WINDOW 3 16 96 Left 0
SYMATTR Value TL071
SYMATTR Prefix X
SYMATTR SpiceModel TI.lib
SYMATTR Value2 TL071
SYMATTR Description Single Precision Operational Amplifier
PIN -32 80 NONE 0
PINATTR PinName In+
PINATTR SpiceOrder 1
PIN -32 48 NONE 0
PINATTR PinName In-
PINATTR SpiceOrder 2
PIN 0 32 NONE 0
PINATTR PinName V+
PINATTR SpiceOrder 3
PIN 0 96 NONE 0
PINATTR PinName V-
PINATTR SpiceOrder 4
PIN 32 64 NONE 0
PINATTR PinName OUT
PINATTR SpiceOrder 5

Join [email protected] to automatically receive all group messages.