¿ªÔÆÌåÓý

Re: LTSpice Model for Photo Triac - VOM160


 

Eric wrote:

? ? "I found the MOC308x phototriac circuit simulation (solved) from the htm files.? I tried to RUN it but it won't."

I downloaded it (it's the same file that was uploaded here around a month ago), extracted it, and it ran.? There were a bunch of "heightened def con" messages in the .log file, but those are not necessarily bad, and they don't indicate failure.

So, it always helps to tell us what didn't work.? Did your computer shut off, or burst into flames?? Was there an error message?? If there was, what was it?? Try to be specific.? Also tell us which version of LTspice you used: LTspice IV or LTspice XVII.

All I did was create a brand new folder, extract the contents of the ZIP file into that folder, open the .asc file in LTspice, and press RUN.? There was nothing else to do.? You didn't move any of the files anywhere else, did you?

Have you altered your LTspice settings?? You might have changed the settings in the Control Panel at some point.? If you think you might have done that, open the Control Panel (hammer icon), press "Reset to Default Values", and OK.? Then try running the simulation again.

? ? "How do I load this part into my library?"

I think you need only these two files:
? ? LED_TRIAC_ZCS.asy
? ? MOC308x.lib
You can either put them in the folder with the schematic(s) that will use them, or add them to LTspice's libraries.? I prefer the former, but you could do either.

To add them to LTspice's libraries, move or copy LED_TRIAC_ZCS.asy here:
? ? Documents\LTspiceXVII\lib\sym\
or to a subdirectory of it.? Move or copy MOC308x.lib here:
? ? Documents\LTspiceXVII\lib\sub\
(must be that folder, not a subdirectory of it).

If you leave both files in the folder with your schematic, you'll need to do one extra step when putting the symbol on a schematic.? Open the schematic file in LTspice (if it's new, make sure to save it so that its file is in the current folder).? Go to the Add Components menu.? At the top, there is a line for "Top Directory" with two choices.? One is LTspice's library; the other is the current directory.? Change it to the current directory.? Now the LED_TRIAC_ZCS symbol should be in the menu and can be selected.

Whichever method you used, follow these steps:

(1)? Add a LED_TRIAC_ZCS symbol to the schematic.
(2)? Right-click on the text LED_TRIAC_ZCS under the symbol, and change it to MOC3083.
(3)? Add this line as a SPICE Directive:

? ? .lib MOC308x.lib

I am not 100% certain that the above steps work, but I think they should be right.

Regards,
Andy


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