From 9d73d91c1351823504939ba3a5bf6d8ccc6f2280 Mon Sep 17 00:00:00 2001 From: tongju12 Date: Tue, 26 Sep 2023 12:03:19 -0700 Subject: [PATCH] tune axes parameter and atten X reverse motor direction --- plc-tmo-motion/_Config/NC/Axes/FoilX.xti | 2 +- plc-tmo-motion/_Config/NC/Axes/FoilY.xti | 2 +- plc-tmo-motion/tmo_motion/tmo_motion.tmc | 298 +++++++++++++++++------ 3 files changed, 226 insertions(+), 76 deletions(-) diff --git a/plc-tmo-motion/_Config/NC/Axes/FoilX.xti b/plc-tmo-motion/_Config/NC/Axes/FoilX.xti index ca33099..a8645cf 100644 --- a/plc-tmo-motion/_Config/NC/Axes/FoilX.xti +++ b/plc-tmo-motion/_Config/NC/Axes/FoilX.xti @@ -1466,7 +1466,7 @@ Drive Status 4 (manually linked): - + diff --git a/plc-tmo-motion/_Config/NC/Axes/FoilY.xti b/plc-tmo-motion/_Config/NC/Axes/FoilY.xti index 7582d9a..55875a7 100644 --- a/plc-tmo-motion/_Config/NC/Axes/FoilY.xti +++ b/plc-tmo-motion/_Config/NC/Axes/FoilY.xti @@ -1463,7 +1463,7 @@ Drive Status 4 (manually linked): - + diff --git a/plc-tmo-motion/tmo_motion/tmo_motion.tmc b/plc-tmo-motion/tmo_motion/tmo_motion.tmc index 5966298..e4c0836 100644 --- a/plc-tmo-motion/tmo_motion/tmo_motion.tmc +++ b/plc-tmo-motion/tmo_motion/tmo_motion.tmc @@ -1,5 +1,5 @@ - + ST_System @@ -6256,6 +6256,11 @@ DINT 32 + + __Index__0 + DINT + 32 + AssertEquals_BOOL @@ -6391,6 +6396,11 @@ DINT 32 + + __Index__0 + DINT + 32 + AssertEquals_STRING @@ -6547,6 +6557,11 @@ DINT 32 + + __Index__0 + DINT + 32 + GetNumberOfSuccessfulTests @@ -6656,6 +6671,11 @@ DINT 32 + + __Index__0 + DINT + 32 + SetTestFailed @@ -6789,6 +6809,11 @@ DINT 32 + + __Index__0 + DINT + 32 + IsTestFinished @@ -7269,6 +7294,11 @@ DINT 32 + + __Index__0 + DINT + 32 + AssertEquals_SINT @@ -8034,6 +8064,11 @@ DINT 32 + + __Index__0 + DINT + 32 + AssertEquals_TIME @@ -8425,6 +8460,11 @@ DINT 32 + + __Index__0 + DINT + 32 + AssertArrayEquals_INT @@ -8519,6 +8559,11 @@ DINT 32 + + __Index__0 + DINT + 32 + AssertFalse @@ -8643,6 +8688,11 @@ DINT 32 + + __Index__0 + DINT + 32 + AssertArrayEquals_LWORD @@ -8747,6 +8797,11 @@ DINT 32 + + __Index__0 + DINT + 32 + AssertEquals_LWORD @@ -9060,6 +9115,11 @@ DINT 32 + + __Index__0 + DINT + 32 + AreAllTestsFinished @@ -9227,6 +9287,11 @@ DINT 32 + + __Index__0 + DINT + 32 + FindTestSuiteInstancePath @@ -9408,6 +9473,11 @@ DINT 32 + + __Index__0 + DINT + 32 + AssertArrayEquals_LREAL @@ -9508,6 +9578,11 @@ DINT 32 + + __Index__0 + DINT + 32 + @@ -20694,6 +20769,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + FindTestSuiteInstancePath @@ -20952,6 +21032,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + AssertArrayEquals_BYTE @@ -21056,6 +21141,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + AssertEquals_DATE @@ -21212,6 +21302,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + AssertEquals_LTIME @@ -21337,6 +21432,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + AssertEquals_LREAL @@ -21478,6 +21578,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + AssertEquals @@ -22236,6 +22341,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + SetHasStartedRunning @@ -22396,6 +22506,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + GetHasStartedRunning @@ -22501,6 +22616,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + AssertEquals_WSTRING @@ -22652,6 +22772,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + AssertEquals_DINT @@ -22777,6 +22902,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + AssertEquals_STRING @@ -22952,6 +23082,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + AssertArray3dEquals_LREAL @@ -23234,6 +23369,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + CalculateAndSetNumberOfAssertsForTest @@ -24027,6 +24167,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + AssertArrayEquals_UDINT @@ -24121,6 +24266,11 @@ contributing fast faults, unless the FFO is currently vetoed. DINT 32 + + __Index__0 + DINT + 32 + @@ -58743,44 +58893,6 @@ Digital outputs - - LCLSGeneralEventClass - Log event - - Critical - Critical - Critical - - - Error - Error - Error - - - Warning - Warning - Warning - - - Info - Info - Info - - - Verbose - Verbose - Verbose - - - - - - - - - - - TcSystemEventClass TcSystemEventClass @@ -59587,6 +59699,44 @@ Digital outputs + + LCLSGeneralEventClass + Log event + + Critical + Critical + Critical + + + Error + Error + Error + + + Warning + Warning + Warning + + + Info + Info + Info + + + Verbose + Verbose + Verbose + + + + + + + + + + + @@ -81975,29 +82125,6 @@ Digital outputs 685356640 - - TC_EVENTS.LCLSGeneralEventClass - ST_LCLSGeneralEventClass - 960 - ST_LCLSGeneralEventClass - - - tc_no_symbol - unused - - - const_non_replaced - - - suppress_warning_0 - C0228 - - - TcVarGlobal - - - 685399968 - TC_EVENT_CLASSES.TcSystemEventClass 11F7FC20-DBF4-4DAF-96C7-1FD6B6156B31 @@ -82065,7 +82192,7 @@ Digital outputs TcVarGlobal - 685408992 + 685370016 TC_EVENT_CLASSES.TcGeneralAdsEventClass @@ -82134,7 +82261,7 @@ Digital outputs TcVarGlobal - 685409120 + 685370144 TC_EVENT_CLASSES.TcRouterEventClass @@ -82203,7 +82330,7 @@ Digital outputs TcVarGlobal - 685409248 + 685370272 TC_EVENT_CLASSES.TcRTimeEventClass @@ -82272,7 +82399,7 @@ Digital outputs TcVarGlobal - 685409376 + 685370400 TC_EVENT_CLASSES.Win32EventClass @@ -82341,7 +82468,7 @@ Digital outputs TcVarGlobal - 685409504 + 685370528 TC_EVENT_CLASSES.LCLSGeneralEventClass @@ -82410,7 +82537,30 @@ Digital outputs TcVarGlobal - 685409632 + 685370656 + + + TC_EVENTS.LCLSGeneralEventClass + ST_LCLSGeneralEventClass + 960 + ST_LCLSGeneralEventClass + + + tc_no_symbol + unused + + + const_non_replaced + + + suppress_warning_0 + C0228 + + + TcVarGlobal + + + 685400992 @@ -82471,9 +82621,6 @@ Digital outputs - - LCLSGeneralEventClass - TcSystemEventClass @@ -82489,6 +82636,9 @@ Digital outputs Win32EventClass + + LCLSGeneralEventClass + @@ -82497,15 +82647,15 @@ Digital outputs ChangeDate - 2023-09-12T17:51:40 + 2023-09-26T12:00:04 GeneratedCodeSize - 995328 + 1073152 GlobalDataSize - 85188608 + 85258240