DP_SystemEnergy (PROFIBUS DP)
The following tables give information about the parameters of the function block interface.
Inputs
Input |
Data Type |
Description |
Variable Category |
---|---|---|---|
i_xEnable |
BOOL |
Activates the function block processing. Cyclic data will be read/written to the hardware IO interface. |
Function block control |
i_xResetMaxVRMS |
BOOL |
If this input is set to TRUE, the value of the parameter ResetMaxVRMS is reset. |
Cyclic data |
i_xResetMaxUnbal |
BOOL |
If this input is set to TRUE, the value of the parameter ResetMaxUnbalanceVltg is reset. |
Cyclic data |
i_xResetUpstr |
BOOL |
If this input is set to TRUE, the voltage fluctuation status is reset. |
Cyclic data |
i_xAcyclicBusy |
BOOL |
Can be used to block the acyclic execution if acyclic communication of another function block is active. |
Function block control |
i_xExecute |
BOOL |
Starts an acyclic request on a rising edge. |
Function block control |
i_hwStartAddress |
Variant |
Must correspond to the first address of the cyclic input address range of the related avatar to be able to execute cyclic read communication. |
Communication parameter |
In/Out
InOut |
Data Type |
Description |
Variable Category |
---|---|---|---|
iq_hwQWAddress |
WORD |
Must correspond to the output address of the related avatar to be able to execute cyclic write communication. |
Communication parameter |
Outputs
Output |
Data Type |
Description |
Variable Category |
---|---|---|---|
q_xActive |
BOOL |
If this output is set to TRUE, the Avatar function block is enabled, or an acyclic request is busy. |
Function block status |
q_xError |
BOOL |
If this output is set to TRUE, a detected error occurred while executing the Avatar function block. For detailed information about the detected error, see the value of the Error ID. |
Function block status |
q_dwErrorID |
DWORD |
The Error ID shows detailed information about the detected error that occurred. Possible values are shown in the table below. |
Function block status |
q_dwAcyclicStatus |
DWORD |
The Acyclic status provides detailed information about the acyclic fieldbus communication, including detected error details. For detailed information about the status values, see Function Block Library. |
Function block status |
q_xAcyclicBusy |
BOOL |
If this output is set to TRUE, an acyclic request is still busy. |
Function block status |
q_xUpstrVFluctState |
BOOL |
If this output is set to TRUE, a voltage dip or swell is detected. |
Cyclic data |
q_udtSysEng1 |
UDT_SystemEnergy1 |
This is a structure of acyclic system energy data. See UDT_SystemEnergy1. |
Acyclic data |
q_udtSysEng2 |
UDT_SystemEnergy2 |
This is a structure of acyclic system energy data. See UDT_SystemEnergy2. |
Acyclic data |
Status and error codes from ConstTeSysIsland
Member name |
Used by the function block |
---|---|
Cdw_ErrNoMsg |
Yes |
Cdw_ErrInternal |
Yes |
Cdw_ErrInvalidCycInAddr |
Yes |
Cdw_ErrInvalidHwid |
No |
Cdw_ErrInvalidNumOfAvatars |
No |
Cdw_ErrReadCycIn |
Yes |
Cdw_ErrReadAcycData1 |
Yes |
Cdw_ErrReadAcycData2 |
Yes |
Cdw_ErrWriteAcycData |
No |
Cdw_StsReadAcycData1Compl |
Yes |
Cdw_StsReadAcycData2Compl |
Yes |
Cdw_StsWriteAcycDataCompl |
No |