Started to change to HAL architecture
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user