carlospetry77
Hello everybody. Are there ways to access system variables? For example the RUN variable to know that the PLC is running

Thanks!!
Quote 0 0
thiagoralves
The closest thing you have to "system variables" is this: https://openplc.discussion.community/post/support-for-rtc-on-special-functions-9900466

OpenPLC doesn't have an internal RUN/STOP signal because the runtime only runs when the PLC is running. If PLC is stopped, the runtime is also stopped, or in other words, nothing is running, so there is nothing to check.
Quote 1 0
carlospetry77
The closest thing you have to "system variables" is this: https://openplc.discussion.community/post/support-for-rtc-on-special-functions-9900466

OpenPLC doesn't have an internal RUN/STOP signal because the runtime only runs when the PLC is running. If PLC is stopped, the runtime is also stopped, or in other words, nothing is running, so there is nothing to check.


Hi Thiago! Thanks. I`m working on frontal LEDs of CPU unit. So, i put RUN/STOP led, I/O LED (Green = OK; Red = Comm Fail).
I`m thinking about faults like division by cero. On the other hand, Power faults. So, there is interesting to add a program that save "log faults" to analize after.
Quote 0 0