Technical FAQs

Ask a Question

Is it possible to get processor load for SoMachine range controller

Yes, it is possible to get current running processor load for SoMachine range controllers.
Follow below steps with SoMachine project.

1.
Insert library "CmpSchedule"

2.
Insert in a new or existing POU:
VAR
    pResult1 : RTS_IEC_RESULT;
    processorLoad : UDINT;
END_VAR

3.
Add coding in ST as below.
processorLoad := SchedGetProcessorLoad(pResult := ADR(pResult1));

"processorLoad" variable returns processor load ( CPU load) in % for all running IEC tasks.
Was this helpful?
What can we do to improve the information ?