changes during start of safety check

- Refactoring of string fb
- Added pump safety interlocks for pressure segment inlet too low and too high
This commit is contained in:
Matthias Heisig
2025-06-02 19:51:57 +02:00
parent ac0a8d160b
commit 2f9f4df261
10 changed files with 636 additions and 514 deletions

View File

@@ -109,6 +109,9 @@ VAR
// Current state of the inverters internal statemachine
_uiInverterState : UINT;
// Polling in enable state
_xEnableInternal : BOOL;
// Inverter name for alarm message
_sName : STRING;
END_VAR
@@ -595,7 +598,7 @@ CASE _iState OF
END_IF
ELSE
// No error and not enabled
IF (NOT xEnable) THEN
IF (NOT _xEnableInternal) THEN
// Goto polling state
_iState := 110;
ELSE
@@ -843,6 +846,7 @@ CASE _iState OF
1000: // Error state
xActive := FALSE;
xError := TRUE;
_xEnableInternal := TRUE;
_iState := 1001;
1001: // Error state, wait for reset