diff --git a/solution/solution.tsproj b/solution/solution.tsproj index 6650b38..2a8b590 100644 --- a/solution/solution.tsproj +++ b/solution/solution.tsproj @@ -1,6 +1,6 @@ - + @@ -28,6 +28,26 @@ BOOL + + MAIN.bOutput5 + BOOL + + + MAIN.bOutput13 + BOOL + + + MAIN.bOutput17 + BOOL + + + MAIN.bOutput21 + BOOL + + + MAIN.bOutput24 + BOOL + diff --git a/solution/tc_project_app/GlobalTextList.TcGTLO b/solution/tc_project_app/GlobalTextList.TcGTLO index e8f06fc..fd8f331 100644 --- a/solution/tc_project_app/GlobalTextList.TcGTLO +++ b/solution/tc_project_app/GlobalTextList.TcGTLO @@ -140,6 +140,191 @@ "Clear All" + + "712" + "eHomeBwdLimit" + + + + "530" + "eHomeBwdToEncRef" + + + + "386" + "eHomeBwdToEncRef2speed" + + + + "341" + "eHomeBwdToEncRef2speeds" + + + + "387" + "eHomeBwdToLimit2speeds" + + + + "964" + "eHomeBwdToRef" + + + + "35" + "eHomeBwdToRef2speeds" + + + + "650" + "eHomeBwdToReference" + + + + "480" + "eHomeBwdToReference2speed" + + + + "339" + "eHomeBwdToReference2speeds" + + + + "986" + "ehomeDirect" + + + + "328" + "eHomeFwdToEncRef" + + + + "125" + "eHomeFwdToEncRef2speeds" + + + + "484" + "eHomeFwdToEncRef_viaFwdLimit" + + + + "374" + "eHomeFwdToLimit" + + + + "851" + "eHomeFwdToLimit2speeds" + + + + "693" + "eHomeBwdToLimit" + + + + "489" + "eHomeBwdToLimit2speeds" + + + + "445" + "eHomeBwdToLimitspeeds" + + + + "637" + "eHomeFwdToLimit" + + + + "351" + "eHomeFwdToLimit2speeds" + + + + "198" + "eHomeToEncPulse_Bwd" + + + + "510" + "eHomeToEncPulse_Fwd" + + + + "287" + "eHomeToEncPulse_viaBwdLimit" + + + + "683" + "eHomeToEncPulse_viaFwdLimit" + + + + "535" + "eHomeToEncRefBwd" + + + + "367" + "eHomeToEncRefFwd" + + + + "358" + "eHomeToEncRef_viaBwdLimi" + + + + "740" + "eHomeToEncRef_viaBwdLimit" + + + + "689" + "eHomeToLimitBwd" + + + + "504" + "eHomeToLimitFwd" + + + + "312" + "eHomeToLimit_Bwd" + + + + "635" + "eHomeToLimit_Fwd" + + + + "432" + "eHomeToRefBwd" + + + + "285" + "eHomeToRefFwd" + + + + "150" + "eHomeToRef_Bwd" + + + + "861" + "eHomeToRef_Fwd" + + "104" "ENABLE" @@ -200,6 +385,21 @@ "fDeceleration" + + "531" + "fHomeFinishDistance" + + + + "613" + "fHomePosition" + + + + "157" + "fHomePositions" + + "957" "fPosition" @@ -245,6 +445,11 @@ "gearOut" + + "169" + "homeDirect" + + "566" "homeSensorNeg" @@ -315,6 +520,11 @@ "reset" + + "611" + "shomeDirect" + + "115" "stop" diff --git a/solution/tc_project_app/POUs/MAIN.TcPOU b/solution/tc_project_app/POUs/MAIN.TcPOU index c0a18e8..23f225b 100644 --- a/solution/tc_project_app/POUs/MAIN.TcPOU +++ b/solution/tc_project_app/POUs/MAIN.TcPOU @@ -131,7 +131,7 @@ IF bRestoreExecute AND NOT bPositionRestoreDone THEN eCheckReadDone: //Check the encoder reference system has been read for all axis -> if busy then continue with PLC cycle and check again next time. //If afbReadEncRefSys not started then go back a step. - //If any axes result in an error the code will get stuck here, this happens if GVL_APP.nAxisNum is not set correctly + //If any axes result in an error the code will get stuck here, this happens if GVL_APP.nAXIS_NUM is not set correctly FOR iAxes := 1 TO GVL_APP.nAXIS_NUM DO IF afbReadEncRefSys[iAxes].Valid = FALSE THEN IF afbReadEncRefSys[iAxes].Busy = TRUE THEN 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 14c9f5f..5c7c306 100644 --- a/solution/tc_project_app/Test/common/FB_tcUNIT_common.TcPOU +++ b/solution/tc_project_app/Test/common/FB_tcUNIT_common.TcPOU @@ -10,6 +10,15 @@ END_VAR]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/solution/tc_project_app/Test/common/tcUNIT_GVL.TcGVL b/solution/tc_project_app/Test/common/tcUNIT_GVL.TcGVL index e80baa0..b88fff9 100644 --- a/solution/tc_project_app/Test/common/tcUNIT_GVL.TcGVL +++ b/solution/tc_project_app/Test/common/tcUNIT_GVL.TcGVL @@ -14,6 +14,7 @@ fDEFAULT_TARGET_ACCELERATION: LREAL := 0.5; fDEFAULT_TARGET_DECCELERATION: LREAL := 0.5; fDEFAULT_TARGET_POSITION: LREAL := 10.0; fDEFAULT_TARGET_OVERRIDE: LREAL := 100; +nMAX_MASTERS : UINT := 4; END_VAR VAR_GLOBAL diff --git a/solution/tc_project_app/Test/standard_library_tests/E_TestStates.TcDUT b/solution/tc_project_app/Test/standard_library_tests/E_TestStates.TcDUT new file mode 100644 index 0000000..a280ecb --- /dev/null +++ b/solution/tc_project_app/Test/standard_library_tests/E_TestStates.TcDUT @@ -0,0 +1,22 @@ + + + + + + \ No newline at end of file diff --git a/solution/tc_project_app/tc_mca_std_lib b/solution/tc_project_app/tc_mca_std_lib index 0a0c539..e839940 160000 --- a/solution/tc_project_app/tc_mca_std_lib +++ b/solution/tc_project_app/tc_mca_std_lib @@ -1 +1 @@ -Subproject commit 0a0c539319919b42fab9763d46d387c0db50b96f +Subproject commit e8399403350a24c396e43c30bc0f5b3874798790 diff --git a/solution/tc_project_app/tc_project_app.plcproj b/solution/tc_project_app/tc_project_app.plcproj index d484aeb..4bbf97c 100644 --- a/solution/tc_project_app/tc_project_app.plcproj +++ b/solution/tc_project_app/tc_project_app.plcproj @@ -93,7 +93,7 @@ Code - + Code @@ -115,9 +115,15 @@ Code + + Code + Code + + Code + Code