Description of the Function
The PWS_CMD function block is used to control redundant power
supplies in a Modicon M580 PAC main rack with an Ethernet backplane (local or remote rack, other
connected Modicon M580 PAC).
PWS_CMD function block provides the following command:
Swap master and slave power supplies.
Clear some diagnostic counters.
Start a power supply auto-diagnostic.
The power supply command is built with the PWS_CMD_DDT DDT type.
The additional
parameters EN and ENO may also be
configured.
FBD Representation
Representation:

LD Representation
Representation:

IL Representation
Representation:
CAL PWS_CMD_Instance (ENABLE:=Enable, ABORT:=Abort, IP_ADDRESS:=IP_Address,
CMD:=Command, DONE=>OperationSuccessful, ACTIVE=>OperationActiv, ERROR=>FaultyOperation,
STATUS=>ErrorCode, DATA=>Data)
ST Representation
Representation:
PWS_CMD_Instance (ENABLE:=Enable, ABORT:=Abort, IP_ADDRESS:=IP_Address,
CMD:=Command, DONE=>OperationSuccessful, ACTIVE=>OperationActiv, ERROR=>FaultyOperation,
STATUS=>ErrorCode, DATA=>Data);
Description of Parameters
The following table describes the input parameters:
Parameter |
Type |
Comment |
|---|---|---|
|
|
Set to 1 to send a command to a power supply. |
|
|
Set to 1 to abort the current operation. |
|
|
The
|
|
|
Command data for the power supply to control. |
The following table describes the output parameters:
Parameter |
Type |
Comment |
|---|---|---|
|
|
Operation completed indication. Set to 1 when the execution of the operation is completed successfully. |
|
|
Operation in progress indication. Set to 1 when the execution of the operation is in progress. |
|
|
Set to 1 if an error is detected by the function block. |
|
|
Code providing the detected error identification. |
|
|
|
Description of PWS_CMD_DDT Type
Detailed description of PWS_CMD_DDT structure:
Field |
Size |
Value |
|---|---|---|
|
1 |
Command code:
|
|
1 |
Targeted power supply on the rack:
|

