Added Simulation plc and removed unnecessary files from repository
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user