Is there a way to know if device errors such as memory access violation occur in Runtime (without Codesys Development System)?
It seems CmpLog library does not provide such a feature.
I'd like to notify any critical errors to my user when runtime stops.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hmmm. Would "Behaviour for outputs while in stop - Execute Program" in the PLC settings tab be helpful? Maybe combined with the CAA Device Diagnosis library? Or maybe with this Codesys Forge Library, Debug Logger.
This post might also be helpful to you, in adding extra logging to the normal log. If the normal log file isn't overwritten/wiped when that executed program (as above) is started you could have it copy the log file somewhere.
Depending on what you want you might be satisfied with setting all outputs to default, where doing so turns on an alarm light or triggers an autodialer etc.
Last edit: Morberis 2020-07-28
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
Is there a way to know if device errors such as memory access violation occur in Runtime (without Codesys Development System)?
It seems CmpLog library does not provide such a feature.
I'd like to notify any critical errors to my user when runtime stops.
Thanks.
Hmmm. Would "Behaviour for outputs while in stop - Execute Program" in the PLC settings tab be helpful? Maybe combined with the CAA Device Diagnosis library? Or maybe with this Codesys Forge Library, Debug Logger.
This post might also be helpful to you, in adding extra logging to the normal log. If the normal log file isn't overwritten/wiped when that executed program (as above) is started you could have it copy the log file somewhere.
Depending on what you want you might be satisfied with setting all outputs to default, where doing so turns on an alarm light or triggers an autodialer etc.
Last edit: Morberis 2020-07-28
Thank you so much
I would check the options mentioned.
Probably one of them could be the answer.
@aliazz has a good post here as well that you might find helpful.
Last edit: Morberis 2020-07-29