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

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12">
<POU Name="FB_ModuleMockup" Id="{7849a7a0-5044-422d-86cf-733e0cdbe96b}" SpecialFunc="None">
<Declaration><![CDATA[FUNCTION_BLOCK FB_ModuleMockup
VAR_INPUT
stModuleError : REFERENCE TO ST_MODULE_ERROR;
END_VAR
VAR_OUTPUT
END_VAR
VAR
// Unit array
afbUnits : ARRAY[0..3] OF FB_UnitMockup;
i : INT;
END_VAR
]]></Declaration>
<Implementation>
<ST><![CDATA[FOR i := 0 TO 3 DO
afbUnits[i](stUnitError:= stModuleError.astUnitErrors[i]);
END_FOR]]></ST>
</Implementation>
<LineIds Name="FB_ModuleMockup">
<LineId Id="9" Count="0" />
<LineId Id="14" Count="1" />
</LineIds>
</POU>
</TcPlcObject>