Some refactoring after static code analysis
This commit is contained in:
@@ -64,16 +64,16 @@ VAR
|
||||
// Sensors
|
||||
// =======
|
||||
|
||||
_xVacuumOk AT %I* : BOOL;
|
||||
xVacuumOk AT %I* : BOOL;
|
||||
|
||||
// Spinner vibration sensor
|
||||
_xVibrationSensor AT %I* : BOOL;
|
||||
xVibrationSensor AT %I* : BOOL;
|
||||
|
||||
// =========
|
||||
// Actuators
|
||||
// =========
|
||||
|
||||
_xDisableVacuum AT %Q* : BOOL;
|
||||
xDisableVacuum AT %Q* : BOOL;
|
||||
END_VAR
|
||||
]]></Declaration>
|
||||
<Implementation>
|
||||
@@ -128,7 +128,7 @@ _fbEjectBack(
|
||||
xConfirmAlarms:= xConfirmAlarms,
|
||||
stHMIInterface:= stHMIInterface.stEjectBackHMIInterface);
|
||||
|
||||
_xDisableVacuum := (NOT xEnableVacuum);
|
||||
xDisableVacuum := (NOT xEnableVacuum);
|
||||
|
||||
// Call base sm
|
||||
SUPER^();
|
||||
@@ -136,7 +136,7 @@ SUPER^();
|
||||
// Copy internal signals to output
|
||||
xDoorOpen := _fbValveDoor.IsOpen;
|
||||
xChuckClampOpen := _fbUnlockLeft.IsOpen AND _fbUnlockRight.IsOpen;
|
||||
xVacuumEnabled := _xVacuumOk;]]></ST>
|
||||
xVacuumEnabled := xVacuumOk;]]></ST>
|
||||
</Implementation>
|
||||
<Method Name="FB_Init" Id="{afcda70c-3e52-4a32-9ca9-670a6b854f24}">
|
||||
<Declaration><![CDATA[//FB_Init is always available implicitly and it is used primarily for initialization.
|
||||
|
||||
Reference in New Issue
Block a user