Introduction
The diagnostic request is available only for M580 safety power supplies located on a main rack, using the PWS_DIAG function block. A main rack is one with an address of 0 and a CPU or communication adapter module (CRA) in slot 0 or 1. An extension rack is not a main rack.
The CPU can make a diagnostic request of redundant power supplies on the local rack and, via a communications adapter (CRA), of redundant power supplies on a remote rack. If the master and slave power supplies are operational, the master power supply enters master diagnostic mode and the slave power supply enters slave diagnostic mode. The LEDs indicate the test is ongoing.
After the diagnostic test finishes, the master returns to normal operating state and the slave transitions to either normal or error state, depending on the outcome of the tests. Test results are stored in power supply memory,
Diagnostic Request Returned Data
Diagnostic information sent to the CPU by the power supplies includes:
Power supply ambient temperature.
Voltage and current on 3.3V backplane line.
Voltage and current on 24V backplane line.
Power supply total cumulated energy since manufacturing on the 3.3V and 24V backplane lines.
Operating time as master since last power-on and manufacture.
Total operating time as slave since last power-on and manufacture.
Remaining life time in percent (LTPC): the time before preventive maintenance from 100% to 0%.
NOTE: No swap when at 0%.Number of times power supply has powered ON.
NOTE: From the SCADA, it is possible to reset the number of power on since installation and all others diagnostics.Number of times BMXCPS4002S main voltage fell below under-voltage level 1 (95 Vac).
Number of times BMXCPS4002S main voltage rises above over-voltage level 2 (195 Vac).
Number of times BMXCPS4022S main voltage fell below under-voltage level 1 (20 Vdc).
Number of times BMXCPS4022S main voltage rises above over-voltage level 2 (40 Vdc).
Number of times BMXCPS3522S main voltage fell below under-voltage level 1 (110 Vdc).
Number of times BMXCPS3522S main voltage rises above over-voltage level 2 (140 Vdc).
Current status of the power supply (master/slave/inoperable).
Representation in FBD

Parameters
Input Parameters:
Parameter Name |
Data Type |
Description |
---|---|---|
ENABLE |
BOOL |
When ON, the operation is enabled. |
ABORT |
BOOL |
When ON, the currently active operation is aborted. |
REMOTE_IP |
STRING |
IP Address ("ip1.ip2.ip3.ip4") of the drop that contains the power supply module. Leave this field an empty string ("") or attach no variable to its pin to address the power supply in the local rack. |
Output Parameters:
Parameter Name |
Data Type |
Description |
---|---|---|
DONE |
BOOL |
ON when the operation concludes successfully. |
ERROR |
BOOL |
ON when the operation is aborted without success. |
ACTIVE |
BOOL |
ON when the operation is active. |
STATUS |
WORD |
Detected error identifier. |
LEFT_PWS |
ANY |
Diagnostic data for left power supply. Use variable of type PWS_DIAG_DDT_V2 for correct interpretation. |
RIGHT_PWS |
ANY |
Diagnostic data for right power supply. Use variable of type PWS_DIAG_DDT_V2 for correct interpretation. |
Example

