Implemented stuff to get ready for jet measurement
This commit is contained in:
@@ -42,7 +42,19 @@ VAR
|
||||
|
||||
// Flowsensors
|
||||
//_fbFlowSensors16 : FB_Levi_LFC6IO
|
||||
|
||||
|
||||
// Filmetch valve, NC -> Recirculating back into tank
|
||||
_fbValveFilmetchOut : FB_Valve('');
|
||||
|
||||
// General valve config for valves with no feedback
|
||||
_stValveConfig : ST_ValveConfig;
|
||||
|
||||
// Modbus master for Pumps
|
||||
_fbMBMaster : FB_ModbusMaster;
|
||||
_fbLeviPump9 : FB_LeviPump;
|
||||
_xEnablePump : BOOL;
|
||||
|
||||
_xTest : BOOL;
|
||||
END_VAR
|
||||
]]></Declaration>
|
||||
<Implementation>
|
||||
@@ -98,7 +110,41 @@ _fbTankFilmetch(
|
||||
xReleaseErrors:= xReleaseErrors,
|
||||
xReleaseManualMode:= xReleaseManualMode,
|
||||
xConfirmAlarms:= xConfirmAlarms,
|
||||
stHMIInterface:= stHMIInterface.stTankFilmetch);]]></ST>
|
||||
stHMIInterface:= stHMIInterface.stTankFilmetch);
|
||||
|
||||
// Valves
|
||||
_fbValveFilmetchOut(
|
||||
xReleaseErrors:= xReleaseErrors,
|
||||
stValveConfig:= _stValveConfig,
|
||||
xReleaseManualMode:= xReleaseManualMode,
|
||||
xConfirmAlarms:= xConfirmAlarms,
|
||||
stHMIInterface:= stHMIInterface.stValveFilmetch);
|
||||
|
||||
_fbMBMaster();
|
||||
|
||||
_fbLeviPump9(
|
||||
byAddr:= 9,
|
||||
xEnable:= _xEnablePump,
|
||||
rSpeedSP:= 2000,
|
||||
fbModbusMaster:= _fbMBMaster);
|
||||
|
||||
]]></ST>
|
||||
</Implementation>
|
||||
<Method Name="FB_Init" Id="{860f10c9-69ca-4ad7-9edc-00af754d0af0}">
|
||||
<Declaration><![CDATA[//FB_Init is always available implicitly and it is used primarily for initialization.
|
||||
//The return value is not evaluated. For a specific influence, you can also declare the
|
||||
//methods explicitly and provide additional code there with the standard initialization
|
||||
//code. You can evaluate the return value.
|
||||
METHOD FB_Init: BOOL
|
||||
VAR_INPUT
|
||||
bInitRetains: BOOL; // TRUE: the retain variables are initialized (reset warm / reset cold)
|
||||
bInCopyCode: BOOL; // TRUE: the instance will be copied to the copy code afterward (online change)
|
||||
END_VAR
|
||||
]]></Declaration>
|
||||
<Implementation>
|
||||
<ST><![CDATA[_stValveConfig.xHasOpenFeedback := FALSE;
|
||||
_stValveConfig.xHasClosedFeedback := FALSE;]]></ST>
|
||||
</Implementation>
|
||||
</Method>
|
||||
</POU>
|
||||
</TcPlcObject>
|
||||
Reference in New Issue
Block a user