Merge pull request #3 from EuropeanSpallationSource/federicor/update-template-files

Federicor/update template files
This commit is contained in:
Federico Rojas G
2025-04-01 09:31:29 +02:00
committed by GitHub
9 changed files with 95 additions and 10 deletions

View File

@@ -1,9 +1,22 @@
<?xml version="1.0"?>
<TcSmItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.beckhoff.com/schemas/2012/07/TcSmProject" TcSmVersion="1.0" TcVersion="3.1.4024.56" ClassName="CNestedPlcProjDef">
<TcSmItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.beckhoff.com/schemas/2012/07/TcSmProject" TcSmVersion="1.0" TcVersion="3.1.4024.62" ClassName="CNestedPlcProjDef">
<Project GUID="{FB261665-FD20-4BF2-97F8-2854C82B752D}" Name="tc_project_app" PrjFilePath="..\..\tc_project_app\tc_project_app.plcproj" TmcFilePath="..\..\tc_project_app\tc_project_app.tmc" ReloadTmc="true" AmsPort="852" FileArchiveSettings="#x000e" ClearInvalidPersist="true" SymbolicMapping="true">
<Instance Id="#x08502040" TcSmClass="TComPlcObjDef" KeepUnrestoredLinks="2" TmcPath="tc_project_app\tc_project_app.tmc" TmcHash="{83792354-8B16-F471-93AE-C957C3918E0A}">
<Instance Id="#x08502040" TcSmClass="TComPlcObjDef" KeepUnrestoredLinks="2" TmcPath="tc_project_app\tc_project_app.tmc" TmcHash="{2DD05E89-3C9F-970A-3886-19B31EB4CDD4}">
<Name>tc_project_app Instance</Name>
<CLSID ClassFactory="TcPlc30">{08500001-0000-0000-F000-000000000064}</CLSID>
<Vars VarGrpType="1">
<Name>PlcTask Inputs</Name>
<Var>
<Name>GVL.nAirPressureSensorGroup1</Name>
<Comment><![CDATA[Raw value from analog air pressure sensor for pneumatic axes group 1]]></Comment>
<Type>INT</Type>
</Var>
<Var>
<Name>GVL.nAirPressureSensorGroup2</Name>
<Comment><![CDATA[Raw value from analog air pressure sensor for pneumatic axes group 2]]></Comment>
<Type>INT</Type>
</Var>
</Vars>
<Contexts>
<Context>
<Id>0</Id>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<TcSmProject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.beckhoff.com/schemas/2012/07/TcSmProject" TcSmVersion="1.0" TcVersion="3.1.4024.56" TcVersionFixed="true">
<TcSmProject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.beckhoff.com/schemas/2012/07/TcSmProject" TcSmVersion="1.0" TcVersion="3.1.4024.62">
<Project ProjectGUID="{9CF97348-B9D3-4938-B1F2-5F0B0B6AA66A}" Target64Bit="true" ShowHideConfigurations="#x106">
<System>
<Settings MaxCpus="2" DontCheckTarget="10.0.5.148.1.1">

View File

@@ -235,6 +235,16 @@
<v n="TextDefault">"Current pressure value (bar)"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"1386"</v>
<v n="TextDefault">"disSoftLimBw"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"269"</v>
<v n="TextDefault">"disSoftLimFw"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"986"</v>
<v n="TextDefault">"ehomeDirect"</v>
@@ -340,6 +350,16 @@
<v n="TextDefault">"English"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"1496"</v>
<v n="TextDefault">"enSoftLimBw"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"850"</v>
<v n="TextDefault">"enSoftLimFw"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"720"</v>
<v n="TextDefault">"eReadCoEParameter"</v>
@@ -695,6 +715,11 @@
<v n="TextDefault">"Stop at any Limit Swtich"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"1033"</v>
<v n="TextDefault">"SWLimitSwitches"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"108"</v>
<v n="TextDefault">"Test Language"</v>

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1">
<POU Name="Cabinet_Configuration" Id="{f09ddf2c-38c8-0b17-348a-c2e3aa836c88}" SpecialFunc="None">
<Declaration><![CDATA[PROGRAM Cabinet_Configuration
VAR
//fbCabinetMonitoring: FB_ESSMonitoringMCU5001a; FB_ESSMonitoringMCU5001b; FB_ESSMonitoringMCU6001a; FB_ESSMonitoringMCU6001b; FB_ESSMonitoringMCU5002; FB_ESSMonitoringMCU5003;
END_VAR
]]></Declaration>
<Implementation>
<ST><![CDATA[(*
fbCabinetMonitoring(
nEcMasterNetId:= , //AMS NetId of Device (EtherCAT) from I/Os
aErrorID=> ,
aErrorMsg=> ,
nEcMasterFramesLost=> ,
nCPULoad=> ,
fCycleExecTime_ms=> ,
nAlarmGrpBitNumber=> );
*)
//Define pressure limits for pneumatic pressure group 1
//GVL.fHighLimitAirPressureGroup1 := 0.0;
//GVL.fLowLimitAirPressureGroup1 := 0.0;
//Define pressure limits for pneumatic pressure group 2
//GVL.fHighLimitAirPressureGroup2 := 0.0;
//GVL.fLowLimitAirPressureGroup2 := 0.0;
]]></ST>
</Implementation>
</POU>
</TcPlcObject>

View File

@@ -4,12 +4,18 @@
<Declaration><![CDATA[PROGRAM Shutter_Operator_panel_Template
VAR
//Variables used to control the LEDs of the Safety Shutter Operator panel
(*bExtendedLight AT %Q*: BOOL; //Power output for Open position + LED
(*
{attribute 'TcLinkTo' := 'TIID^Device 1 (EtherCAT)^KF201 (EK1200)^KF217 (EK1521)^KF01 (EK1501-0100)^KF03 (EL2014)^DIG Outputs^Channel 1^Output'}
bExtendedLight AT %Q*: BOOL; //Power output for Open position + LED
{attribute 'TcLinkTo' := 'TIID^Device 1 (EtherCAT)^KF201 (EK1200)^KF217 (EK1521)^KF01 (EK1501-0100)^KF03 (EL2014)^DIG Outputs^Channel 3^Output'}
bRetractedLight AT %Q*: BOOL; //Power output for Close position + LED
{attribute 'TcLinkTo' := 'TIID^Device 1 (EtherCAT)^KF201 (EK1200)^KF217 (EK1521)^KF01 (EK1501-0100)^KF03 (EL2014)^DIG Outputs^Channel 2^Output'}
bMovingLight AT %Q*: BOOL; //Power output for cylinder Moving LED
{attribute 'TcLinkTo' := 'TIID^Device 1 (EtherCAT)^KF201 (EK1200)^KF217 (EK1521)^KF01 (EK1501-0100)^KF04 (EL2014)^DIG Outputs^Channel 1^Output'}
bNoPermitLight AT %Q*: BOOL; //Power output for No permit LED
{attribute 'TcLinkTo' := 'TIID^Device 1 (EtherCAT)^KF201 (EK1200)^KF217 (EK1521)^KF01 (EK1501-0100)^KF04 (EL2014)^DIG Outputs^Channel 2^Output'}
bErrorLight AT %Q*: BOOL; //Power output for Error LED
*)
*)
END_VAR
]]></Declaration>
<Implementation>

View File

@@ -15,8 +15,6 @@ END_VAR
GVL.astPneumaticAxes[x].stPneumaticAxisConfig.nTimeToExtend := 10;
GVL.astPneumaticAxes[x].stPneumaticAxisConfig.nTimeToRetract := 10;
GVL.astPneumaticAxes[x].stPneumaticAxisConfig.nAllowTimePressureOutOfRange := 5;
GVL.astPneumaticAxes[x].stPneumaticAxisConfig.fLowLimitPressureValue := 3.5;
GVL.astPneumaticAxes[x].stPneumaticAxisConfig.fHighLimitPressureValue := 6.0;
END_IF
*)

View File

@@ -124,6 +124,9 @@ GVL.fbGetCurTaskIndex();
//Call the programs that are defined in the "Application Specific" folder.
//Create as many programs in that folder as axes and applications you have or need
//Cabinet monitoring and pressure limits for pneumatics
//Cabinet_Configuration();
//Axes initial parameters and program
Axis_Template();
//Pneumatics_Template();

View File

@@ -37,6 +37,9 @@
<Compile Include="POUs\Application_Specific\Applications\Application_Template.TcPOU">
<SubType>Code</SubType>
</Compile>
<Compile Include="POUs\Application_Specific\Applications\Cabinet_Configuration.TcPOU">
<SubType>Code</SubType>
</Compile>
<Compile Include="POUs\Application_Specific\Applications\Shutter_Operator_panel_Template.TcPOU">
<SubType>Code</SubType>
</Compile>
@@ -103,7 +106,7 @@
<Compile Include="tc_mca_std_lib\DUTs\E_AxisParameters.TcTLEO">
<SubType>Code</SubType>
</Compile>
<Compile Include="tc_mca_std_lib\DUTs\E_MonitoringLedFunction.TcDUT">
<Compile Include="tc_mca_std_lib\DUTs\E_MonitorLed.TcDUT">
<SubType>Code</SubType>
</Compile>
<Compile Include="tc_mca_std_lib\DUTs\E_RestorePosition.TcDUT">
@@ -118,6 +121,9 @@
<Compile Include="tc_mca_std_lib\DUTs\Pneumatics\E_PneumaticAxisErrors.TcDUT">
<SubType>Code</SubType>
</Compile>
<Compile Include="tc_mca_std_lib\DUTs\Pneumatics\E_PneumaticAxisGroup.TcDUT">
<SubType>Code</SubType>
</Compile>
<Compile Include="tc_mca_std_lib\DUTs\Pneumatics\E_PneumaticMode.TcDUT">
<SubType>Code</SubType>
</Compile>
@@ -154,7 +160,10 @@
<Compile Include="tc_mca_std_lib\GVLs\GVL.TcGVL">
<SubType>Code</SubType>
</Compile>
<Compile Include="tc_mca_std_lib\POUs\FB_ESSMonitoring.TcPOU">
<Compile Include="tc_mca_std_lib\POUs\FB_ESSMonitoringMCU5001a.TcPOU">
<SubType>Code</SubType>
</Compile>
<Compile Include="tc_mca_std_lib\POUs\FB_ESSMonitoringMCU400x.TcPOU">
<SubType>Code</SubType>
</Compile>
<Compile Include="tc_mca_std_lib\POUs\Motion\FB_Axis.TcPOU">