Keyboard Shortcuts
Likes
Search
Creating a dirt-simple subcircuit component
开云体育I am trying to make a better Jumper: ?
“Unknown subcircuit called in: xu1 a b” ? Suggestions? ? Thanks, Dave |
||
开云体育You haven't given your subcircuit any
properties. Just writing 0 ohms on doesn't work. It's much
simpler to put in an ordinary resistor and give it the value
1?ohm (r even 1pohm). On 2025-04-13 18:27, Bell, Dave via
groups.io wrote:
--
Best wishes John Woodgate RAYLEIGH Essex OOO-Own Opinions Only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion |
||
开云体育I agree it's 'better', insofar as it really
has zero resistance, but it makes the .ASC look very odd,
especially it it's to be given to a user of the physical
circuit. On 2025-04-13 18:51, Andy I via
groups.io wrote:
--
Best wishes John Woodgate RAYLEIGH Essex OOO-Own Opinions Only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion |
||
开云体育Yes, and I do that, but wanted a unique symbol and “true” zero in a single library device… ? ? From: [email protected] <[email protected]>
On Behalf Of John Woodgate
Sent: Sunday, April 13, 2025 10:48 AM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Creating a dirt-simple subcircuit component ? You haven't given your subcircuit any properties. Just writing 0 ohms on doesn't work. It's much simpler to put in an ordinary resistor and give it the value 1?ohm (r even 1pohm). On 2025-04-13 18:27, Bell, Dave via groups.io wrote:
-- ?
|
||
开云体育I agree, and have tried but can’t get it right! I want to link the symbol to ZeroOhm.asc in the same folder. Where/how to do that? In the symbol editor, Ctrl-A menu, right? In the Spice Model line? In the Value line? With/out the “.asc”? ? ? From: [email protected] <[email protected]>
On Behalf Of Andy I via groups.io
Sent: Sunday, April 13, 2025 10:45 AM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Creating a dirt-simple subcircuit component ? Where is the sUbcircuit? ? I see a symbol, but not linked to any subcircuit.? That won't work. ? NSY ? |
||
开云体育I understood it to do exactly that, but it merges them in the netlist. ? From: [email protected] <[email protected]>
On Behalf Of Andy I via groups.io
Sent: Sunday, April 13, 2025 10:47 AM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Creating a dirt-simple subcircuit component ? The Jumper symbol is a confusing one, to me at least.? I do not usually see that it actually separates nodenames, but it may allow them. ? Andy ? |
||
开云体育I did. Ah!? What prefix, then? And still, where do I insert the linkage to ZeroOhm.asc? ? From: [email protected] <[email protected]>
On Behalf Of Andy I via groups.io
Sent: Sunday, April 13, 2025 11:11 AM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Creating a dirt-simple subcircuit component ? Create the symbol from the schematic (.asc) file! ? Must not have Prefix = X. ? Andy ? |
||
开云体育OK: Erased prefix “X” Have ZeroOhm OR ZeroOhm.asc in SpiceModel line All works fine. ? Thanks! Dave ? From: [email protected] <[email protected]>
On Behalf Of Andy I via groups.io
Sent: Sunday, April 13, 2025 11:11 AM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Creating a dirt-simple subcircuit component ? Create the symbol from the schematic (.asc) file! ? Must not have Prefix = X. ? Andy ? |
||
开云体育SO, no need to include the file name in the symbol Attributes editor? ? From: [email protected] <[email protected]>
On Behalf Of Andy I via groups.io
Sent: Sunday, April 13, 2025 11:22 AM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Creating a dirt-simple subcircuit component ? What "linkage"? ? The filenames (minus the .ext) must match.? That's all the "linkage" you need. ? Andy |
||
You cannot have a zero-ohm resistor in LTspice.? I've created a jumper with a 1f ohm resistance called MyJmpr.? The simple subcircuit is assigned it to the original jumper symbol and saved as MyJmpr.asy.? I have uploaded it to the Temp files as MyJmpr.zip.? I do like the idea of using a zero-volt voltage source.? You could do the same as I have done with the resistor and assign that as a subcircuit to the original jumper assembly and save the result as a new jumper.
John
? |
||
开云体育Yep! I don’r really like the Jumper symbol, so made it one as a resistor-sized box, marked “0 Ω” ? From: [email protected] <[email protected]>
On Behalf Of John Waugaman via groups.io
Sent: Sunday, April 13, 2025 11:32 AM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Creating a dirt-simple subcircuit component ? You cannot have a zero-ohm resistor in LTspice.? I've created a jumper with a 1f ohm resistance called MyJmpr.? The simple subcircuit is assigned it to the original jumper symbol and saved as MyJmpr.asy.? I have uploaded it to the Temp files as MyJmpr.zip.? I do like the idea of using a zero-volt voltage source.? You could do the same as I have done with the resistor and assign that as a subcircuit to the original jumper assembly and save the result as a new jumper. John ? |
||
You can have zero ohm resistor in LTspice, but it doesn't do what you might expect. If you use one, LTspice just ignores the symbol and the netlist shows that it replaced the resistor with a wire, so both "ends" are the same net. -- Regards, Tony? On Sun, 13 Apr 2025, 20:32 John Waugaman via , <jwaugaman=[email protected]> wrote:
|
||
You can use a 0 Volt source as a jumper. This allows differen netnames on each side with 0 vols difference across the source. My distribution has a jumper2 symbol which is not a sub-circuit, but a custom symbol for a 0 Volt source.
?
The contens of the .asy file are:
?
Version 4
SymbolType CELL LINE Normal 24 64 32 64 LINE Normal -24 64 -32 64 CIRCLE Normal -16 60 -24 68 CIRCLE Normal 16 60 24 68 ARC Normal -20 44 20 84 20 60 -20 60 SYMATTR Prefix V SYMATTR Value 0 SYMATTR Description A wire jumper that has different node names for each terminal PIN -32 64 NONE 0 PINATTR PinName + PINATTR SpiceOrder 1 PIN 32 64 NONE 0 PINATTR PinName - PINATTR SpiceOrder 2 ?
Prefix V with a value 0 is a 0 volt source between two points
? |
||
开云体育That’s what I am using… ? ? ? From: [email protected] <[email protected]>
On Behalf Of BRUCE108
Sent: Sunday, April 13, 2025 2:45 PM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Creating a dirt-simple subcircuit component ? You can use a 0 Volt source as a jumper. This allows differen netnames on each side with 0 vols difference across the source. My distribution has a jumper2 symbol which is not a sub-circuit, but a custom symbol for a 0 Volt source. ? The contens of the .asy file are: ? Version 4 ? Prefix V with a value 0 is a 0 volt source between two points ? |