Added inverter startup timeout to GVL_CONFIG and enabled inverter errors

This commit is contained in:
Matthias Heisig
2025-09-11 16:32:53 +02:00
parent 0d3369d54d
commit 8bd2e9a1ea
7 changed files with 400 additions and 388 deletions

View File

@@ -379,9 +379,11 @@ CASE _iState OF
_iState := 1001;
1001: // Error state, wait for reset
IF xReset AND (NOT xEnable) AND (NOT _xErrorInverter) AND (NOT _xErrorCyclicData) AND xHeartbeatOk THEN
//IF xReset AND (NOT xEnable) AND (NOT _xErrorInverter) AND (NOT _xErrorCyclicData) AND xHeartbeatOk THEN
IF xReset AND (NOT xEnable) AND (NOT _xErrorCyclicData) AND xHeartbeatOk THEN
_eRequestedState := E_KACO_PCU_REQUESTED_STATE.OFF;
xError := FALSE;
_xErrorInverter := FALSE;
_xFaultInverter := FALSE;
_xErrorCyclicDataLedge := FALSE;
_xHeartBeatNOK := FALSE;
@@ -773,8 +775,12 @@ ELSE
_xErrorInverter := FALSE;
END_IF
IF _eCurrentState = E_KACO_CURRENT_STATE.FAULT AND xReleasePower THEN
_xErrorInverter := TRUE;
IF _eCurrentState = E_KACO_CURRENT_STATE.FAULT THEN// AND xReleasePower THEN
IF (NOT xReleasePower) AND _stPCUState.ePCUError = E_KACO_PCU_ERROR.UNDER_VOLT THEN
_xErrorInverter := FALSE;
ELSE
_xErrorInverter := TRUE;
END_IF
END_IF
// evaluate modbus errors