Why Does LTspice Report Unknown Subcircuit for a 1N5231B Zener Diode?

In summary: AN/AN-895.pdf).**--------------------------------------------------------------------***************** End of Zener Diode Electrical Parameters ***********In summary, the conversation discusses a code and its components for a project simulation. The code includes various components such as a SINE source, resistors, and diodes. The user has successfully imported and used a 1n4004 diode, but is having trouble with a 1N5231B Zener diode subcircuit. The conversation also includes the contents of the 1N5231B.lib file, which provides information on the Zener diode's electrical parameters.
  • #1
xcvxcvvc
394
0
* C:\Documents and Settings\****(myusername)\Desktop\project\projectSimulation.asc
Vin Vin N001 SINE(0 22.2 60)
C1 Vc 0 100e-6
XDz 0 Vout 1N5231B
RLIMIT Vc Vout 10
RLOAD Vout 0 500
D1 0 Vin 1n4004
D2 Vin Vc 1n4004
D3 N001 Vc 1n4004
D4 0 N001 1n4004

.lib C:\Program Files\LTC\LTspiceIV\lib\cmp\standard.dio
.lib C:\Documents and Settings\<username>\Desktop\project\1n4004.mod
.lib C:\Documents and Settings\<username>\Desktop\project\1N5231B.lib
.tran 0 1 0 .1m
.backanno
.end

The above is my code. My .lib statement correctly imports and uses the 1n4004 diode I found. However, the subcircuit representing my 1N5231B Zener keeps giving me this error:
Fatal Error: Unknown subcircuit called in:
xdz 0 vout 1n5231bHere are the contents of the 1N5231B.lib:
***************** Zener Diode Electrical Parameters ******************
** Product: 1N5231B
** Package: DO-35 Glass Case
**--------------------------------------------------------------------
* Node: anode cathode
.SUBCKT F1N5231B 2 1
D1 2 1 MD1
.MODEL MD1 D IS=2.14005e-10 N=2.0 XTI=1 RS=0.656
+ CJO=1.5e-11 TT=1e-08
R 1 2 MDR 4.00e5
.MODEL MDR RES TC1=0 TC2=0
RZ 2 3 10.8
IZG 4 3 0.1
R4 4 3 10
D3 3 4 MD3
.MODEL MD3 D IS=2.5e-12 N=1 XTI=0 EG=0.1
D2 5 4 MD2
.MODEL MD2 D IS=2.5e-12 N=3 XTI=0 EG=0.1
EV1 1 5 6 0 1
IBV 0 6 2.0e-02
RBV 6 0 MDRBV 185.5
.MODEL MDRBV RES TC1=1.0e-7
.ENDS
**********************************************************************
** Creation: Mar.-17-2009 Rev: 0.0
** Fairchild Semiconductor
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
Corporation
**--------------------------------------------------------------------
** Revision History:
** Date Version Notes
** 03/17/2009 0.0 Initial Release
**--------------------------------------------------------------------
** Disclaimer:
** The information in this document is provided in connection with
** Fairchild Semiconductor products. No license, express or implied,
** by estoppel or otherwise, to any intellectual property rights is
** granted by this document or by any conduct of Fairchild Semiconductor.
** Fairchild Semiconductor reserves the right to make changes without
** further notice to any products herein. Fairchild Semiconductor makes
** no warranty, representation or guarantee regarding the suitability of
** its products for any particular purpose, nor does Fairchild Semiconductor
** assume any liability arising out of the application or use of any product
** or circuit, and specifically disclaims any and all liability, including
** without limitation special, consequential or incidental damages.
** Fairchild Semiconductor does not convey any license under its patent
** rights nor the rights of others. Fairchild Semiconductor sells products
** pursuant to its standard terms and conditions of sale which are available
** upon request. Fairchild Semiconductor products are not designed,
** intended, or authorized for use as components in systems intended for
** surgical implant into the body, or other applications intended to
** support or sustain life, or for any other application in which the
** failure of the Fairchild Semiconductor product could create a situation
** where personal injury or death may occur. Should Buyer purchase or use
** Fairchild Semiconductor products for any such unintended or unauthorized
** application, Buyer shall indemnify and hold Fairchild Semiconductor and
** its officers, employees, subsidiaries, affiliates, and distributors
** harmless against all claims, costs, damages, and expenses, and reasonable
** attorney fees arising out of, directly or indirectly, any claim of
** personal injury or death associated with such unintended or unauthorized
** use, even if such claim alleges that Fairchild Semiconductor was
** negligent regarding the design or manufacture of the part. Fairchild
** Semiconductor is an Equal Opportunity/Affirmative Action Employer.
**--------------------------------------------------------------------
** Copyright:
** Copyright (C) 2009 Fairchild Semiconductor Corporation
** (http://www.fairchildsemi.com/disclaimers). All rights reserved.
**--------------------------------------------------------------------
** References:
** 1. "Diode Zener Voltage Regulator Circuit Analysis", AN-895
** (http://www.fairchildsemi
 

What is LTspice and how does it work?

LTspice is a free, open-source electronic circuit simulator software developed by Linear Technology. It allows users to create and simulate electronic circuits using a graphical user interface. LTspice uses the SPICE (Simulation Program with Integrated Circuit Emphasis) engine to model the behavior of electronic components and circuits.

Why am I getting an error in LTspice?

There could be several reasons for an error in LTspice, such as incorrect circuit connections, missing or incorrect component values, or simulation settings. It is essential to carefully review the circuit and simulation settings to identify the source of the error. Additionally, LTspice has a built-in error log that can provide more information about the error and its location.

How can I fix an error in LTspice?

The best way to fix an error in LTspice is to carefully review the circuit and simulation settings, as well as the error log. Double-check all component connections and values, and make sure the simulation settings are appropriate for the circuit being simulated. If the error persists, try simplifying the circuit or breaking it into smaller sections to isolate the problem.

Can I customize the error messages in LTspice?

Yes, it is possible to customize the error messages in LTspice. You can do this by editing the "errors.txt" file in the LTspice installation folder. However, it is recommended to keep the original error messages as they can provide valuable information about the error.

Are there any online resources for troubleshooting LTspice errors?

Yes, there are several online resources available for troubleshooting LTspice errors. The LTspice user group forums and the official LTspice help page are excellent places to start. Additionally, there are many online tutorials and guides that can help you learn how to use LTspice and troubleshoot common errors.

Back
Top