From 5a73dc0757e1227bb91f56aea420d26297b34280 Mon Sep 17 00:00:00 2001 From: "daniele.nicoli" Date: Wed, 24 Jun 2026 14:38:11 +0200 Subject: [PATCH 1/2] =?UTF-8?q?UnloadOnLoad=20-=20se=20posizione=20di=20sc?= =?UTF-8?q?arico=20non=20raggiungibile=20lo=20scarica=20dove=20pu=C3=B2=20?= =?UTF-8?q?(entro=20limite=20Y1).=20SpecCalcCarriages=20-=20se=20dY1DeltaM?= =?UTF-8?q?axSP=20<=20dY1DeltaMinF=20non=20lo=20considera.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Common_PF1250.mlse | 10 +++++++++- UpdateLog.txt | 4 ++++ Version.lua | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Common_PF1250.mlse b/Common_PF1250.mlse index f4fbc7c..4346bbf 100644 --- a/Common_PF1250.mlse +++ b/Common_PF1250.mlse @@ -1203,7 +1203,9 @@ function SpecCalcCarriages( dDistFront, dDistBack, dRollFront, dRollBack, dY1Del WorkTab.dY1DeltaMaxF = min( EMC.LB - MinJoin, MaxY1 + dDistFront + dRollFront + AGG_V) WorkTab.dY2DeltaMinF = nil WorkTab.dY2DeltaMaxF = nil - if dY1DeltaMaxSP then WorkTab.dY1DeltaMaxF = min( WorkTab.dY1DeltaMaxF, dY1DeltaMaxSP) end + if dY1DeltaMaxSP and dY1DeltaMaxSP > WorkTab.dY1DeltaMinF then + WorkTab.dY1DeltaMaxF = min( WorkTab.dY1DeltaMaxF, dY1DeltaMaxSP) + end WorkTab.dV1PosF = dRollBack WorkTab.bV1CloseF = false WorkTab.dV2PosF = -dRollFront @@ -1428,6 +1430,12 @@ function SpecCalcUnloadOnLoadPos() table.insert( vCmd, { 11, 1}) end end + -- se l'ultima posizione di Y1 (calcolata in modo che PosT sia nella posizione di scarico) è fuori dalla corsa massima ricalcola le due quote alla quota massima raggiungibile + if dY1Move > MaxY1 then + dRotT = dRotT - ( dY1Move - MaxY1) + dY1Move = MaxY1 + EgtOutLog( ' Warning : Impossible to Reach Unloading on Load Position') + end table.insert( vCmd, { 2, 'Y1', dY1Move, 'T', dRotT, 'BrakeBeam'}) -- apro la morsa table.insert( vCmd, { 11, 0}) diff --git a/UpdateLog.txt b/UpdateLog.txt index 2c7f3e6..4478850 100644 --- a/UpdateLog.txt +++ b/UpdateLog.txt @@ -1,4 +1,8 @@ ==== Common_PF1250 Update Log ==== + +Versione 3.1-- (--/--/2026) +- (SIM-GEN) UnloadOnLoad - se posizione di scarico non raggiungibile lo scarica dove può. Ticket#3041 +- (SIM-GEN) SpecCalcCarriages - se dY1DeltaMaxSP < dY1DeltaMinF non lo considera. Ticket#3041 Versione 3.1f1 (05/06/2026) - (GEN) In caso di ultimo movimento come scarico rimanenza, porta V2 in posizione di parcheggio. Ticket#3006 diff --git a/Version.lua b/Version.lua index 5d474ab..420baef 100644 --- a/Version.lua +++ b/Version.lua @@ -3,7 +3,7 @@ local InfoCommon_STD_PP = { NAME = 'Common_PF1250', -- nome script PP standard - VERSION = '3.1f1', -- versione script + VERSION = '3.1--', -- versione script MIN_MACH_VER_PP_COMMON = '3.1b2' -- versione minima kernel } From 42d7e6d38024a11ea26675101324d0fc69480f49 Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Wed, 24 Jun 2026 15:06:38 +0200 Subject: [PATCH 2/2] Cambio versione per rilascio a cliente --- UpdateLog.txt | 2 +- Version.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UpdateLog.txt b/UpdateLog.txt index 4478850..da855b8 100644 --- a/UpdateLog.txt +++ b/UpdateLog.txt @@ -1,6 +1,6 @@ ==== Common_PF1250 Update Log ==== -Versione 3.1-- (--/--/2026) +Versione 3.1f2 (24/06/2026) - (SIM-GEN) UnloadOnLoad - se posizione di scarico non raggiungibile lo scarica dove può. Ticket#3041 - (SIM-GEN) SpecCalcCarriages - se dY1DeltaMaxSP < dY1DeltaMinF non lo considera. Ticket#3041 diff --git a/Version.lua b/Version.lua index 420baef..6c72f18 100644 --- a/Version.lua +++ b/Version.lua @@ -3,7 +3,7 @@ local InfoCommon_STD_PP = { NAME = 'Common_PF1250', -- nome script PP standard - VERSION = '3.1--', -- versione script + VERSION = '3.1f2', -- versione script MIN_MACH_VER_PP_COMMON = '3.1b2' -- versione minima kernel }