diff --git a/solution/solution.tsproj b/solution/solution.tsproj index e663030..9224788 100644 --- a/solution/solution.tsproj +++ b/solution/solution.tsproj @@ -1171,7 +1171,6 @@ External Setpoint Generation: - diff --git a/solution/tc_project_app/GVLs/GVL_APP.TcGVL b/solution/tc_project_app/GVLs/GVL_APP.TcGVL new file mode 100644 index 0000000..a366e64 --- /dev/null +++ b/solution/tc_project_app/GVLs/GVL_APP.TcGVL @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU index dd8707e..1b367f8 100644 --- a/solution/tc_project_app/POUs/MAIN.TcPOU +++ b/solution/tc_project_app/POUs/MAIN.TcPOU @@ -5,7 +5,7 @@ VAR sVersion: STRING:='1.0.0'; i : UINT; //index variable for AXES() - aFbAxes: ARRAY [1..gvl.axisNum] OF FB_Axis; + aFbAxes: ARRAY [1..gvl_app.axisNum] OF FB_Axis; hmiAxisSelection : INT:=1; //Not possible to use local hmi variables for array indexes (******Outputs: Power for Limit switches and Home Sensors (every 4th output)********) @@ -27,7 +27,7 @@ VAR (******Error Handling********) fbErrorSystem: FB_ErrorSystem; - aFbAxesError: ARRAY [1..gvl.axisNum] OF FB_NC_Error; + aFbAxesError: ARRAY [1..gvl_app.axisNum] OF FB_NC_Error; //fbEL1018 : EL1018; //fbEL2808 : EL2808; @@ -51,7 +51,7 @@ ERROR();]]> ); -FOR GVL.iAxis:=1 TO gvl.axisNum DO +FOR GVL.iAxis:=1 TO gvl_app.axisNum DO aFbAxesError[gvl.iAxis](EN:=TRUE, nNC_ErrorID:= gvl.axes[gvl.iAxis].status.nErrorID, nNC_AxisID:=gvl.axes[gvl.iAxis].Axis.NcToPlc.AxisId, diff --git a/solution/tc_project_app/tc_mca_std_lib b/solution/tc_project_app/tc_mca_std_lib index 1a5fa47..f2b1862 160000 --- a/solution/tc_project_app/tc_mca_std_lib +++ b/solution/tc_project_app/tc_mca_std_lib @@ -1 +1 @@ -Subproject commit 1a5fa47db49901bee67a942ad2ce5447a7903b0a +Subproject commit f2b186273119f71345ff25367b3145b07dfa66f4 diff --git a/solution/tc_project_app/tc_project_app.plcproj b/solution/tc_project_app/tc_project_app.plcproj index b6cbc8b..903cef5 100644 --- a/solution/tc_project_app/tc_project_app.plcproj +++ b/solution/tc_project_app/tc_project_app.plcproj @@ -19,6 +19,10 @@ Code + + Code + true + Code