Digital icon indicating copy to clipboard operation
Digital copied to clipboard

error when using subcircuit

Open Tonyf60 opened this issue 8 months ago • 3 comments
trafficstars

I have created a subcircuit with the aim of simulating a TON timer (IEC PLC-Programming, see image). Unfortunately, I cannot use the subcircuit because an error message appears when starting:

Image

This is what the circuit looks like, which works as a subcircuit and does exactly what it is supposed to. The button is only there for testing. I don't need the input for T. But I hade to give the clock signal a name. I have already tested with an external clock signal. Same error.

Image

Tonyf60 avatar Mar 07 '25 14:03 Tonyf60

It seems to me that the clock "T" is not connected.

hneemann avatar Mar 07 '25 17:03 hneemann

Ok, the error does not appear now. But this means, that a clock-signal can not be used in an subcircuit. I have to add it from outside.

Tonyf60 avatar Mar 08 '25 11:03 Tonyf60

Yes! If the clock is used within a sub-circuit, it behaves like a normal input.

hneemann avatar Mar 08 '25 12:03 hneemann