Started to change to HAL architecture

This commit is contained in:
2026-03-18 22:49:19 +01:00
parent fe28ade0fe
commit b515ca8588
19 changed files with 6425 additions and 1340 deletions

View File

@@ -46,6 +46,9 @@ VAR
// State state machine variable
_iSSM : INT := 0;
// Internal manual mode release flag when changed to manual mode
_xReleaseManualMode : BOOL;
END_VAR
]]></Declaration>
<Implementation>
@@ -87,6 +90,8 @@ IF _eLastState <> _stStatus.eStateCurrent THEN
_eLastState := _stStatus.eStateCurrent;
END_IF
// Set release manual mode flag when we are in manual mode
_xReleaseManualMode := (_stStatus.eUnitModeCurrent = E_PackMLUnitMode.MANUAL);
// Call state method according to current state
CASE _stStatus.eStateCurrent OF