Added Simulation plc and removed unnecessary files from repository

This commit is contained in:
Matthias Heisig
2024-01-04 18:39:55 +01:00
parent 2bd41279b1
commit bd0bbd9c8b
43 changed files with 4692 additions and 1328 deletions

View File

@@ -5,6 +5,9 @@
VAR_INPUT
xOpenValve AT %I* : BOOL;
xCloseValve AT %I* : BOOL;
xErrorOpen : BOOL := FALSE;
xErrorClose : BOOL := FALSE;
END_VAR
VAR_OUTPUT
xOpenFeedback AT %Q* : BOOL;
@@ -21,8 +24,8 @@ _tonOpen(IN := xOpenValve);
_tonClose(IN := xCloseValve);
// Open and close feedback
xOpenFeedback := _tonOpen.Q;
xCloseFeedback := _tonClose.Q;]]></ST>
xOpenFeedback := _tonOpen.Q AND (NOT xErrorOpen);
xCloseFeedback := _tonClose.Q AND (NOT xErrorClose);]]></ST>
</Implementation>
<LineIds Name="FB_ValveMockup">
<LineId Id="54" Count="5" />