State of CPU (RUN/STOP) CPU usage processor load

Questions regarding the use of the UaExpert.

Moderator: uaexpert

Post Reply
Nickfroehlich
Jr. Member
Jr. Member
Posts: 1
Joined: 18 Jan 2024, 10:26

State of CPU (RUN/STOP) CPU usage processor load

Post by Nickfroehlich »

Cheers,

i am using UAExpert because i want to create a dashboard for all our ET200 devices.
Is there a way to see the state of the CPU (is it in run mode or stop mode) without creating a special data block in TIA Portal?
I tried it with the data block but it doesn't really work with the ET200.
When i was looking for some state of the CPU i found "Server->state" but the Value of "running" is always the same. It doesnt matter if the CPU is in run or stop.
I'm very new here so please let me know if i could do this inquiry better.

greetings Nick

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re: State of CPU (RUN/STOP) CPU usage processor load

Post by Support Team »

Hi,

the detection if the PLC process (e.g OB1) is executed or not, has nothing to do with the communication link (and the OPC Server) which is up and running and can deliver data, even though the PLC is in "stop". This is a common problem, and you would need to detect something that is directly related with cyclic execution of OB1.

One common trick is to use MB0 (Taktmerker), it is always present, you don't need to program any extra logic in PLC, and it is always "moving", as long as the PLC is in "Run" mode.

The beauty of this solution is:
1) no need to change anything in the PLC
2) no additional ping-pong watchdog logic required
3) completely independent of the scan rate
4) very simple logic to check on client side

In your OPC Client you can implement a very simple logic:
  • if value of MB0 is different than last time -> PLC is in "run".
  • if value of MB0 is same than last time -> PLC is in "stop".
Best regards
Unified Automation Support Team

Post Reply