Is there a way to read the processor memory usage details either thru codesys or the API?
Just for general health monitoring, I like to monitor the processor usage and memory usage via SCADA. I was able to get processor usage via codesys (using the CmpSchedule.SchedGetProcessorLoad Function).
I have not been able to get memory details. I’ve tried a couple options:
-
Calling SysMem.SysMemGetCurrentHeapSize returns a “Not Supported” error code in codesys.
-
The linux core has a file “/proc/meminfo” which contains this data, but I get operation denied when trying to read it in codesys (it looks like read permissions are good).
If there is another way to get this information, I would be interested. Thanks!