WIP: Inbetriebnahme vorladen

This commit is contained in:
Matthias Heisig
2024-04-11 19:06:45 +02:00
parent ef26159a4f
commit 9ce3522a70
48 changed files with 23544 additions and 3474 deletions

View File

@@ -9,6 +9,9 @@ VAR_INPUT
// Enable
xEnable : BOOL;
// Module in safety check mode
xInSafetyCheckMode : BOOL;
// Module completely off
xOff : BOOL := TRUE;
@@ -48,6 +51,9 @@ VAR_OUTPUT
// One unit has a warning
xWarning : BOOL;
// All modules in automatic mode
xAllUnitsInAutomatic : BOOL;
END_VAR
VAR
_fbUnit1 : FB_Unit('Unit 1');
@@ -73,6 +79,9 @@ END_VAR
xError := FALSE;
xWarning := FALSE;
// Reset automatic mode flag
xAllUnitsInAutomatic := TRUE;
// Reset safety interlocks flag
xSafetyIntlksOk := TRUE;
@@ -82,6 +91,7 @@ xSafetyIntlksOk := TRUE;
// ===============================
_fbUnit1(
xEnable := xEnable,
xInSafetyCheckMode := xInSafetyCheckMode,
stUnitConfig:= GVL_CONFIG.stUnitConfig,
stHMIInterface:= stHMIInterface.stHMIInterfaceUnit1,
xEmergencyStopOk:= xEmergencyStopOk,
@@ -105,12 +115,17 @@ IF NOT _fbUnit1.xSafetyIntlksOk THEN
xSafetyIntlksOk := FALSE;
END_IF
IF NOT _fbUnit1.xAllComponentsInAuto THEN
xAllUnitsInAutomatic := FALSE;
END_IF
// ===============================
// Unit 2
// ===============================
_fbUnit2(
xEnable := xEnable,
xInSafetyCheckMode := xInSafetyCheckMode,
stUnitConfig:= GVL_CONFIG.stUnitConfig,
stHMIInterface:= stHMIInterface.stHMIInterfaceUnit2,
xEmergencyStopOk:= xEmergencyStopOk,
@@ -134,12 +149,17 @@ IF NOT _fbUnit2.xSafetyIntlksOk THEN
xSafetyIntlksOk := FALSE;
END_IF
IF NOT _fbUnit2.xAllComponentsInAuto THEN
xAllUnitsInAutomatic := FALSE;
END_IF
// ===============================
// Unit 3
// ===============================
_fbUnit3(
xEnable := xEnable,
xInSafetyCheckMode := xInSafetyCheckMode,
stUnitConfig:= GVL_CONFIG.stUnitConfig,
stHMIInterface:= stHMIInterface.stHMIInterfaceUnit3,
xEmergencyStopOk:= xEmergencyStopOk,
@@ -163,12 +183,17 @@ IF NOT _fbUnit3.xSafetyIntlksOk THEN
xSafetyIntlksOk := FALSE;
END_IF
IF NOT _fbUnit3.xAllComponentsInAuto THEN
xAllUnitsInAutomatic := FALSE;
END_IF
// ===============================
// Unit 4
// ===============================
_fbUnit4(
xEnable := xEnable,
xInSafetyCheckMode := xInSafetyCheckMode,
stUnitConfig:= GVL_CONFIG.stUnitConfig,
stHMIInterface:= stHMIInterface.stHMIInterfaceUnit4,
xEmergencyStopOk:= xEmergencyStopOk,
@@ -192,6 +217,10 @@ IF NOT _fbUnit4.xSafetyIntlksOk THEN
xSafetyIntlksOk := FALSE;
END_IF
IF NOT _fbUnit4.xAllComponentsInAuto THEN
xAllUnitsInAutomatic := FALSE;
END_IF
// ===============================
// Units ready check
@@ -357,124 +386,15 @@ _fbUnitsOutOfBalanceAlarm.ipArguments.Clear().AddString(_sName);]]></ST>
</Set>
</Property>
<LineIds Name="FB_Module">
<LineId Id="248" Count="2" />
<LineId Id="557" Count="1" />
<LineId Id="556" Count="0" />
<LineId Id="575" Count="0" />
<LineId Id="251" Count="4" />
<LineId Id="456" Count="0" />
<LineId Id="256" Count="7" />
<LineId Id="742" Count="0" />
<LineId Id="264" Count="8" />
<LineId Id="560" Count="0" />
<LineId Id="559" Count="0" />
<LineId Id="561" Count="1" />
<LineId Id="273" Count="5" />
<LineId Id="457" Count="0" />
<LineId Id="279" Count="7" />
<LineId Id="743" Count="0" />
<LineId Id="287" Count="8" />
<LineId Id="563" Count="2" />
<LineId Id="296" Count="0" />
<LineId Id="574" Count="0" />
<LineId Id="297" Count="4" />
<LineId Id="458" Count="0" />
<LineId Id="302" Count="7" />
<LineId Id="744" Count="0" />
<LineId Id="310" Count="8" />
<LineId Id="566" Count="2" />
<LineId Id="319" Count="0" />
<LineId Id="573" Count="0" />
<LineId Id="320" Count="4" />
<LineId Id="459" Count="0" />
<LineId Id="325" Count="7" />
<LineId Id="745" Count="0" />
<LineId Id="333" Count="7" />
<LineId Id="188" Count="0" />
<LineId Id="569" Count="2" />
<LineId Id="441" Count="0" />
<LineId Id="572" Count="0" />
<LineId Id="436" Count="0" />
<LineId Id="438" Count="1" />
<LineId Id="437" Count="0" />
<LineId Id="435" Count="0" />
<LineId Id="465" Count="0" />
<LineId Id="464" Count="0" />
<LineId Id="466" Count="1" />
<LineId Id="448" Count="0" />
<LineId Id="469" Count="0" />
<LineId Id="486" Count="0" />
<LineId Id="483" Count="2" />
<LineId Id="482" Count="0" />
<LineId Id="468" Count="0" />
<LineId Id="495" Count="0" />
<LineId Id="491" Count="1" />
<LineId Id="487" Count="0" />
<LineId Id="494" Count="0" />
<LineId Id="493" Count="0" />
<LineId Id="444" Count="0" />
<LineId Id="446" Count="1" />
<LineId Id="445" Count="0" />
<LineId Id="442" Count="0" />
<LineId Id="659" Count="0" />
<LineId Id="440" Count="0" />
<LineId Id="378" Count="3" />
<LineId Id="387" Count="0" />
<LineId Id="389" Count="0" />
<LineId Id="393" Count="0" />
<LineId Id="388" Count="0" />
<LineId Id="404" Count="2" />
<LineId Id="395" Count="0" />
<LineId Id="394" Count="0" />
<LineId Id="408" Count="1" />
<LineId Id="407" Count="0" />
<LineId Id="397" Count="0" />
<LineId Id="396" Count="0" />
<LineId Id="411" Count="1" />
<LineId Id="410" Count="0" />
<LineId Id="399" Count="0" />
<LineId Id="398" Count="0" />
<LineId Id="414" Count="1" />
<LineId Id="413" Count="0" />
<LineId Id="401" Count="0" />
<LineId Id="400" Count="0" />
<LineId Id="417" Count="1" />
<LineId Id="416" Count="0" />
<LineId Id="403" Count="0" />
<LineId Id="402" Count="0" />
<LineId Id="420" Count="1" />
<LineId Id="419" Count="0" />
<LineId Id="423" Count="0" />
<LineId Id="422" Count="0" />
<LineId Id="377" Count="0" />
<LineId Id="449" Count="1" />
<LineId Id="580" Count="0" />
<LineId Id="579" Count="0" />
<LineId Id="581" Count="0" />
<LineId Id="584" Count="0" />
<LineId Id="583" Count="0" />
<LineId Id="586" Count="0" />
<LineId Id="585" Count="0" />
<LineId Id="587" Count="2" />
<LineId Id="592" Count="0" />
<LineId Id="591" Count="0" />
<LineId Id="593" Count="2" />
<LineId Id="452" Count="0" />
<LineId Id="460" Count="1" />
<LineId Id="451" Count="0" />
<LineId Id="453" Count="1" />
<LineId Id="463" Count="0" />
<LineId Id="462" Count="0" />
<LineId Id="455" Count="0" />
<LineId Id="661" Count="0" />
<LineId Id="660" Count="0" />
<LineId Id="662" Count="4" />
<LineId Id="668" Count="0" />
<LineId Id="667" Count="0" />
<LineId Id="669" Count="1" />
<LineId Id="672" Count="0" />
<LineId Id="671" Count="0" />
<LineId Id="675" Count="0" />
<LineId Id="903" Count="15" />
<LineId Id="1226" Count="0" />
<LineId Id="919" Count="32" />
<LineId Id="1227" Count="0" />
<LineId Id="952" Count="32" />
<LineId Id="1228" Count="0" />
<LineId Id="985" Count="32" />
<LineId Id="1229" Count="0" />
<LineId Id="1018" Count="135" />
<LineId Id="674" Count="0" />
</LineIds>
<LineIds Name="FB_Module.FB_init">