From a2f0228d485c23a74fa3d036e1593e343d886dad Mon Sep 17 00:00:00 2001 From: aslanliafichev Date: Fri, 27 Mar 2026 08:21:21 +0100 Subject: [PATCH 1/3] MBP-359: Add soft limits in MainVisu --- VISUs/MainVisu.TcVIS | 1566 +++++++++++++++++++++++++++++++++-- VISUs/languageSupport.TcTLO | 28 + 2 files changed, 1544 insertions(+), 50 deletions(-) diff --git a/VISUs/MainVisu.TcVIS b/VISUs/MainVisu.TcVIS index 8aa4dac..dd45b37 100644 --- a/VISUs/MainVisu.TcVIS +++ b/VISUs/MainVisu.TcVIS @@ -5,7 +5,7 @@ - "13" + "14" @@ -1103,7 +1103,7 @@ "E_AxisParameters" - 899 + 1030 -1 false @@ -5538,11 +5538,11 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute:=TRUE;" 1649127785L - 15 + 20 357335551L - 340 + 344 2422045748L @@ -5595,11 +5595,11 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute:=TRUE;" 550940142L - 90 + 95 1473355128L - 355 + 359 493260384L @@ -17748,7 +17748,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute:=TRUE;" "E_AxisParameters" - 900 + 1030 -1 false @@ -23236,7 +23236,7 @@ GVL.astAxes[MAIN.hmiAxisSelection].stControl.bExecute:=TRUE;" 2134141914L - 153 + 351 3729828405L @@ -23263,7 +23263,7 @@ GVL.astAxes[MAIN.hmiAxisSelection].stControl.bExecute:=TRUE;" 1473355128L - 735 + 834 2678395525L @@ -34301,15 +34301,1256 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 1649127785L - 136 + 136 + + + 357335551L + 473 + + + 2422045748L + 100 + + + 2134141914L + 30 + + + 3729828405L + + + 0 + 0 + -16777216 + "Font-Standard" + "Arial" + 12 + 0 + 0 + + -16777216 + "Font-Default-Color" + + + + + + 1337389588L + "NONE" + + + 2678395525L + 0 + + + 390574330L + "nSoEErrorID" + + + 2597686782L + false + + + 2477733581L + "" + + + 1782330054L + "BS_HOLLOW" + + + 2827249010L + "PS_HOLLOW" + + + 2114174855L + ""languageSupport"" + + + 3774423699L + ""nSoEErrorID"" + + + 3719097617L + 0 + + + 823443203L + "59" + + + + "Textfield" + "VisuFbElemTextfield" + true + "GenElemInst_745" + + + + {9930ef5d-15a7-4b88-b46f-744745671b12} + {63eeb817-1a76-06e3-215d-714040055109} + + + 733 + + + + + + + + + + 571893170L + "" + + + 494569607L + + -2830136 + "Element-Frame-Color" + + + + 2812299069L + + + -1 + "Element-Fill-Color" + + + + + 135947015L + + + -65536 + "Element-Alarm-Frame-Color" + + + + + 493260384L + + + -12337 + "Element-Alarm-Fill-Color" + + + + + 2340015797L + "HCENTER" + + + 2565699834L + "VCENTER" + + + 4134387352L + "NONE" + + + 1603690730L + "Arial" + + + 4253639993L + 12 + + + 2729990903L + 0U + + + 1213979116L + 0U + + + 3488306084L + 4278190080U + + + 1999528970L + "<toggle/tap variable>" + + + 1649127785L + 129 + + + 357335551L + 335 + + + 2422045748L + 60 + + + 2134141914L + 30 + + + 3729828405L + + + 0 + 0 + -16777216 + "Font-Standard" + "Arial" + 12 + 0 + 0 + + -16777216 + "Font-Default-Color" + + + + + + 1337389588L + "RAISED" + + + 2678395525L + 1U + + + 390574330L + "%x" + + + 2477733581L + "GVL.astAxes[MAIN.hmiAxisSelection].stStatus.nErrorID" + + + 2597686782L + false + + + 3719097617L + 0 + + + 823443203L + "940" + + + + "Textfield" + "VisuFbElemTextfield" + true + "GenElemInst_69" + + + + {fe672969-69a5-480a-aa16-fbbe18e777a5} + {63eeb817-1a76-06e3-215d-714040055109} + + + 70 + + + + + + + + + + 571893170L + "" + + + 494569607L + + + -2830136 + "Element-Frame-Color" + + + + + 2812299069L + + + -1 + "Element-Fill-Color" + + + + + 135947015L + + + -65536 + "Element-Alarm-Frame-Color" + + + + + 493260384L + + + -12337 + "Element-Alarm-Fill-Color" + + + + + 2340015797L + "LEFT" + + + 2565699834L + "VCENTER" + + + 4134387352L + "NONE" + + + 1603690730L + "Arial" + + + 4253639993L + 12 + + + 2729990903L + 0U + + + 1213979116L + 0U + + + 3488306084L + 4278190080U + + + 1999528970L + "<toggle/tap variable>" + + + 1649127785L + 193 + + + 357335551L + 338 + + + 2422045748L + 48 + + + 2134141914L + 30 + + + 3729828405L + + + 0 + 0 + -16777216 + "Font-Standard" + "Arial" + 12 + 0 + 0 + + -16777216 + "Font-Default-Color" + + + + + + 1337389588L + "NONE" + + + 2678395525L + 0 + + + 390574330L + "errID" + + + 2597686782L + false + + + 2477733581L + "" + + + 1782330054L + "BS_HOLLOW" + + + 2827249010L + "PS_HOLLOW" + + + 2114174855L + ""languageSupport"" + + + 3774423699L + ""errID"" + + + 3719097617L + 0 + + + 823443203L + "939" + + + + "Textfield" + "VisuFbElemTextfield" + true + "GenElemInst_67" + + + + {53f785ef-86fa-4c54-b7c1-bbb411618e32} + {63eeb817-1a76-06e3-215d-714040055109} + + + 68 + + + + + + + + + + 571893170L + "" + + + 494569607L + + -2830136 + "Element-Frame-Color" + + + + 2812299069L + + + -1 + "Element-Fill-Color" + + + + + 135947015L + + + -65536 + "Element-Alarm-Frame-Color" + + + + + 493260384L + + + -12337 + "Element-Alarm-Fill-Color" + + + + + 2340015797L + "HCENTER" + + + 2565699834L + "VCENTER" + + + 4134387352L + "NONE" + + + 1603690730L + "Arial" + + + 4253639993L + 12 + + + 2729990903L + 0U + + + 1213979116L + 0U + + + 3488306084L + 4278190080U + + + 1999528970L + "<toggle/tap variable>" + + + 1649127785L + 606 + + + 357335551L + 829 + + + 2422045748L + 53 + + + 2134141914L + 30 + + + 3729828405L + + + 0 + 0 + -16777216 + "Font-Standard" + "Arial" + 12 + 0 + 0 + + -16777216 + "Font-Default-Color" + + + + + + 1337389588L + "RAISED" + + + 2678395525L + 1U + + + 390574330L + "%2.2f" + + + 2477733581L + "fSoftLimitMin" + + + 2597686782L + false + + + 3719097617L + 0 + + + 2496894244L + "" + + + 823443203L + "951" + + + + "Textfield" + "VisuFbElemTextfield" + true + "GenElemInst_752" + + + + OnMouseClick + + + "GVL.astAxes[MAIN.hmiAxisSelection].stConfig.fMinSoftPosLimit" + "Default" + "" + "" + "" + false + true + true + "" + "" + UseGlobalSetting + "" + "" + + + + {5011279b-22d2-4486-8ba3-6b9d776ed2a4} + {63eeb817-1a76-06e3-215d-714040055109} + + + 740 + + + + + + + + + + 571893170L + "" + + + 2340015797L + "HCENTER" + + + 2565699834L + "VCENTER" + + + 4134387352L + "NONE" + + + 1603690730L + "Arial" + + + 4253639993L + 12 + + + 2729990903L + 0U + + + 1213979116L + 0U + + + 3488306084L + 4278190080U + + + 1647042231L + "" + + + 2812299069L + 4294967295U + + + 494569607L + 4278190080U + + + 1649127785L + 475 + + + 357335551L + 829 + + + 2422045748L + 124 + + + 2134141914L + 30 + + + 1651471674L + true + + + 2341735680L + + + -2830136 + "Element-Control-Color" + + + + + 438423234L + + + -2830136 + "Element-Alarm-Fill-Color" + + + + + 3729828405L + + + 0 + 0 + -16777216 + "Font-Standard" + "Arial" + 12 + 0 + 0 + + -16777216 + "Element-Button-FontColor" + + + + + + 550940142L + 537 + + + 1473355128L + 844 + + + 493260384L + 4294967295U + + + 135947015L + 4278190080U + + + 2678395525L + 1U + + + 2478807622L + "" + + + 390574330L + "fWriteSoftLimitMin" + + + 2597686782L + false + + + 2114174855L + ""languageSupport"" + + + 3774423699L + ""fWriteSoftLimitMin"" + + + 2496894244L + "GVL.astAxes[MAIN.hmiAxisSelection].stStatus.bGeared" + + + 3719097617L + 0 + + + 823443203L + "697" + + + + "Button" + "VisuFbElemButton" + true + "GenElemInst_756" + + + + OnMouseClick + + + "GVL.astAxes[Main.hmiAxisSelection].stConfig.eAxisParameters := E_AxisParameters.SWLimitBackward; +GVL.astAxes[Main.hmiAxisSelection].stConfig.fWriteAxisParameter := fSoftLimitMin; +GVL.astAxes[Main.hmiAxisSelection].stControl.eCommand := E_MotionFunctions.eWriteParameter; +GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" + + + + {8b1844c5-5410-40cd-909c-fc4dd5f3c9d4} + {63eeb817-1a76-06e3-215d-714040055109} + + + 744 + + + + + + + + + + 571893170L + "" + + + 494569607L + + -2830136 + "Element-Frame-Color" + + + + 2812299069L + + + -1 + "Element-Fill-Color" + + + + + 135947015L + + + -65536 + "Element-Alarm-Frame-Color" + + + + + 493260384L + + + -12337 + "Element-Alarm-Fill-Color" + + + + + 2340015797L + "HCENTER" + + + 2565699834L + "VCENTER" + + + 4134387352L + "NONE" + + + 1603690730L + "Arial" + + + 4253639993L + 12 + + + 2729990903L + 0U + + + 1213979116L + 0U + + + 3488306084L + 4278190080U + + + 1999528970L + "<toggle/tap variable>" + + + 1649127785L + 607 + + + 357335551L + 868 + + + 2422045748L + 53 + + + 2134141914L + 30 + + + 3729828405L + + + 0 + 0 + -16777216 + "Font-Standard" + "Arial" + 12 + 0 + 0 + + -16777216 + "Font-Default-Color" + + + + + + 1337389588L + "RAISED" + + + 2678395525L + 1U + + + 390574330L + "%2.2f" + + + 2477733581L + "GVL.astAxes[Main.hmiAxisSelection].stConfig.fMinSoftPosLimit" + + + 2597686782L + false + + + 3719097617L + 0 + + + 2496894244L + "" + + + 823443203L + "951" + + + + "Textfield" + "VisuFbElemTextfield" + true + "GenElemInst_760" + + + + OnMouseClick + + + "GVL.astAxes[MAIN.hmiAxisSelection].stConfig.fMinSoftPosLimit" + "Default" + "" + "" + "" + false + true + true + "" + "" + UseGlobalSetting + "" + "" + + + + {a4af323e-393d-4e14-99b2-afc4381fbdcd} + {63eeb817-1a76-06e3-215d-714040055109} + + + 749 + + + + + + + + + + 571893170L + "" + + + 494569607L + + + -2830136 + "Element-Frame-Color" + + + + + 2812299069L + + + -1 + "Element-Fill-Color" + + + + + 135947015L + + + -65536 + "Element-Alarm-Frame-Color" + + + + + 493260384L + + + -12337 + "Element-Alarm-Fill-Color" + + + + + 2340015797L + "HCENTER" + + + 2565699834L + "VCENTER" + + + 4134387352L + "NONE" + + + 1603690730L + "Arial" + + + 4253639993L + 12 + + + 2729990903L + 0U + + + 1213979116L + 0U + + + 3488306084L + 4278190080U + + + 1999528970L + "<toggle/tap variable>" + + + 1649127785L + 477 + + + 357335551L + 870 + + + 2422045748L + 123 + + + 2134141914L + 30 + + + 3729828405L + + + 0 + 0 + -16777216 + "Font-Standard" + "Arial" + 12 + 0 + 0 + + -16777216 + "Font-Default-Color" + + + + + + 1337389588L + "NONE" + + + 2678395525L + 0 + + + 390574330L + "fMinSoftLimit" + + + 2597686782L + false + + + 2477733581L + "" + + + 1782330054L + "BS_HOLLOW" + + + 2827249010L + "PS_HOLLOW" + + + 2114174855L + ""languageSupport"" + + + 3774423699L + ""fMinSoftLimit"" + + + 3719097617L + 0 + + + 823443203L + "1235" + + + + "Textfield" + "VisuFbElemTextfield" + true + "GenElemInst_762" + + + + {22a58f67-7f78-40d5-be0b-5667169723db} + {63eeb817-1a76-06e3-215d-714040055109} + + + 751 + + + + + + + + + + 571893170L + "" + + + 494569607L + + -2830136 + "Element-Frame-Color" + + + + 2812299069L + + + -1 + "Element-Fill-Color" + + + + + 135947015L + + + -65536 + "Element-Alarm-Frame-Color" + + + + + 493260384L + + + -12337 + "Element-Alarm-Fill-Color" + + + + + 2340015797L + "HCENTER" + + + 2565699834L + "VCENTER" + + + 4134387352L + "NONE" + + + 1603690730L + "Arial" + + + 4253639993L + 12 + + + 2729990903L + 0U + + + 1213979116L + 0U + + + 3488306084L + 4278190080U + + + 1999528970L + "<toggle/tap variable>" + + + 1649127785L + 608 357335551L - 473 + 927 2422045748L - 100 + 53 2134141914L @@ -34336,31 +35577,213 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 1337389588L - "NONE" + "RAISED" 2678395525L - 0 + 1U 390574330L - "nSoEErrorID" + "%2.2f" + + + 2477733581L + "fSoftLimitMax" 2597686782L false - 2477733581L + 3719097617L + 0 + + + 2496894244L "" - 1782330054L - "BS_HOLLOW" + 823443203L + "951" + + + "Textfield" + "VisuFbElemTextfield" + true + "GenElemInst_764" + + + + OnMouseClick + - 2827249010L - "PS_HOLLOW" + "" + "Default" + "" + "" + "" + false + true + false + "" + "" + UseGlobalSetting + "" + "" + + + + {e7f4a30e-94f6-442a-a53f-3265354b2e41} + {63eeb817-1a76-06e3-215d-714040055109} + + + 753 + + + + + + + + + + 571893170L + "" + + + 2340015797L + "HCENTER" + + + 2565699834L + "VCENTER" + + + 4134387352L + "NONE" + + + 1603690730L + "Arial" + + + 4253639993L + 12 + + + 2729990903L + 0U + + + 1213979116L + 0U + + + 3488306084L + 4278190080U + + + 1647042231L + "" + + + 2812299069L + 4294967295U + + + 494569607L + 4278190080U + + + 1649127785L + 477 + + + 357335551L + 927 + + + 2422045748L + 124 + + + 2134141914L + 30 + + + 1651471674L + true + + + 2341735680L + + + -2830136 + "Element-Control-Color" + + + + + 438423234L + + + -2830136 + "Element-Alarm-Fill-Color" + + + + + 3729828405L + + + 0 + 0 + -16777216 + "Font-Standard" + "Arial" + 12 + 0 + 0 + + -16777216 + "Element-Button-FontColor" + + + + + + 550940142L + 539 + + + 1473355128L + 942 + + + 493260384L + 4294967295U + + + 135947015L + 4278190080U + + + 2678395525L + 1U + + + 2478807622L + "" + + + 390574330L + "fWriteSoftLimitMax" + + + 2597686782L + false 2114174855L @@ -34368,7 +35791,11 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 3774423699L - ""nSoEErrorID"" + ""fWriteSoftLimitMax"" + + + 2496894244L + "GVL.astAxes[MAIN.hmiAxisSelection].stStatus.bGeared" 3719097617L @@ -34376,22 +35803,32 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 823443203L - "59" + "901" - "Textfield" - "VisuFbElemTextfield" + "Button" + "VisuFbElemButton" true - "GenElemInst_745" + "GenElemInst_766" - - {9930ef5d-15a7-4b88-b46f-744745671b12} + + OnMouseClick + + + "GVL.astAxes[Main.hmiAxisSelection].stConfig.eAxisParameters := E_AxisParameters.SWLimitForward; +GVL.astAxes[Main.hmiAxisSelection].stConfig.fWriteAxisParameter := fSoftLimitMax; +GVL.astAxes[Main.hmiAxisSelection].stControl.eCommand := E_MotionFunctions.eWriteParameter; +GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" + + + + {9575b060-1e29-4734-8d70-8a91597bc967} {63eeb817-1a76-06e3-215d-714040055109} - 733 + 755 @@ -34476,15 +35913,15 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 1649127785L - 129 + 609 357335551L - 335 + 966 2422045748L - 60 + 53 2134141914L @@ -34519,11 +35956,11 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 390574330L - "%x" + "%2.2f" 2477733581L - "GVL.astAxes[MAIN.hmiAxisSelection].stStatus.nErrorID" + "GVL.astAxes[Main.hmiAxisSelection].stConfig.fMaxSoftPosLimit" 2597686782L @@ -34533,24 +35970,47 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 3719097617L 0 + + 2496894244L + "" + 823443203L - "940" + "951" "Textfield" "VisuFbElemTextfield" true - "GenElemInst_69" + "GenElemInst_768" - - {fe672969-69a5-480a-aa16-fbbe18e777a5} + + OnMouseClick + + + "" + "Default" + "" + "" + "" + false + true + false + "" + "" + UseGlobalSetting + "" + "" + + + + {d8510444-25a7-48d5-b8be-80094d540df5} {63eeb817-1a76-06e3-215d-714040055109} - 70 + 757 @@ -34601,7 +36061,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 2340015797L - "LEFT" + "HCENTER" 2565699834L @@ -34637,15 +36097,15 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 1649127785L - 193 + 478 357335551L - 338 + 968 2422045748L - 48 + 124 2134141914L @@ -34680,7 +36140,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 390574330L - "errID" + "fMaxSoftLimit" 2597686782L @@ -34704,7 +36164,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 3774423699L - ""errID"" + ""fMaxSoftLimit"" 3719097617L @@ -34712,22 +36172,22 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 823443203L - "939" + "762" "Textfield" "VisuFbElemTextfield" true - "GenElemInst_67" + "GenElemInst_770" - {53f785ef-86fa-4c54-b7c1-bbb411618e32} + {682d280b-60e4-430b-8055-7e929979d230} {63eeb817-1a76-06e3-215d-714040055109} - 68 + 759 @@ -34877,7 +36337,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; {922df0df-545b-4a6e-ab04-d027f2e1dfa1} - 750 + 770 @@ -34908,7 +36368,12 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 13L - " " + " fSoftLimitMin: LREAL;" + + + 14L + + " fSoftLimitMax: LREAL;" 7L @@ -34962,6 +36427,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; System.Guid System.Collections.Hashtable {6b108d46-58af-4e41-a3f4-174d8f160cc4} + _3S.CoDeSys.VisualElem.IInputAction[], VisualElem, Version=3.5.13.0, Culture=neutral, PublicKeyToken=null {e8e7e747-f76f-4dee-ab1c-b9637e41ac26} _3S.CoDeSys.VisualElem.InputBoxInputAction[], VisualElem.plugin, Version=3.5.13.32, Culture=neutral, PublicKeyToken=null System.Int16 diff --git a/VISUs/languageSupport.TcTLO b/VISUs/languageSupport.TcTLO index 4e7baf8..b3a4e41 100644 --- a/VISUs/languageSupport.TcTLO +++ b/VISUs/languageSupport.TcTLO @@ -741,6 +741,34 @@ + + "fMinSoftLimit" + "Current Soft Limit Min " + + + + + + "fMaxSoftLimit" + "Current Soft Limit Max" + + + + + + "fWriteSoftLimitMin" + "Set Soft Limit Min" + + + + + + "fWriteSoftLimitMax" + "Set Soft Limit Max" + + + + "" "" From 55c9aa10d35e6eaf06cb831df931159a4bde4855 Mon Sep 17 00:00:00 2001 From: aslanliafichev Date: Tue, 31 Mar 2026 10:57:03 +0200 Subject: [PATCH 2/3] MBP-359: Update MainVisu 1. Remove GVL.astAxes[MAIN.hmiAxisSelection].stStatus.bGeared 2. Make the box non-editable for current soft limit. 3. Fix negative numbers. --- DUTs/Axis_Structures/ST_AxisControl.TcDUT | 2 + VISUs/MainVisu.TcVIS | 541 +++++++++++----------- 2 files changed, 262 insertions(+), 281 deletions(-) diff --git a/DUTs/Axis_Structures/ST_AxisControl.TcDUT b/DUTs/Axis_Structures/ST_AxisControl.TcDUT index ebb7a9e..88b15e6 100644 --- a/DUTs/Axis_Structures/ST_AxisControl.TcDUT +++ b/DUTs/Axis_Structures/ST_AxisControl.TcDUT @@ -19,6 +19,8 @@ STRUCT fAcceleration: LREAL; //Acceleration for the movement command (0 uses the NC default) fDeceleration: LREAL; //Deceleration for the movement command fPosition: LREAL; //Target position for absolute moves or distance for relative moves + fMinSoftLimit: LREAL; //Minimum position soft limit + fMaxSoftLimit: LREAL; //Maximum position soft limit bHWMaskActive: BOOL := FALSE; //Indicates if hardware masking is active fMaskedTemperature: REAL := 0.0; //Temperature value used when the hardware masking is active bPressurizeAirpad AT %Q*: BOOL; //Output from method controlling airpad diff --git a/VISUs/MainVisu.TcVIS b/VISUs/MainVisu.TcVIS index dd45b37..426e903 100644 --- a/VISUs/MainVisu.TcVIS +++ b/VISUs/MainVisu.TcVIS @@ -34812,15 +34812,15 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 1649127785L - 606 + 610 357335551L - 829 + 830 2422045748L - 53 + 60 2134141914L @@ -34859,7 +34859,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 2477733581L - "fSoftLimitMin" + "GVL.astAxes[MAIN.hmiAxisSelection].stControl.fMinSoftLimit" 2597686782L @@ -34889,13 +34889,13 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; OnMouseClick - "GVL.astAxes[MAIN.hmiAxisSelection].stConfig.fMinSoftPosLimit" + "GVL.astAxes[MAIN.hmiAxisSelection].stControl.fMinSoftLimit" "Default" "" "" "" false - true + false true "" "" @@ -34972,7 +34972,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 357335551L - 829 + 830 2422045748L @@ -35029,7 +35029,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 1473355128L - 844 + 845 493260384L @@ -35065,7 +35065,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 2496894244L - "GVL.astAxes[MAIN.hmiAxisSelection].stStatus.bGeared" + "" 3719097617L @@ -35088,7 +35088,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; "GVL.astAxes[Main.hmiAxisSelection].stConfig.eAxisParameters := E_AxisParameters.SWLimitBackward; -GVL.astAxes[Main.hmiAxisSelection].stConfig.fWriteAxisParameter := fSoftLimitMin; +GVL.astAxes[Main.hmiAxisSelection].stConfig.fWriteAxisParameter := GVL.astAxes[MAIN.hmiAxisSelection].stControl.fMinSoftLimit; GVL.astAxes[Main.hmiAxisSelection].stControl.eCommand := E_MotionFunctions.eWriteParameter; GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" @@ -35101,188 +35101,6 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 744 - - - - - - - - 571893170L - "" - - - 494569607L - - -2830136 - "Element-Frame-Color" - - - - 2812299069L - - - -1 - "Element-Fill-Color" - - - - - 135947015L - - - -65536 - "Element-Alarm-Frame-Color" - - - - - 493260384L - - - -12337 - "Element-Alarm-Fill-Color" - - - - - 2340015797L - "HCENTER" - - - 2565699834L - "VCENTER" - - - 4134387352L - "NONE" - - - 1603690730L - "Arial" - - - 4253639993L - 12 - - - 2729990903L - 0U - - - 1213979116L - 0U - - - 3488306084L - 4278190080U - - - 1999528970L - "<toggle/tap variable>" - - - 1649127785L - 607 - - - 357335551L - 868 - - - 2422045748L - 53 - - - 2134141914L - 30 - - - 3729828405L - - - 0 - 0 - -16777216 - "Font-Standard" - "Arial" - 12 - 0 - 0 - - -16777216 - "Font-Default-Color" - - - - - - 1337389588L - "RAISED" - - - 2678395525L - 1U - - - 390574330L - "%2.2f" - - - 2477733581L - "GVL.astAxes[Main.hmiAxisSelection].stConfig.fMinSoftPosLimit" - - - 2597686782L - false - - - 3719097617L - 0 - - - 2496894244L - "" - - - 823443203L - "951" - - - - "Textfield" - "VisuFbElemTextfield" - true - "GenElemInst_760" - - - - OnMouseClick - - - "GVL.astAxes[MAIN.hmiAxisSelection].stConfig.fMinSoftPosLimit" - "Default" - "" - "" - "" - false - true - true - "" - "" - UseGlobalSetting - "" - "" - - - - {a4af323e-393d-4e14-99b2-afc4381fbdcd} - {63eeb817-1a76-06e3-215d-714040055109} - - - 749 - - @@ -35367,7 +35185,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 1649127785L - 477 + 475 357335551L @@ -35542,15 +35360,15 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 1649127785L - 608 + 610 357335551L - 927 + 930 2422045748L - 53 + 60 2134141914L @@ -35589,7 +35407,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 2477733581L - "fSoftLimitMax" + "GVL.astAxes[MAIN.hmiAxisSelection].stControl.fMaxSoftLimit" 2597686782L @@ -35620,7 +35438,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" "" - "Default" + "Edit" "" "" "" @@ -35698,11 +35516,11 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 1649127785L - 477 + 475 357335551L - 927 + 930 2422045748L @@ -35755,11 +35573,11 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 550940142L - 539 + 537 1473355128L - 942 + 945 493260384L @@ -35795,12 +35613,16 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 2496894244L - "GVL.astAxes[MAIN.hmiAxisSelection].stStatus.bGeared" + "" 3719097617L 0 + + 2880254039L + "" + 823443203L "901" @@ -35818,7 +35640,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" "GVL.astAxes[Main.hmiAxisSelection].stConfig.eAxisParameters := E_AxisParameters.SWLimitForward; -GVL.astAxes[Main.hmiAxisSelection].stConfig.fWriteAxisParameter := fSoftLimitMax; +GVL.astAxes[Main.hmiAxisSelection].stConfig.fWriteAxisParameter := GVL.astAxes[MAIN.hmiAxisSelection].stControl.fMaxSoftLimit; GVL.astAxes[Main.hmiAxisSelection].stControl.eCommand := E_MotionFunctions.eWriteParameter; GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" @@ -35843,10 +35665,12 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 494569607L - - -2830136 - "Element-Frame-Color" - + + + -2830136 + "Element-Frame-Color" + + 2812299069L @@ -35913,15 +35737,15 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 1649127785L - 609 + 475 357335551L - 966 + 970 2422045748L - 53 + 124 2134141914L @@ -35948,69 +35772,62 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 1337389588L - "RAISED" + "NONE" 2678395525L - 1U + 0 390574330L - "%2.2f" + "fMaxSoftLimit" + + + 2597686782L + false 2477733581L - "GVL.astAxes[Main.hmiAxisSelection].stConfig.fMaxSoftPosLimit" + "" - 2597686782L - false + 1782330054L + "BS_HOLLOW" - 3719097617L - 0 + 2827249010L + "PS_HOLLOW" - 2496894244L - "" + 2114174855L + ""languageSupport"" + + + 3774423699L + ""fMaxSoftLimit"" + + + 3719097617L + 0 823443203L - "951" + "762" "Textfield" "VisuFbElemTextfield" true - "GenElemInst_768" + "GenElemInst_770" - - OnMouseClick - - - "" - "Default" - "" - "" - "" - false - true - false - "" - "" - UseGlobalSetting - "" - "" - - - - {d8510444-25a7-48d5-b8be-80094d540df5} + + {682d280b-60e4-430b-8055-7e929979d230} {63eeb817-1a76-06e3-215d-714040055109} - 757 + 759 @@ -36025,19 +35842,17 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 494569607L - - - -2830136 - "Element-Frame-Color" - - + + -2830136 + "Element-Frame-Color" + 2812299069L - -1 - "Element-Fill-Color" + -1381912 + "Element-Background-Color" @@ -36097,15 +35912,15 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 1649127785L - 478 + 610 357335551L - 968 + 870 2422045748L - 124 + 60 2134141914L @@ -36132,39 +35947,182 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 1337389588L - "NONE" + "RAISED" 2678395525L - 0 + 1U 390574330L - "fMaxSoftLimit" + "%2.2f" + + + 2477733581L + "GVL.astAxes[Main.hmiAxisSelection].stConfig.fMinSoftPosLimit" 2597686782L false - 2477733581L + 3719097617L + 0 + + + 823443203L + "951" + + + + "Textfield" + "VisuFbElemTextfield" + true + "GenElemInst_792" + + + + {cc28e5dd-5c9a-4187-94dd-fc23cc4a9783} + {63eeb817-1a76-06e3-215d-714040055109} + + + 782 + + + + + + + + + + 571893170L "" - 1782330054L - "BS_HOLLOW" + 494569607L + + -2830136 + "Element-Frame-Color" + - 2827249010L - "PS_HOLLOW" + 2812299069L + + + -1381912 + "Element-Background-Color" + + - 2114174855L - ""languageSupport"" + 135947015L + + + -65536 + "Element-Alarm-Frame-Color" + + - 3774423699L - ""fMaxSoftLimit"" + 493260384L + + + -12337 + "Element-Alarm-Fill-Color" + + + + + 2340015797L + "HCENTER" + + + 2565699834L + "VCENTER" + + + 4134387352L + "NONE" + + + 1603690730L + "Arial" + + + 4253639993L + 12 + + + 2729990903L + 0U + + + 1213979116L + 0U + + + 3488306084L + 4278190080U + + + 1999528970L + "<toggle/tap variable>" + + + 1649127785L + 610 + + + 357335551L + 970 + + + 2422045748L + 60 + + + 2134141914L + 30 + + + 3729828405L + + + 0 + 0 + -16777216 + "Font-Standard" + "Arial" + 12 + 0 + 0 + + -16777216 + "Font-Default-Color" + + + + + + 1337389588L + "RAISED" + + + 2678395525L + 1U + + + 390574330L + "%2.2f" + + + 2477733581L + "GVL.astAxes[Main.hmiAxisSelection].stConfig.fMaxSoftPosLimit" + + + 2597686782L + false 3719097617L @@ -36172,22 +36130,22 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 823443203L - "762" + "951" "Textfield" "VisuFbElemTextfield" true - "GenElemInst_770" + "GenElemInst_794" - {682d280b-60e4-430b-8055-7e929979d230} + {adf15593-69e1-4a3b-ac63-ad6dd331080a} {63eeb817-1a76-06e3-215d-714040055109} - 759 + 784 @@ -36337,7 +36295,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" {922df0df-545b-4a6e-ab04-d027f2e1dfa1} - 770 + 794 @@ -36368,12 +36326,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 13L - " fSoftLimitMin: LREAL;" - - - 14L - - " fSoftLimitMax: LREAL;" + " " 7L @@ -36390,10 +36343,33 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 481037385728L 549755813887L - 481037385728L + 481043677184L 549754765312L 1048576L - + + + 481037385728L + + 0 + true + "RETURN_KEY" + + + 753 + + + + 481038434304L + + 0 + false + "RETURN_KEY" + + + 753 + + + @@ -36421,12 +36397,15 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" {1de566f6-72a7-494c-9353-9a418172c96e} {16f3f59a-37ad-4991-a1af-cc2926974e08} System.Double + {744fdb92-7753-4408-8c43-9bc1ffe34981} {703465dc-4679-4ff2-bcc3-c57d0a204da3} {40d6dd8d-dfd0-493a-8e29-c9a35e1e6539} {f86c2928-8614-4cca-824b-e819ac4d58c4} System.Guid System.Collections.Hashtable + {af56537c-7297-47e7-9c1c-de502e9fb71c} {6b108d46-58af-4e41-a3f4-174d8f160cc4} + {b36c4830-66bb-4798-aa52-839aa91713f0} _3S.CoDeSys.VisualElem.IInputAction[], VisualElem, Version=3.5.13.0, Culture=neutral, PublicKeyToken=null {e8e7e747-f76f-4dee-ab1c-b9637e41ac26} _3S.CoDeSys.VisualElem.InputBoxInputAction[], VisualElem.plugin, Version=3.5.13.32, Culture=neutral, PublicKeyToken=null From 2e38a56fb19e549ed8cba63917416b31ad239cb2 Mon Sep 17 00:00:00 2001 From: aslanliafichev Date: Tue, 31 Mar 2026 14:17:41 +0200 Subject: [PATCH 3/3] MBP-359: Change write variable to ST_AxisConfig --- DUTs/Axis_Structures/ST_AxisConfig.TcDUT | 2 ++ DUTs/Axis_Structures/ST_AxisControl.TcDUT | 2 -- VISUs/MainVisu.TcVIS | 19 +++++++++---------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/DUTs/Axis_Structures/ST_AxisConfig.TcDUT b/DUTs/Axis_Structures/ST_AxisConfig.TcDUT index bebc782..df414ab 100644 --- a/DUTs/Axis_Structures/ST_AxisConfig.TcDUT +++ b/DUTs/Axis_Structures/ST_AxisConfig.TcDUT @@ -43,6 +43,8 @@ STRUCT eAxisParameters: E_AxisParameters; //Enumeration of axis parameters for read/write operations fWriteAxisParameter: LREAL; //Value to write to the selected axis parameter fReadAxisParameter: LREAL; //Current value of the selected axis parameter + fWriteMinSoftLimit: LREAL; //Value to write minimum position soft limit + fWriteMaxSoftLimit: LREAL; //Value to write maximum position soft limit //Multi-master axis parameters astMultiMasterAxis: ARRAY [1..4] OF ST_GearAxis; //Master axes for multi-master configuration diff --git a/DUTs/Axis_Structures/ST_AxisControl.TcDUT b/DUTs/Axis_Structures/ST_AxisControl.TcDUT index 88b15e6..ebb7a9e 100644 --- a/DUTs/Axis_Structures/ST_AxisControl.TcDUT +++ b/DUTs/Axis_Structures/ST_AxisControl.TcDUT @@ -19,8 +19,6 @@ STRUCT fAcceleration: LREAL; //Acceleration for the movement command (0 uses the NC default) fDeceleration: LREAL; //Deceleration for the movement command fPosition: LREAL; //Target position for absolute moves or distance for relative moves - fMinSoftLimit: LREAL; //Minimum position soft limit - fMaxSoftLimit: LREAL; //Maximum position soft limit bHWMaskActive: BOOL := FALSE; //Indicates if hardware masking is active fMaskedTemperature: REAL := 0.0; //Temperature value used when the hardware masking is active bPressurizeAirpad AT %Q*: BOOL; //Output from method controlling airpad diff --git a/VISUs/MainVisu.TcVIS b/VISUs/MainVisu.TcVIS index 426e903..3826d4e 100644 --- a/VISUs/MainVisu.TcVIS +++ b/VISUs/MainVisu.TcVIS @@ -34859,7 +34859,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; 2477733581L - "GVL.astAxes[MAIN.hmiAxisSelection].stControl.fMinSoftLimit" + "GVL.astAxes[MAIN.hmiAxisSelection].stConfig.fWriteMinSoftLimit" 2597686782L @@ -34889,7 +34889,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; OnMouseClick - "GVL.astAxes[MAIN.hmiAxisSelection].stControl.fMinSoftLimit" + "GVL.astAxes[MAIN.hmiAxisSelection].stConfig.fWriteMinSoftLimit" "Default" "" "" @@ -35088,7 +35088,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE; "GVL.astAxes[Main.hmiAxisSelection].stConfig.eAxisParameters := E_AxisParameters.SWLimitBackward; -GVL.astAxes[Main.hmiAxisSelection].stConfig.fWriteAxisParameter := GVL.astAxes[MAIN.hmiAxisSelection].stControl.fMinSoftLimit; +GVL.astAxes[Main.hmiAxisSelection].stConfig.fWriteAxisParameter := GVL.astAxes[MAIN.hmiAxisSelection].stConfig.fWriteMinSoftLimit; GVL.astAxes[Main.hmiAxisSelection].stControl.eCommand := E_MotionFunctions.eWriteParameter; GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" @@ -35407,7 +35407,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" 2477733581L - "GVL.astAxes[MAIN.hmiAxisSelection].stControl.fMaxSoftLimit" + "GVL.astAxes[MAIN.hmiAxisSelection].stConfig.fWriteMaxSoftLimit" 2597686782L @@ -35433,18 +35433,18 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" "GenElemInst_764" - + OnMouseClick - "" + "GVL.astAxes[MAIN.hmiAxisSelection].stConfig.fWriteMaxSoftLimit" "Edit" "" "" "" false - true - false + false + true "" "" UseGlobalSetting @@ -35640,7 +35640,7 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" "GVL.astAxes[Main.hmiAxisSelection].stConfig.eAxisParameters := E_AxisParameters.SWLimitForward; -GVL.astAxes[Main.hmiAxisSelection].stConfig.fWriteAxisParameter := GVL.astAxes[MAIN.hmiAxisSelection].stControl.fMaxSoftLimit; +GVL.astAxes[Main.hmiAxisSelection].stConfig.fWriteAxisParameter := GVL.astAxes[MAIN.hmiAxisSelection].stConfig.fWriteMaxSoftLimit; GVL.astAxes[Main.hmiAxisSelection].stControl.eCommand := E_MotionFunctions.eWriteParameter; GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" @@ -36406,7 +36406,6 @@ GVL.astAxes[Main.hmiAxisSelection].stControl.bExecute := TRUE;" {af56537c-7297-47e7-9c1c-de502e9fb71c} {6b108d46-58af-4e41-a3f4-174d8f160cc4} {b36c4830-66bb-4798-aa52-839aa91713f0} - _3S.CoDeSys.VisualElem.IInputAction[], VisualElem, Version=3.5.13.0, Culture=neutral, PublicKeyToken=null {e8e7e747-f76f-4dee-ab1c-b9637e41ac26} _3S.CoDeSys.VisualElem.InputBoxInputAction[], VisualElem.plugin, Version=3.5.13.32, Culture=neutral, PublicKeyToken=null System.Int16