diff --git a/solution/Licenses/ReadMe_licenses.txt b/solution/Licenses/ReadMe_licenses.txt
new file mode 100644
index 0000000..79e6b36
--- /dev/null
+++ b/solution/Licenses/ReadMe_licenses.txt
@@ -0,0 +1,5 @@
+Copy and paste in this folder the licenses contained inside the Beckhoff CPU in the path:
+
+C:\TwinCAT\3.1\Target\License
+
+Thank you
\ No newline at end of file
diff --git a/solution/solution.tsproj b/solution/solution.tsproj
index 75d2c60..5a083bc 100644
--- a/solution/solution.tsproj
+++ b/solution/solution.tsproj
@@ -1143,6 +1143,46 @@ External Setpoint Generation:
+
+ MAIN.fbEL1808.Channel_1_Input
+ BOOL
+
+
+ MAIN.fbEL1808.Channel_2_Input
+ BOOL
+
+
+ MAIN.fbEL1808.Channel_3_Input
+ BOOL
+
+
+ MAIN.fbEL1808.Channel_4_Input
+ BOOL
+
+
+ MAIN.fbEL1808.Channel_5_Input
+ BOOL
+
+
+ MAIN.fbEL1808.Channel_6_Input
+ BOOL
+
+
+ MAIN.fbEL1808.Channel_7_Input
+ BOOL
+
+
+ MAIN.fbEL1808.Channel_8_Input
+ BOOL
+
+
+ MAIN.fbEL1808.WcState_WcState
+ BOOL
+
+
+ MAIN.fbEL1808.InfoData_State
+ UINT
+
PlcTask Outputs
@@ -1171,15 +1211,6 @@ bHomeSensor8 AT %I*: BOOL;
BOOL
-
- MAIN.bOutput5
-
-
-
- BOOL
-
MAIN.M1Link.Axis.PlcToNc
PLCTONC_AXIS_REF
@@ -1196,6 +1227,15 @@ bOutput4 AT %Q*: BOOL:= TRUE;]]>
MAIN.M2.MasterAxis.PlcToNc
PLCTONC_AXIS_REF
+
+ MAIN.bOutput5
+
+
+
+ BOOL
+
diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU
index 46718c2..35ae024 100644
--- a/solution/tc_project_app/POUs/MAIN.TcPOU
+++ b/solution/tc_project_app/POUs/MAIN.TcPOU
@@ -67,13 +67,25 @@ VAR
//bOutput21 AT %Q*: BOOL:= TRUE;
//bOutput24 AT %Q*: BOOL:= TRUE;
//bOutput28 AT %Q*: BOOL:= TRUE;
+
+(******Error Handling********)
+ fbErrorList: FB_ErrorList;
+ //fbEL3214: EL3214;
+ fbEL1808: EL1808;
+ //fbEL2819: EL2819;
+ //fbEL9410: EL9410;
+
+(*******New and specific application variables*********)
+
END_VAR
]]>
-
+
-
+
@@ -1773,8 +1785,68 @@ END_VAR
+
+
+ ,
+ nNoError=> ,
+ nNoOverflow=> ,
+ pErrorSystem=> );
+
+(*call all the necessary instance (input assistance F2 or right click) according to the terminals that you have in your hardware and
+ add "TRUE" in the input En, the corresponding number of termianl to the iTerminal_ID and
+the variable "fbErrorList.pErrorSystem" to the input ErrorSystem in each FB E. g. :
+fbEL1808(
+ En:= TRUE,
+ iTerminal_ID:= 1,
+ ErrorSystem:= fbErrorList.pErrorSystem,
+ EnO=> ,
+ bDi_1=> ,
+ bDi_2=> ,
+ bDi_3=> ,
+ bDi_4=> ,
+ bDi_5=> ,
+ bDi_6=> ,
+ bDi_7=> ,
+ bDi_8=> ,
+ bError=> ); *)
+//
+]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/solution/tc_project_app/tc_project_app.plcproj b/solution/tc_project_app/tc_project_app.plcproj
index 2938caf..1fc0c8e 100644
--- a/solution/tc_project_app/tc_project_app.plcproj
+++ b/solution/tc_project_app/tc_project_app.plcproj
@@ -70,159 +70,27 @@
Code
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
Code
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
Code
Code
-
- Code
-
Code
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
Code
-
- Code
-
-
- Code
-
-
- Code
-
Code
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
Code
-
- Code
-
Code
@@ -235,36 +103,6 @@
Code
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
Code
@@ -295,36 +133,36 @@
Code
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
-
- Code
-
Code
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
+
+ Code
+
Code
Visualization Manager.TcVMO
@@ -349,7 +187,6 @@
-
@@ -357,6 +194,7 @@
+
@@ -404,6 +242,10 @@
true
2717eb6a-dd07-4c66-8d8d-cacebd7b18ae
+
+ Tc2_EtherCAT, * (Beckhoff Automation GmbH)
+ Tc2_EtherCAT
+
Tc2_MC2, * (Beckhoff Automation GmbH)
Tc2_MC2
@@ -433,8 +275,8 @@
-
-
+
+
"<ProjectRoot>"
{192FAD59-8248-4824-A8DE-9177C94C195A}
@@ -482,14 +324,14 @@
-
-
- System.Collections.Hashtable
- System.Int32
- {54dd0eac-a6d8-46f2-8c27-2f43c7e49861}
- System.String
-
-
+
+
+ System.Collections.Hashtable
+ System.Int32
+ {54dd0eac-a6d8-46f2-8c27-2f43c7e49861}
+ System.String
+
+
\ No newline at end of file