Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On first configuration push, calaos_server incorrectly toggle DO_0 & DO_1 #149

Open
StevenLeRoux opened this issue Mar 15, 2020 · 4 comments

Comments

@StevenLeRoux
Copy link

I will try to make this more reproducible, but I've stumbled upon a weird behaviour while trying to push my very first config to calaos.

The funny thing is that while toggling DO_0, this had cut the power of the outlet where Calaos was , which led me to quickly face it :)

@raoulh
Copy link
Member

raoulh commented Mar 16, 2020

What hardware do you use to control outlet? Wago PLC or anything else?

@StevenLeRoux
Copy link
Author

StevenLeRoux commented Mar 16, 2020

A Wago 750-881

Note that while trying to debug this, I've make sure that no DO was actually configured at all for this address so DO_0 was totally unknown from calaos_installer before sending the conf to calaos_server.

@raoulh
Copy link
Member

raoulh commented Mar 16, 2020

I guess that the wago switched to "calaos managed mode" after you loaded the first time your config. Then the adresse mapping was changed from the "fail safe mode" to "calaos mode" and the output state are switched to default value.
Actually there is no fix for that. It happens only the first time, because without config calaos_server is not yet connected to the PLC, and the PLC does not know calaos_server, and then is by default in "fail safe mode"...

@StevenLeRoux
Copy link
Author

Hmm the relay behind DO_0 is CLOSED by default which would mean that a default value should have been to not enable the Digital Output right?

Do we have a way to dump the state from/to the Wago PLC? This way we could try to sync the PLC and Calaos so that the failover between Wago and Calaos would be transparent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants