Hello,
does anybody know a way for a PLCnext component to deduce the cause of the last restart of the controller? As a minimum, a distinction between power-on and software-induced restart should be possible. An indication whether the watchdog timer of the controller had expired would be nice to have, too.
Our first (obvious) guess was Arp::Base::Rsc::Commons::IDevice*Service, but we could not find a suitable function or item there, at least not for FW 2024.0.x.
Thanks in advance for your help.
Background: The information is intended to be used within telecontrol applications, where it is quite common to provide it to associated control centers (like, e.g., IEC 60870-5-101/104, ASDU „M_EI_NA_1“, or IEC 61850-7-4, data objects „LPHD::PwrUp“, „LPHD::NumPwrUp“ and „LPHD::WrmStr“).
check the output.log in the /opt/plcnext/logs folder