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

@@ -54,6 +54,8 @@ VAR_INPUT
// String inverter ip
sInverterIP : STRING;
timInverterStartupTimeout : TIME;
xECWcState AT %I* : BOOL;
xIsolationOKL1 AT %I* : BOOL;
@@ -191,7 +193,7 @@ VAR
_xEnableInverter : BOOL;
// Fault timer for inverter startup
_tonInverterStartupTimeout : TON := (PT := T#3M);
_tonInverterStartupTimeout : TON;
// Fault timer for inverter shutdown
_tonInverterShutdownError : TON := (PT := T#10S);
@@ -600,7 +602,7 @@ CASE _iState OF
END_IF
22: // Wait for inverter to be ready
_tonInverterStartupTimeout(IN := TRUE);
_tonInverterStartupTimeout(IN := TRUE, PT := timInverterStartupTimeout);
IF _fbInverter.xActive AND (NOT _fbInverter.xError) THEN
CASE eOperationMode OF
E_STRING_OPERATING_MODE.SAFETY_CHECK: