Compare commits

..

3 Commits

Author SHA1 Message Date
andrea.villa 67607721ba Merge branch 'main' into develop 2026-06-05 12:04:00 +02:00
andrea.villa db163fe554 Merge remote-tracking branch 'origin/main' into develop 2026-06-03 11:49:29 +02:00
andrea.villa f14c1ed2c4 Merge remote-tracking branch 'origin/main' into develop 2026-06-03 09:32:11 +02:00
3 changed files with 20 additions and 52 deletions
+1 -27
View File
@@ -422,14 +422,6 @@ function OnToolSelect()
if EMT.TDIST and abs( EMT.TDIST) < 0.1 then EMT.TDIST = nil end if EMT.TDIST and abs( EMT.TDIST) < 0.1 then EMT.TDIST = nil end
EMT.TUSERNOTES = EgtTdbGetCurrToolParam( MCH_TP.USERNOTES) EMT.TUSERNOTES = EgtTdbGetCurrToolParam( MCH_TP.USERNOTES)
EMT.ISPROBING = HeadIsProbe( EMT.HEAD) EMT.ISPROBING = HeadIsProbe( EMT.HEAD)
-- gruppo della testa
local nHSet = GetHeadSet( EMT.HEAD)
if nHSet == 1 and EMT.PRESEL_H1 then
EMT.PRESEL_H1 = nil
elseif nHSet == 2 and EMT.PRESEL_H2 then
EMT.PRESEL_H2 = nil
end
end end
end end
@@ -605,7 +597,7 @@ function OnMachiningEnd()
EmtOutput( sOut) EmtOutput( sOut)
end end
elseif not EMT.PREROT then elseif not EMT.PREROT then
EmtOutput( 'M77') EmtOutput( '(M77)')
end end
end end
end end
@@ -3390,7 +3382,6 @@ function PreselectNextDiffHead( nMchId, sHead)
local nHSet = GetHeadSet( sHead) local nHSet = GetHeadSet( sHead)
local bVerifyPresel = true local bVerifyPresel = true
if not EMT.LOAD then
-- se lavorazione con testa 1 e sotto al limite massimo di preselezione della testa 2, allora non si fa preselezione -- se lavorazione con testa 1 e sotto al limite massimo di preselezione della testa 2, allora non si fa preselezione
if nHSet == 1 and Limit_T1_Presel_T2 and EMT.MAXMIN[2] < Limit_T1_Presel_T2 then if nHSet == 1 and Limit_T1_Presel_T2 and EMT.MAXMIN[2] < Limit_T1_Presel_T2 then
bVerifyPresel = false bVerifyPresel = false
@@ -3398,7 +3389,6 @@ function PreselectNextDiffHead( nMchId, sHead)
elseif nHSet == 2 and Limit_T2_Presel_T1 and EMT.MAXMIN[2] > Limit_T2_Presel_T1 then elseif nHSet == 2 and Limit_T2_Presel_T1 and EMT.MAXMIN[2] > Limit_T2_Presel_T1 then
bVerifyPresel = false bVerifyPresel = false
end end
end
-- flag preselezione eseguita -- flag preselezione eseguita
local bPresel = false local bPresel = false
@@ -3466,15 +3456,6 @@ function PreselectNextDiffHead( nMchId, sHead)
end end
-- se non eseguita preselezione -- se non eseguita preselezione
if not bPresel then if not bPresel then
-- se era stato preselezionato un utensile e adesso non posso preselezionare, attendo la testa
if EMT.PRESEL_H2 then
EmitMoveWaitHead( 2)
EMT.PRESEL_H2 = nil
elseif EMT.PRESEL_H1 then
EmitMoveWaitHead( 1)
EMT.PRESEL_H1 = nil
-- se non era stato preselezionato nulla
else
-- mi assicuro che l'altra testa sia in parcheggio -- mi assicuro che l'altra testa sia in parcheggio
if nHSet == 1 then if nHSet == 1 then
-- non può essere la sega a catena -- non può essere la sega a catena
@@ -3490,13 +3471,6 @@ function PreselectNextDiffHead( nMchId, sHead)
end end
end end
end end
else
if nHSet == 1 then
EMT.PRESEL_H2 = true
elseif nHSet == 1 then
EMT.PRESEL_H2 = true
end
end
end end
--------------------------------------------------------------------- ---------------------------------------------------------------------
-6
View File
@@ -1,11 +1,5 @@
==== Common_ONE-PF Update Log ==== ==== Common_ONE-PF Update Log ====
Versione 3.1f4 (17/06/2026)
- (MLDE-GEN) Corretta preselezione in caso di testa in lavoro troppo vicina a quella che sta preselezionando. Da aggiungere in MLDE parametri 'Limit_T1_Presel_T2' e 'Limit_T2_Presel_T1'
Versione 3.1f3 (08/06/2026)
- (GEN) M77 viene ora eseguita, prima era commentata.
Versione 3.1f2 (05/06/2026) Versione 3.1f2 (05/06/2026)
- (MLDE-GEN) Aggiunti parametri di limite asse X per decidere se fare preselezione su altra testa. Serve modifica MLDE - (MLDE-GEN) Aggiunti parametri di limite asse X per decidere se fare preselezione su altra testa. Serve modifica MLDE
+1 -1
View File
@@ -3,7 +3,7 @@
local InfoCommon_STD_PP = { local InfoCommon_STD_PP = {
NAME = 'Common_ONE-PF', -- nome script PP standard NAME = 'Common_ONE-PF', -- nome script PP standard
VERSION = '3.1f4', -- versione script VERSION = '3.1f2', -- versione script
MIN_MACH_VER_PP_COMMON = '3.1b2' -- versione minima kernel MIN_MACH_VER_PP_COMMON = '3.1b2' -- versione minima kernel
} }