The function block ReadDiagnostics returns the diagnostic information and resets the maximum IRMS register of the selected avatar.
|
Input |
Data type |
Description |
|---|---|---|
|
iq_TeSysIslandRef |
FB_TeSys_island |
Reference to the TeSys island device. |
|
i_xExecute |
BOOL |
Upon a rising edge of this input, the function block starts the execution. The outputs q_xDone, q_xError, q_etResult, and q_etResultMsg are reset with the falling edge of i_xExecute. Refer to Behavior of Function Blocks with the Input i_xExecute. |
|
i_sAvatarName |
STRING(GPL.Gc_uiLengthOfAvatarName) |
Reference to the avatar defined in the TeSys island configuration. |
|
i_xResetMaxIRMS |
BOOL |
If this input is set to TRUE, the maximum average RMS current value and the timestamp are reset. |
|
Output |
Data type |
Description |
|---|---|---|
|
q_xError |
BOOL |
If this output is set to TRUE, an error has been detected. For details, refer to q_etResult and q_etResultMsg. |
|
q_etResult |
ET_Result |
Provides diagnostic and status information as a numeric value. |
|
q_sResultMsg |
STRING[30] |
Provides additional diagnostic and status information as a text message. |
|
q_xBusy |
BOOL |
If this output is set to TRUE, the function block execution is in progress. |
|
q_xDone |
BOOL |
If this output is set to TRUE, the execution has been completed successfully. |
|
q_xUpstreamVltg1 |
BOOL |
If this output is set to TRUE, the avatar has detected that upstream main power of the first device is present (circuit breaker closed). |
|
q_xUpstreamVltg2 |
BOOL |
If this output is set to TRUE, the avatar has detected that upstream main power of the second device is present. |
|
q_xUpstreamVltg3 |
BOOL |
If this output is set to TRUE, the avatar has detected that upstream main power of the third device is present. |
|
q_xUpstreamVltg4 |
BOOL |
If this output is set to TRUE, the avatar has detected that upstream main power of the fourth device is present. |
|
q_udiMaxAvgIRMS |
UDINT |
Maximum average RMS current value. |
|
q_stMaxAvgIRMSTimestamp |
SysTimeRtc.RTS_SYSTIMEDATE |
Date and time when the maximum average RMS current value was recorded. Refer to the SysTimeRtc library. |
|
q_udiPhase1IRMS |
UDINT |
Value of the phase L1 IRMS. (Unit: mA) |
|
q_udiPhase2IRMS |
UDINT |
Value of the phase L2 IRMS. (Unit: mA) |
|
q_udiPhase3IRMS |
UDINT |
Value of the phase L3 IRMS. (Unit: mA) |