From 4448156fec2cc934f349052d0ea271fff188b1bb Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Fri, 25 Oct 2024 14:35:36 +0200 Subject: [PATCH] Miglioria 2.6j9. Si ribadisce pinza in presa sempre, all'inizio, in base a quella attiva --- Common_FAST.mlse | 12 ++++++++---- UpdateLog.txt | 3 +++ Version.lua | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Common_FAST.mlse b/Common_FAST.mlse index 7214f5e..2b2dbc2 100644 --- a/Common_FAST.mlse +++ b/Common_FAST.mlse @@ -1544,6 +1544,14 @@ function SpecAdjustCarriages( vCmd, dTPosI, dYDeltaI, dVDeltaI, dTPosF, dYDeltaF local bZmaxOk = EnsureZmax( bZmaxOk, vCmd) end + -- ribadisco pinzaggio + if EMC.YDELTA then + table.insert( vCmd, { 11, 1}) + end + if EMC.VDELTA then + table.insert( vCmd, { 12, 1}) + end + -- reset contatore primo riposizionamento con compensazione lettura laser EMC.CNT = nil @@ -1578,7 +1586,6 @@ function SpecAdjustCarriages( vCmd, dTPosI, dYDeltaI, dVDeltaI, dTPosF, dYDeltaF if ( dYDeltaI - dVDeltaF) + 10 * GEO.EPS_SMALL >= MyMinY - MaxV and abs( dVDeltaF - dVDeltaI) > 10 * GEO.EPS_SMALL and not EMC.PILGRIMSTEP and ( dVDeltaF - dVDeltaI > MinV - dVPosI + MyMinY - dYPosI) then table.insert( vCmd, { 0, 'Direct-V-Y'}) - table.insert( vCmd, { 12, 1}) -- se l'altra morsa non era in presa, vado a pinzare il pezzo if not EMC.YDELTA then dYPosA = MyMinY @@ -1684,7 +1691,6 @@ function SpecAdjustCarriages( vCmd, dTPosI, dYDeltaI, dVDeltaI, dTPosF, dYDeltaF elseif ( dYDeltaF - dVDeltaI) + 10 * GEO.EPS_SMALL >= MyMinY - MaxV and abs( dYDeltaF - dYDeltaI) > 10 * GEO.EPS_SMALL and not EMC.PILGRIMSTEP and ( dYDeltaF - dYDeltaI < MaxY - dYPosI + MaxV - dVPosI) then table.insert( vCmd, { 0, 'Direct-Y-V'}) - table.insert( vCmd, { 11, 1}) -- se l'altra morsa non era in presa, vado a pinzare il pezzo if not EMC.VDELTA then dVPosA = MaxV @@ -1793,7 +1799,6 @@ function SpecAdjustCarriages( vCmd, dTPosI, dYDeltaI, dVDeltaI, dTPosF, dYDeltaF -- compatto al centro if not EMC.YDELTA then table.insert( vCmd, { 0, 'Compact Y'}) - table.insert( vCmd, { 12, 1}) table.insert( vCmd, { 11, 0}) dTPosA = MaxV - dVDeltaI dVPosA = MaxV @@ -1806,7 +1811,6 @@ function SpecAdjustCarriages( vCmd, dTPosI, dYDeltaI, dVDeltaI, dTPosF, dYDeltaF end if not EMC.VDELTA then table.insert( vCmd, { 0, 'Compact V'}) - table.insert( vCmd, { 11, 1}) table.insert( vCmd, { 12, 0}) dTPosA = MyMinY - dYDeltaI dVPosA = MaxV diff --git a/UpdateLog.txt b/UpdateLog.txt index 60cc1bd..41c4b6c 100644 --- a/UpdateLog.txt +++ b/UpdateLog.txt @@ -1,5 +1,8 @@ ==== Common_FAST Update Log ==== +Versione 2.6j10 (25/10/2024) +- (SIM-GEN) Miglioria 2.6j9. Si ribadisce pinza in presa sempre, all'inizio, in base a quella attiva + Versione 2.6j9 (22/10/2024) - (SIM-GEN) Miglioria 2.6j6. Oltre al passo pellegrino si ribadisce anche quando รจ scambio diretto diff --git a/Version.lua b/Version.lua index 588c701..789bfa8 100644 --- a/Version.lua +++ b/Version.lua @@ -3,7 +3,7 @@ local InfoCommon_STD_PP = { NAME = 'Common_FAST', -- nome script PP standard - VERSION = '2.6j9', -- versione script + VERSION = '2.6j10', -- versione script MIN_MACH_VER_PP_COMMON = '2.5k1' -- versione minima kernel }