Compare commits

...

7 Commits

4 changed files with 71 additions and 58 deletions
+13
View File
@@ -3380,8 +3380,20 @@ function PreselectNextDiffHead( nMchId, sHead)
-- gruppo della testa -- gruppo della testa
local nHSet = GetHeadSet( sHead) local nHSet = GetHeadSet( sHead)
local bVerifyPresel = true
-- 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
bVerifyPresel = false
-- se lavorazione con testa 1 e sopra al limite minimo di preselezione della testa 1, allora non si fa preselezione
elseif nHSet == 2 and Limit_T2_Presel_T1 and EMT.MAXMIN[2] > Limit_T2_Presel_T1 then
bVerifyPresel = false
end
-- flag preselezione eseguita -- flag preselezione eseguita
local bPresel = false local bPresel = false
if bVerifyPresel then
-- recupero lavorazione successiva -- recupero lavorazione successiva
local nNextMchId = EgtGetNextActiveOperation( nMchId) local nNextMchId = EgtGetNextActiveOperation( nMchId)
while nNextMchId do while nNextMchId do
@@ -3441,6 +3453,7 @@ function PreselectNextDiffHead( nMchId, sHead)
-- ripristino stato corrente -- ripristino stato corrente
EgtSetCurrMachining( EMT.MCHID) EgtSetCurrMachining( EMT.MCHID)
EgtTdbSetCurrTool( EMT.TOOL) EgtTdbSetCurrTool( EMT.TOOL)
end
-- se non eseguita preselezione -- se non eseguita preselezione
if not bPresel then if not bPresel then
-- mi assicuro che l'altra testa sia in parcheggio -- mi assicuro che l'altra testa sia in parcheggio
-3
View File
@@ -1922,9 +1922,6 @@ function ExecMoveZmax( bMchSplit, btoXHome)
ShowToolInTcPos( EMT.TCPOS, true) ShowToolInTcPos( EMT.TCPOS, true)
-- nascondo l'utensile sulla testa -- nascondo l'utensile sulla testa
EgtSetMode( EgtGetHeadId( EMT.HEAD or '') or GDB_ID.NULL, GDB_MD.HIDDEN) EgtSetMode( EgtGetHeadId( EMT.HEAD or '') or GDB_ID.NULL, GDB_MD.HIDDEN)
EMT.PREVTOOL_H1 = nil
EMT.PREVHEAD_H1 = nil
EMT.PREVTCPOS_H1 = nil
EMT.CHSAW_OUT = true EMT.CHSAW_OUT = true
EMT.XHOME = true EMT.XHOME = true
end end
+3
View File
@@ -1,5 +1,8 @@
==== Common_ONE-PF Update Log ==== ==== Common_ONE-PF Update Log ====
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
Versione 3.1f1 (03/06/2026) Versione 3.1f1 (03/06/2026)
- (NGE-MLDE-GEN-SIM) Versione unificata con predisposizione per gestione tastatori. Serve modificare anche la macchina, per ora gestione completa solo su PFrl. - (NGE-MLDE-GEN-SIM) Versione unificata con predisposizione per gestione tastatori. Serve modificare anche la macchina, per ora gestione completa solo su PFrl.
+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.1f1', -- 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
} }