diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU index 58591cd..f1cd022 100644 --- a/solution/tc_project_app/POUs/MAIN.TcPOU +++ b/solution/tc_project_app/POUs/MAIN.TcPOU @@ -159,7 +159,7 @@ IF bRestoreExecute AND NOT bPositionRestoreDone THEN // Execute position restore by setting aFbRestorePosition.execute = TRUE FOR GVL.iAxis:= 1 TO gvl_app.nAxisNum DO IF aFbReadEncRefSys[GVL.iAxis].Valid = TRUE AND aFbReadEncRefSys[GVL.iAxis].Value = 0 AND NOT(axesPersistent[GVL.iAxis].bMovingAtShutdown) THEN - IF GVL.axes[GVL.iAxis].config.eRestorePosition = RestorePosition.RestoreWithoutHome THEN + IF GVL.axes[GVL.iAxis].config.eRestorePosition = E_RestorePosition.RestoreWithoutHome THEN aFbRestorePosition[GVL.iAxis].Execute := TRUE; END_IF END_IF @@ -172,7 +172,7 @@ IF bRestoreExecute AND NOT bPositionRestoreDone THEN // bPositionRestoreDone will never get set to TRUE and will take up cycle time FOR GVL.iAxis:= 1 TO gvl_app.nAxisNum DO IF aFbReadEncRefSys[GVL.iAxis].Valid = TRUE AND aFbReadEncRefSys[GVL.iAxis].Value = 0 AND NOT(axesPersistent[GVL.iAxis].bMovingAtShutdown) THEN - IF GVL.axes[GVL.iAxis].config.eRestorePosition = RestorePosition.RestoreWithoutHome THEN + IF GVL.axes[GVL.iAxis].config.eRestorePosition = E_RestorePosition.RestoreWithoutHome THEN IF NOT aFbRestorePosition[GVL.iAxis].Done THEN RETURN; END_IF @@ -227,77 +227,7 @@ END_FOR]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/solution/tc_project_app/Test/common/FB_tcUNIT_common.TcPOU b/solution/tc_project_app/Test/common/FB_tcUNIT_common.TcPOU index 9fb8d47..8aaea1c 100644 --- a/solution/tc_project_app/Test/common/FB_tcUNIT_common.TcPOU +++ b/solution/tc_project_app/Test/common/FB_tcUNIT_common.TcPOU @@ -37,7 +37,7 @@ END_VAR]]> - - - - - + - - - - - - - - + + \ No newline at end of file diff --git a/solution/tc_project_app/Test/standard_library_tests/FB_Axis_TEST.TcPOU b/solution/tc_project_app/Test/standard_library_tests/FB_Axis_TEST.TcPOU index 36cf024..a5d70eb 100644 --- a/solution/tc_project_app/Test/standard_library_tests/FB_Axis_TEST.TcPOU +++ b/solution/tc_project_app/Test/standard_library_tests/FB_Axis_TEST.TcPOU @@ -66,7 +66,7 @@ InitialValue := GVL.axes[iTargetAxis].config.fPosition; ExpectedResult := InitialValue + 10; GVL.axes[iTargetAxis].config.fPosition := ExpectedResult; -GVL.axes[iTargetAxis].control.eCommand := MotionFunctions.MoveAbsolute; +GVL.axes[iTargetAxis].control.eCommand := E_MotionFunctions.MoveAbsolute; GVL.axes[iTargetAxis].control.bExecute := TRUE; Result := GVL.axes[iTargetAxis].status.fActPosition; diff --git a/solution/tc_project_app/tc_mca_std_lib b/solution/tc_project_app/tc_mca_std_lib index 6202b7b..8edeaa8 160000 --- a/solution/tc_project_app/tc_mca_std_lib +++ b/solution/tc_project_app/tc_mca_std_lib @@ -1 +1 @@ -Subproject commit 6202b7b79093816b0270a22112bebfd65e919dad +Subproject commit 8edeaa86c4b19d466f1a88548399a19014200c2c diff --git a/solution/tc_project_app/tc_project_app.plcproj b/solution/tc_project_app/tc_project_app.plcproj index a6e81bf..b3f98ef 100644 --- a/solution/tc_project_app/tc_project_app.plcproj +++ b/solution/tc_project_app/tc_project_app.plcproj @@ -39,7 +39,7 @@ Code - + Code @@ -48,7 +48,7 @@ Code - + Code @@ -87,33 +87,12 @@ Code - - Code - - - Code - - + Code Code - - Code - - - Code - - - Code - - - Code - - - Code - Code