Skip to content

Commit dcf721d

Browse files
authored
Merge pull request #18 from EuropeanSpallationSource/szilardh/slit-multimaster
MBP-369: Slit multimaster
2 parents 0ae60a0 + ba33807 commit dcf721d

File tree

5 files changed

+55
-2
lines changed

5 files changed

+55
-2
lines changed

solution/_Config/PLC/tc_project_app.xti

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<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">
33
<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">
4-
<Instance Id="#x08502040" TcSmClass="TComPlcObjDef" KeepUnrestoredLinks="2" TmcPath="tc_project_app\tc_project_app.tmc" TmcHash="{6CD45C2B-D1C4-BDD8-9BD4-FD476A870DC8}">
4+
<Instance Id="#x08502040" TcSmClass="TComPlcObjDef" KeepUnrestoredLinks="2" TmcPath="tc_project_app\tc_project_app.tmc" TmcHash="{C38143B7-B57C-03FF-2ED1-1847F1DEC6E1}">
55
<Name>tc_project_app Instance</Name>
66
<CLSID ClassFactory="TcPlc30">{08500001-0000-0000-F000-000000000064}</CLSID>
77
<Vars VarGrpType="1">
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<TcPlcObject Version="1.1.0.1">
3+
<POU Name="Slit_Template" Id="{a65ca917-ba94-010b-1294-a8b8b5e174dd}" SpecialFunc="None">
4+
<Declaration><![CDATA[PROGRAM Slit_Template
5+
VAR
6+
fbSlit : FB_SlitPair;
7+
END_VAR
8+
VAR CONSTANT
9+
//Change AxisIds based on your current setup
10+
//AxisIDs of physical axes
11+
cBladeNegative : USINT := 1;
12+
cBladePositive : USINT := 2;
13+
//AxisIDs of virtual axes
14+
cGapSize : USINT := 3;
15+
cGapCentre : USINT := 4;
16+
END_VAR
17+
]]></Declaration>
18+
<Implementation>
19+
<ST><![CDATA[//Slit
20+
fbSlit(
21+
//Required inputs
22+
stBladeNegative := GVL.astAxes[cBladeNegative],
23+
stBladePositive := GVL.astAxes[cBladePositive],
24+
stGapSize := GVL.astAxes[cGapSize],
25+
stGapCentre := GVL.astAxes[cGapCentre],
26+
iGapSize := cGapSize,
27+
iGapCentre := cGapCentre,
28+
//Optional inputs
29+
fEncoderScaling := ,
30+
bAutoHome := ,
31+
bAnticollisionEnable := ,
32+
fAnticollisionMargin := ,
33+
//Outputs
34+
bEnabled => ,
35+
bError => ,
36+
bHoming => );
37+
]]></ST>
38+
</Implementation>
39+
</POU>
40+
</TcPlcObject>

solution/tc_project_app/POUs/MAIN.TcPOU

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ Safety_Shutter();
136136
Cabinet_Monitoring();
137137
Pneumatic_Box();
138138
//Shutter_Operator_Panel();
139+
//Slit_Template();
139140
//Application_Template();
140141
]]></ST>
141142
</Implementation>

solution/tc_project_app/tc_project_app.plcproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
<Compile Include="POUs\Application_Specific\Applications\Cabinet_Monitoring.TcPOU">
4141
<SubType>Code</SubType>
4242
</Compile>
43+
<Compile Include="POUs\Application_Specific\Applications\Slit_Template.TcPOU">
44+
<SubType>Code</SubType>
45+
</Compile>
4346
<Compile Include="POUs\Application_Specific\Applications\Pneumatic_Box.TcPOU">
4447
<SubType>Code</SubType>
4548
</Compile>
@@ -79,6 +82,9 @@
7982
<Compile Include="tc_mca_std_lib\DUTs\Axis_Structures\ST_AxisInputs.TcDUT">
8083
<SubType>Code</SubType>
8184
</Compile>
85+
<Compile Include="tc_mca_std_lib\DUTs\Axis_Structures\ST_AxisParamSpec.TcDUT">
86+
<SubType>Code</SubType>
87+
</Compile>
8288
<Compile Include="tc_mca_std_lib\DUTs\Axis_Structures\ST_AxisPersistent.TcDUT">
8389
<SubType>Code</SubType>
8490
</Compile>
@@ -106,6 +112,9 @@
106112
<Compile Include="tc_mca_std_lib\DUTs\E_AxisEngUnit.TcDUT">
107113
<SubType>Code</SubType>
108114
</Compile>
115+
<Compile Include="tc_mca_std_lib\DUTs\E_AxisParamCheckState.TcDUT">
116+
<SubType>Code</SubType>
117+
</Compile>
109118
<Compile Include="tc_mca_std_lib\DUTs\E_AxisParameters.TcTLEO">
110119
<SubType>Code</SubType>
111120
</Compile>
@@ -130,6 +139,9 @@
130139
<Compile Include="tc_mca_std_lib\DUTs\E_RestorePosition.TcDUT">
131140
<SubType>Code</SubType>
132141
</Compile>
142+
<Compile Include="tc_mca_std_lib\DUTs\E_SlitSoftLimits.TcDUT">
143+
<SubType>Code</SubType>
144+
</Compile>
133145
<Compile Include="tc_mca_std_lib\DUTs\I_Axis.TcIO">
134146
<SubType>Code</SubType>
135147
</Compile>

0 commit comments

Comments
 (0)