From fd7cc25a4f05d1099a5cf6430562f487287cf8bf Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Wed, 26 Jun 2024 15:20:15 +0200 Subject: [PATCH 1/3] Corretto chiamata macro precarico in caso di taglio finale, ma con ribaltaemnto successivo. --- Common-FAST.NUM_PLUS.mlpe | 2 +- Common-FAST.TPA.mlpe | 2 +- Common-FAST.mlpe | 6 ++++++ UpdateLog.txt | 3 +++ Version.lua | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Common-FAST.NUM_PLUS.mlpe b/Common-FAST.NUM_PLUS.mlpe index f659b8f..d3bd0e7 100644 --- a/Common-FAST.NUM_PLUS.mlpe +++ b/Common-FAST.NUM_PLUS.mlpe @@ -843,7 +843,7 @@ function OnRapid() sOut = 'G112 EA'..sA..' EB'..sB..EmtGetAxis('L1')..' EY'..sY..' EV'..sV..' EF'..GetFmaxClamp() EmtOutput( sOut) -- se taglio di coda senza residuo da scaricare, emetto M175 per accelerare il carico della barra successiva - if EMT.MCHUSERNOTES and EMT.MCHUSERNOTES:find( 'Cut') then + if EMT.MCHUSERNOTES and EMT.MCHUSERNOTES:find( 'Cut') and ( IsEndPhase( EMT.PHASE+1) or IsEnd2Phase( EMT.PHASE+1)) then EmtOutput( '(M175)') end if not bHeadFirst then diff --git a/Common-FAST.TPA.mlpe b/Common-FAST.TPA.mlpe index 9bfa848..f147571 100644 --- a/Common-FAST.TPA.mlpe +++ b/Common-FAST.TPA.mlpe @@ -774,7 +774,7 @@ function OnRapid() sB = '2' end -- se taglio di coda senza residuo da scaricare, emetto M175 per accelerare il carico della barra successiva - if EMT.MCHUSERNOTES and EMT.MCHUSERNOTES:find( 'Cut') then + if EMT.MCHUSERNOTES and EMT.MCHUSERNOTES:find( 'Cut') and ( IsEndPhase( EMT.PHASE+1) or IsEnd2Phase( EMT.PHASE+1)) then EmtOutput( 'M175') end if bHeadFirst then diff --git a/Common-FAST.mlpe b/Common-FAST.mlpe index 9bd2b28..e72db4e 100644 --- a/Common-FAST.mlpe +++ b/Common-FAST.mlpe @@ -1524,6 +1524,12 @@ function IsStartOrRestPhase( nPhase) return ( sVal == 'START' or sVal == 'REST') end +--------------------------------------------------------------------- +function IsEndPhase( nPhase) + local sVal = GetPhaseType( nPhase) + return ( sVal == 'END') +end + --------------------------------------------------------------------- function IsMidPhase( nPhase) local sVal = GetPhaseType( nPhase) diff --git a/UpdateLog.txt b/UpdateLog.txt index 9441f2f..3815ec5 100644 --- a/UpdateLog.txt +++ b/UpdateLog.txt @@ -1,5 +1,8 @@ ==== Common_FAST Update Log ==== +Versione 2.6-- (--/--/----) +- (GEN) Corretto chiamata macro precarico in caso di taglio finale, ma con ribaltaemnto successivo. Ora si chiama solo se la fase successiva è una "END". Ticket#1881 + Versione 2.6e3 (06/05/2024) - (MLDE-SIM-GEN) Gestione facoltativa parametri MIN_JOIN_xx settabili in Ts3. Ticket#1794 diff --git a/Version.lua b/Version.lua index 4d22e12..9dfe637 100644 --- a/Version.lua +++ b/Version.lua @@ -3,7 +3,7 @@ local InfoCommon_STD_PP = { NAME = 'Common-FAST', -- nome script PP standard - VERSION = '2.6e3', -- versione script + VERSION = '2.6--', -- versione script MIN_MACH_VER_PP_COMMON = '2.5k1' -- versione minima kernel } From 1a1f775c88229ac76ae8a1a234129769b014f1ab Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Wed, 26 Jun 2024 16:32:03 +0200 Subject: [PATCH 2/3] Per controllo NUM, se arco maggiore di 99999mm, si approssima con una retta --- Common-FAST.NUM.mlpe | 8 ++++++-- Common-FAST.NUM_PLUS.mlpe | 8 ++++++-- UpdateLog.txt | 2 ++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Common-FAST.NUM.mlpe b/Common-FAST.NUM.mlpe index 1b38dbc..8737654 100644 --- a/Common-FAST.NUM.mlpe +++ b/Common-FAST.NUM.mlpe @@ -930,8 +930,12 @@ function OnArc() local sFeed = EmtGetFeed() -- tipo arco local sArc = 'G' .. EgtNumToString(EMT.MOVE,0) - -- emetto arco - EmtOutput( sArc..sAxes..sRad..sFeed) + -- se arco molto grande, approssimo con una retta + if EMT.RR > 99999 then + EmtOutput( "G1"..sAxes..sFeed) + else + EmtOutput( sArc..sAxes..sRad..sFeed) + end -- aggiorno valori come precedenti EmtUpdatePrev() diff --git a/Common-FAST.NUM_PLUS.mlpe b/Common-FAST.NUM_PLUS.mlpe index d3bd0e7..89d04f3 100644 --- a/Common-FAST.NUM_PLUS.mlpe +++ b/Common-FAST.NUM_PLUS.mlpe @@ -1009,8 +1009,12 @@ function OnArc() local sFeed = EmtGetFeed() -- tipo arco local sArc = 'G' .. EgtNumToString(EMT.MOVE,0) - -- emetto arco - EmtOutput( sArc..sAxes..sRad..sFeed) + -- se arco molto grande, approssimo con una retta + if EMT.RR > 99999 then + EmtOutput( "G1"..sAxes..sFeed) + else + EmtOutput( sArc..sAxes..sRad..sFeed) + end -- aggiorno valori come precedenti EmtUpdatePrev() diff --git a/UpdateLog.txt b/UpdateLog.txt index 3815ec5..595965f 100644 --- a/UpdateLog.txt +++ b/UpdateLog.txt @@ -2,6 +2,8 @@ Versione 2.6-- (--/--/----) - (GEN) Corretto chiamata macro precarico in caso di taglio finale, ma con ribaltaemnto successivo. Ora si chiama solo se la fase successiva è una "END". Ticket#1881 +- (GEN) Per controllo NUM, se arco maggiore di 99999mm, si approssima con una retta. Ticket#1888 + Versione 2.6e3 (06/05/2024) - (MLDE-SIM-GEN) Gestione facoltativa parametri MIN_JOIN_xx settabili in Ts3. Ticket#1794 From 87a7a89dbda7a5fada5f61bd703887a13103aef6 Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Wed, 3 Jul 2024 10:05:26 +0200 Subject: [PATCH 3/3] commit per versione --- UpdateLog.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UpdateLog.txt b/UpdateLog.txt index 595965f..1ad5fe4 100644 --- a/UpdateLog.txt +++ b/UpdateLog.txt @@ -1,10 +1,9 @@ ==== Common_FAST Update Log ==== -Versione 2.6-- (--/--/----) +Versione 2.6g1 (03/07/2024) - (GEN) Corretto chiamata macro precarico in caso di taglio finale, ma con ribaltaemnto successivo. Ora si chiama solo se la fase successiva è una "END". Ticket#1881 - (GEN) Per controllo NUM, se arco maggiore di 99999mm, si approssima con una retta. Ticket#1888 - Versione 2.6e3 (06/05/2024) - (MLDE-SIM-GEN) Gestione facoltativa parametri MIN_JOIN_xx settabili in Ts3. Ticket#1794