Skip to content

Commit bf91197

Browse files
authored
Merge pull request #16 from OpenCommissioning/development
Development
2 parents 619e947 + 7a496f1 commit bf91197

5 files changed

Lines changed: 55 additions & 1 deletion

File tree

Artifacts/OC_EtherCAT.ethml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
<Device ProductDescription="EL6910"/>
88
<Device ProductDescription="EL6631"/>
99
</Ignore>
10+
<Device ProductDescription="EL1004">
11+
<Declaration>
12+
<![CDATA[{attribute 'TcLinkTo' := '
13+
.bIn1 := TIIB($BOXNO$)^Channel 1^Input;
14+
.bIn2 := TIIB($BOXNO$)^Channel 2^Input;
15+
.bIn3 := TIIB($BOXNO$)^Channel 3^Input;
16+
.bIn4 := TIIB($BOXNO$)^Channel 4^Input'}
17+
$NAME$ : ST_Beckhoff_4DI;]]>
18+
</Declaration>
19+
</Device>
1020
<Device ProductDescription="EL1008">
1121
<Declaration>
1222
<![CDATA[{attribute 'TcLinkTo' := '
@@ -21,6 +31,16 @@
2131
$NAME$ : ST_Beckhoff_8DI;]]>
2232
</Declaration>
2333
</Device>
34+
<Device ProductDescription="EL2004">
35+
<Declaration>
36+
<![CDATA[{attribute 'TcLinkTo' := '
37+
.bOut1 := TIIB($BOXNO$)^Channel 1^Output;
38+
.bOut2 := TIIB($BOXNO$)^Channel 2^Output;
39+
.bOut3 := TIIB($BOXNO$)^Channel 3^Output;
40+
.bOut4 := TIIB($BOXNO$)^Channel 4^Output'}
41+
$NAME$ : ST_Beckhoff_4DO;]]>
42+
</Declaration>
43+
</Device>
2444
<Device ProductDescription="EL2008">
2545
<Declaration>
2646
<![CDATA[{attribute 'TcLinkTo' := '

Artifacts/OC_EtherCAT.library

1.35 KB
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4026.13">
3+
<DUT Name="ST_Beckhoff_4DI" Id="{737f44b3-4a70-053f-24c5-7288dc67582c}">
4+
<Declaration><![CDATA[{attribute 'pack_mode' := '1'}
5+
TYPE ST_Beckhoff_4DI :
6+
STRUCT
7+
bIn1 AT %Q* : BIT;
8+
bIn2 AT %Q* : BIT;
9+
bIn3 AT %Q* : BIT;
10+
bIn4 AT %Q* : BIT;
11+
END_STRUCT
12+
END_TYPE]]></Declaration>
13+
</DUT>
14+
</TcPlcObject>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4026.13">
3+
<DUT Name="ST_Beckhoff_4DO" Id="{b39f1c57-dd52-0bc3-2b5c-80f2226e2c6a}">
4+
<Declaration><![CDATA[{attribute 'pack_mode' := '1'}
5+
TYPE ST_Beckhoff_4DO :
6+
STRUCT
7+
bOut1 AT %I* : BIT;
8+
bOut2 AT %I* : BIT;
9+
bOut3 AT %I* : BIT;
10+
bOut4 AT %I* : BIT;
11+
END_STRUCT
12+
END_TYPE]]></Declaration>
13+
</DUT>
14+
</TcPlcObject>

OC_EtherCAT.plcproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<Released>false</Released>
2020
<Company>Open Commissioning</Company>
2121
<Title>OC_EtherCAT</Title>
22-
<ProjectVersion>1.1.7</ProjectVersion>
22+
<ProjectVersion>1.1.8</ProjectVersion>
2323
<LibraryCategories>
2424
<LibraryCategory xmlns="">
2525
<Id>{41661a1f-00b4-4855-90c5-5a3bdd03b62b}</Id>
@@ -155,12 +155,18 @@
155155
<Compile Include="Devices\Terminals\ST_Beckhoff_8DI.TcDUT">
156156
<SubType>Code</SubType>
157157
</Compile>
158+
<Compile Include="Devices\Terminals\ST_Beckhoff_4DI.TcDUT">
159+
<SubType>Code</SubType>
160+
</Compile>
158161
<Compile Include="Devices\Terminals\ST_Beckhoff_8DI_8DO.TcDUT">
159162
<SubType>Code</SubType>
160163
</Compile>
161164
<Compile Include="Devices\Terminals\ST_Beckhoff_8DO.TcDUT">
162165
<SubType>Code</SubType>
163166
</Compile>
167+
<Compile Include="Devices\Terminals\ST_Beckhoff_4DO.TcDUT">
168+
<SubType>Code</SubType>
169+
</Compile>
164170
<Compile Include="Devices\Terminals\ST_Beckhoff_EL3403.TcDUT">
165171
<SubType>Code</SubType>
166172
</Compile>

0 commit comments

Comments
 (0)