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,11 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12">
<GVL Name="GVL_CONFIG" Id="{67a902f8-b820-49bc-8915-3c28de9d0ca8}">
<Declaration><![CDATA[{attribute 'qualified_only'}
VAR_GLOBAL
stPressureSensorConfig : ST_ANALOG_IO_CONFIG := (iAIMax := 32767, iAIMin := 0, rPVMax := 1500, rPVMin := -1000, sUnit := 'mbar');
stTempSensorConfig : ST_ANALOG_IO_CONFIG := (iAIMax := 32767, iAIMin := -32768, rPVMax := 3276.7, rPVMin := -3276.8, sUnit := '°C');
stVoltageSensorconfig : ST_ANALOG_IO_CONFIG := (iAIMax := 32767, iAIMin := 0, rPVMax := 150, rPVMin := 0, sUnit := 'V');
END_VAR]]></Declaration>
</GVL>
</TcPlcObject>

View File

@@ -5,6 +5,12 @@
VAR_GLOBAL
// Random number generator
fbRandom : DRAND;
// Emergency stop ok
xEmergencyStopOk AT %Q* : BOOL := TRUE;
// String error array
astStringError : ST_STRING_ERROR;
END_VAR]]></Declaration>
</GVL>
</TcPlcObject>