diff --git a/solution/solution.tsproj b/solution/solution.tsproj
index fc25f08..e3ecf33 100644
--- a/solution/solution.tsproj
+++ b/solution/solution.tsproj
@@ -1574,6 +1574,460 @@ External Setpoint Generation:
1: axis is a master axis
2: axis is master and slave
3: axis is a slave axis
+]]>
+
+
+
+
+
+
+ Axis 2
+
+
+
+
+
+ Inputs
+
+ In
+ NCENCODERSTRUCT_IN2B
+ 2688
+
+ nDataIn1
+
+
+ nDataIn2
+
+
+ nState4
+
+
+
+
+
+ nDataIn3
+
+
+ nDataIn4
+
+
+ nDataIn5
+
+
+ nDataIn6
+
+
+ nDataIn7
+
+
+
+
+ Outputs
+
+ Out
+ NCENCODERSTRUCT_OUT2
+ 4736
+
+ nDataOut1
+
+
+ nDataOut2
+
+
+ nDataOut3
+
+
+ nDataOut4
+
+
+ nDataOut5
+
+
+ nDataOut6
+
+
+
+
+
+
+
+
+
+ Inputs
+
+ In
+ NCDRIVESTRUCT_IN2
+ 3008
+
+ nDataIn1
+
+
+ nDataIn2
+
+
+ nState4
+
+
+
+
+
+ nDataIn3
+
+
+ nDataIn4
+
+
+ nDataIn5
+
+
+ nDataIn6
+
+
+
+
+ Outputs
+
+ Out
+ NCDRIVESTRUCT_OUT2
+ 5056
+
+ nDataOut1
+
+
+ nDataOut2
+
+
+ nCtrl2
+
+
+
+
+
+ nCtrl3
+
+
+
+
+
+ nDataOut3
+
+
+ nDataOut4
+
+
+ nDataOut5
+
+
+ nDataOut6
+
+
+
+
+
+
+
+
+
+
+ Inputs
+
+ FromPlc
+ PLCTONC_AXIS_REF
+ 1664
+
+
+
+ Outputs
+
+ ToPlc
+ NCTOPLC_AXIS_REF
+ 2688
+
+ AxisState
+
+
+
+
+
+ HomingState
+
+
+
+
+
+ CoupleState
+
+
+
+
+
+
+
+
+ Axis 3
+
+
+
+
+
+ Inputs
+
+ In
+ NCENCODERSTRUCT_IN2B
+ 4352
+
+ nDataIn1
+
+
+ nDataIn2
+
+
+ nState4
+
+
+
+
+
+ nDataIn3
+
+
+ nDataIn4
+
+
+ nDataIn5
+
+
+ nDataIn6
+
+
+ nDataIn7
+
+
+
+
+ Outputs
+
+ Out
+ NCENCODERSTRUCT_OUT2
+ 7424
+
+ nDataOut1
+
+
+ nDataOut2
+
+
+ nDataOut3
+
+
+ nDataOut4
+
+
+ nDataOut5
+
+
+ nDataOut6
+
+
+
+
+
+
+
+
+
+ Inputs
+
+ In
+ NCDRIVESTRUCT_IN2
+ 4672
+
+ nDataIn1
+
+
+ nDataIn2
+
+
+ nState4
+
+
+
+
+
+ nDataIn3
+
+
+ nDataIn4
+
+
+ nDataIn5
+
+
+ nDataIn6
+
+
+
+
+ Outputs
+
+ Out
+ NCDRIVESTRUCT_OUT2
+ 7744
+
+ nDataOut1
+
+
+ nDataOut2
+
+
+ nCtrl2
+
+
+
+
+
+ nCtrl3
+
+
+
+
+
+ nDataOut3
+
+
+ nDataOut4
+
+
+ nDataOut5
+
+
+ nDataOut6
+
+
+
+
+
+
+
+
+
+
+ Inputs
+
+ FromPlc
+ PLCTONC_AXIS_REF
+ 3328
+
+
+
+ Outputs
+
+ ToPlc
+ NCTOPLC_AXIS_REF
+ 5376
+
+ AxisState
+
+
+
+
+
+ HomingState
+
+
+
+
+
+ CoupleState
+
+
@@ -1867,6 +2321,14 @@ External Setpoint Generation:
+
+
+
+
+
+
+
+
diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU
index b94dd55..dd8707e 100644
--- a/solution/tc_project_app/POUs/MAIN.TcPOU
+++ b/solution/tc_project_app/POUs/MAIN.TcPOU
@@ -27,6 +27,8 @@ VAR
(******Error Handling********)
fbErrorSystem: FB_ErrorSystem;
+ aFbAxesError: ARRAY [1..gvl.axisNum] OF FB_NC_Error;
+
//fbEL1018 : EL1018;
//fbEL2808 : EL2808;
//fbEL5101 : EL5101;
@@ -37,6 +39,7 @@ VAR
//fbEK1110 : EK1110;
+
END_VAR
]]>
@@ -49,7 +52,7 @@ ERROR();]]>
,
nSelectedError=> ,
pErrorSystem=> );
+
+
+FOR GVL.iAxis:=1 TO gvl.axisNum DO
+ aFbAxesError[gvl.iAxis](EN:=TRUE,
+ nNC_ErrorID:= gvl.axes[gvl.iAxis].status.nErrorID,
+ nNC_AxisID:=gvl.axes[gvl.iAxis].Axis.NcToPlc.AxisId,
+ ErrorSystem:= fbErrorSystem.pErrorSystem);
+END_FOR
+
+
(*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
@@ -80,10 +93,9 @@ fbEL1808(
iTerminal_ID:= 01,
ErrorSystem:= fbErorSystem.pErrorSystem,
EnO=> ,
- bError=> );
-For axis add *)
-
-//
+ bError=> );
+ *)
+
]]>
@@ -112,10 +124,14 @@ For axis add *)
+
+
+
+
+
-
-
+
diff --git a/solution/tc_project_app/tc_mca_std_lib b/solution/tc_project_app/tc_mca_std_lib
index 930d7d8..7ec52da 160000
--- a/solution/tc_project_app/tc_mca_std_lib
+++ b/solution/tc_project_app/tc_mca_std_lib
@@ -1 +1 @@
-Subproject commit 930d7d8836eed1fbb226af0c9879fd171196a731
+Subproject commit 7ec52daf4fd5efe337a2805fdf777650a1b227af
diff --git a/solution/tc_project_app/tc_project_app.plcproj b/solution/tc_project_app/tc_project_app.plcproj
index 24cec4b..5bf6c19 100644
--- a/solution/tc_project_app/tc_project_app.plcproj
+++ b/solution/tc_project_app/tc_project_app.plcproj
@@ -70,6 +70,9 @@
Code
+
+ Code
+
Code