Home > Community > Forums > PCB Design > Pspice Model editor commands and capabilities.

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Pspice Model editor commands and capabilities. 

Last post Thu, Jun 27 2013 9:34 PM by alokt. 5 replies.
Started by AndyK1 17 Jun 2013 04:53 PM. Topic has 5 replies and 1278 views
Page 1 of 1 (6 items)
Sort Posts:
  • Mon, Jun 17 2013 4:53 PM

    • AndyK1
    • Not Ranked
    • Joined on Mon, Jun 17 2013
    • Posts 11
    • Points 175
    Pspice Model editor commands and capabilities. Reply

    Hello,

    My name is Andy and I am currently working as an intern. At my jobsite, we have OrCad 16.5 avalible to us. I am trying to use the model editor for pspice to create parts that will have the actual worst case data behind them.

    As an example, a milspec resistor may have %1 tolerance on its own, but this number increases with respect to the enviroment, how hot it is, radiation, life time of the part etc.. When everything is said and done, this number maybe 1.82%. I want to create a part that would have the proper part name and the tolerance on it so when a reliability engineer wants to run worst case analysis on pspice, he or she can directly pick the part from the library and place it on the circuit. I am also planning on automating the system of generating these parts and do it for thousands of different parts. The parts range from simple resistors all the way to transistors, even some stuff that has their own sub circuits like an LM117 voltage regulator.

    My question is what type of commands am I allowed to use inside the model editor? I will be more than likely creating these files by exporting excel data in to text. Can I use functions? Are there ways of doing mathmetical calculations inside the model such as " dev=(R1*.01)%" or use Value statement etc..

    Where can I get a hold of the complete valid command list for pspice models and subcircuits?

    I may need to used add,subtract, exponent,min(),max(),log type functions. Can pspice models handle these functions?

    • Post Points: 20
  • Tue, Jun 18 2013 2:02 AM

    • oldmouldy
    • Top 10 Contributor
    • Joined on Tue, Jul 15 2008
    • Woking, Surrey
    • Posts 1,382
    • Points 23,540
    Re: Pspice Model editor commands and capabilities. Reply

    Take a look at the pspcref.pdf, in the doc\pspcref directory of the installation, this is the reference for the PSpice models and model syntax.

    • Post Points: 20
  • Tue, Jun 18 2013 10:14 AM

    • AndyK1
    • Not Ranked
    • Joined on Mon, Jun 17 2013
    • Posts 11
    • Points 175
    Re: Pspice Model editor commands and capabilities. Reply
    I am looking at the Pspice model of an LM117 Voltage regulator and I cannot decipher these lines of code. That document that you linked does not have any explanation on the  EFB, EB and EP type devices.

    ESC 11 OUT VALUE(5.646-0.1125*V(6,5)*V(13,5)

    EFB 12 OUT VALUE {7.886-0.3727*V(13,5)+0.005097*V(13,5)*V(13,5)-0.02*V(13,5)*V(6,5)} . E

    EB 7 OUT 8 OUT 7.691

    EP 9 OUT 4 OUT 100
    • Post Points: 20
  • Tue, Jun 18 2013 1:35 PM

    • oldmouldy
    • Top 10 Contributor
    • Joined on Tue, Jul 15 2008
    • Woking, Surrey
    • Posts 1,382
    • Points 23,540
    Re: Pspice Model editor commands and capabilities. Reply
    Only the first character counts for a PSpice model, look at Analog Parts in the reference, these are all E parts, voltage controlled voltage sources.
    • Post Points: 20
  • Thu, Jun 20 2013 7:59 AM

    • AndyK1
    • Not Ranked
    • Joined on Mon, Jun 17 2013
    • Posts 11
    • Points 175
    Re: Pspice Model editor commands and capabilities. Reply

    Thank you that did work. What is going on with the E models with only 2 parameters and the "Value" statement? 

    Does that calculate the voltage that should appear between those two nodes, instead of physically connecting them to a source?

    Is this the only place to use Value? Actually what does the Value statement do?  

    • Post Points: 20
  • Thu, Jun 27 2013 9:34 PM

    • alokt
    • Top 25 Contributor
    • Joined on Fri, Aug 22 2008
    • Noida, Uttar Pradesh
    • Posts 241
    • Points 3,470
    Re: Pspice Model editor commands and capabilities. Reply

    refer the following syntax

    ESQROOT 5 0 VALUE = {5V*SQRT(V(3,2))}

    This statement in circuit file would simulate a voltage source between node 5 and ground (0), whose value is function of voltage between Node 3 and 2 [V(3,2)] (5 times value of voltage between node 3 and 2.

    HTH

    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by AndyK1 at 17 Jun 2013 04:53 PM. Topic has 5 replies.