Could anyone say how to get the hardware status of the redundant controllers into the program.
Is there any predefined function block to use directly in the program to get the status of redundant controller or any suggestions would be much appreciated.
I'm using PM866 controller.
Thanks in advance.
If you want to read the HW state, define a global variable of datatype HWStatus. Go to Hardware-> Controller-> Connections Tab..Call the global variable here..
Now go to Unit Status Tab -> Select the Present State of Hardware and just Click F1.(Help). You will get a table listing the value and description of error..Take this values as reference..
Now you can make your own logic from that like if this HWstatus = 0, then ok
HW status = 1, then error HW status = 2, then Warning...
Similarly you can do for Errors and Warnings and all other HW status using only one global variable..
This will show you the status of both Primary & redundant controller...
Hope this helps..