Bug in recent active low code

Post Reply
User avatar
johu
Site Admin
Posts: 7182
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 552 times
Been thanked: 1913 times
Contact:

Bug in recent active low code

Post by johu »

For a while now I observed that whenever the Touran (i.e. Leaf inverter) was stopped, either manually or by some over current or desat event, it would not start back up. Moreover if it had been turned off e.g. with the stop command and then turned back on with the key switch it would immediately jump to a desat error. Poor thing.

So I investigated this in both active high and active low mode. Active high mode is good, but active low mode looks like in the attachment.

It must happen during timer initialization.

So, if you're using active low mode, always power cycle the inverter after a fault or manual shutdown. Will release a bug fix version ASAP.
Attachments
startup.png
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
arber333
Posts: 3795
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 166 times
Been thanked: 411 times
Contact:

Re: Bug in recent active low code

Post by arber333 »

johu wrote: Sat Nov 09, 2019 4:48 pm For a while now I observed that whenever the Touran (i.e. Leaf inverter) was stopped, either manually or by some over current or desat event, it would not start back up. Moreover if it had been turned off e.g. with the stop command and then turned back on with the key switch it would immediately jump to a desat error. Poor thing.

So I investigated this in both active high and active low mode. Active high mode is good, but active low mode looks like in the attachment.

It must happen during timer initialization.

So, if you're using active low mode, always power cycle the inverter after a fault or manual shutdown. Will release a bug fix version ASAP.
I always use inverting chip like SN7404N. 6 inputs 6 inverted outputs. Hence i just use positive signal.
User avatar
johu
Site Admin
Posts: 7182
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 552 times
Been thanked: 1913 times
Contact:

Re: Bug in recent active low code

Post by johu »

Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
arber333
Posts: 3795
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 166 times
Been thanked: 411 times
Contact:

Re: Bug in recent active low code

Post by arber333 »

johu wrote: Sun Nov 10, 2019 8:12 pm Fixed, more tomorrow
https://github.com/jsphuebner/stm32-sin ... ag/v4.65.R
Hm...
Does this mean you will fix the ACIM regen surge also?
User avatar
johu
Site Admin
Posts: 7182
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 552 times
Been thanked: 1913 times
Contact:

Re: Bug in recent active low code

Post by johu »

No ACIM code doesn't contain any PI controllers. This is only the FOC code.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply