FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
06-06-2023 12:13 PM
Hi,
What is the recommended method (efficient/easiest) for identifying a new diagnostic warning/error?
For example with MLC we could monitor C-0-0023 bits 25/26.
I know I can use the pending diagnostic example at How-can-I-read-pending-diagnostic-in-PLC and then monitor for a change in element 0 of one of the arrays returned, e.g .arstrMainDiagnosisNumber but this would mean I would have to continuosuly read the error list to check even if I don't necessarily need to?
Hope this is clear?
Many thanks
Solved! Go to Solution.
06-12-2023 03:52 PM
From version 1.20 on there is library CXAC_diagnostics including function block GetPendingDiagnostics for easier handling. See this thread.
In MLC you also had to cyclically monitor the corresponding parameter or how did you check it?