Compare commits

..

3 Commits

Author SHA1 Message Date
andrea.villa 91414cf313 Allineamento con common ver. 3.1f2 2026-06-05 12:07:54 +02:00
andrea.villa 530b03c5d0 HOTFIX problema simulazione 2026-06-03 11:53:05 +02:00
andrea.villa 296f55042e Merge branch 'develop' 2026-06-03 09:58:29 +02:00
5 changed files with 76 additions and 59 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
+5 -1
View File
@@ -32,7 +32,7 @@
require( 'EmtGenerator') require( 'EmtGenerator')
EgtEnableDebug( false) EgtEnableDebug( false)
PP_VER = '3.1f1' PP_VER = '3.1f2'
PP_NVER = '3.1.6.1' PP_NVER = '3.1.6.1'
MIN_MACH_VER = '2.5k1' MIN_MACH_VER = '2.5k1'
MACH_NAME = EgtGetCurrMachineName() MACH_NAME = EgtGetCurrMachineName()
@@ -104,6 +104,7 @@ SawC2Offs = 0
SawB2Offs = 0 SawB2Offs = 0
MinX1 = 700 MinX1 = 700
MaxX1 = 2735 MaxX1 = 2735
Limit_T1_Presel_T2 = MinX1
MinZ1 = -1550 MinZ1 = -1550
MaxZ1 = 0 MaxZ1 = 0
MinC1 = -275 MinC1 = -275
@@ -121,6 +122,7 @@ LimX1RotSaw = 800
LimX1PlRotSaw = 1970 LimX1PlRotSaw = 1970
MinX2 = 0 MinX2 = 0
MaxX2 = 2035 MaxX2 = 2035
Limit_T2_Presel_T1 = MaxX2
MinZ2 = -1550 MinZ2 = -1550
MaxZ2 = 0 MaxZ2 = 0
MinC2 = -275 MinC2 = -275
@@ -255,6 +257,8 @@ if EgtExistsFile( sData) then
if Machine.Offsets.SAW2OFFSZ then Saw2OffsZ = Machine.Offsets.SAW2OFFSZ end if Machine.Offsets.SAW2OFFSZ then Saw2OffsZ = Machine.Offsets.SAW2OFFSZ end
if Machine.Offsets.DEFTCPOS1 then DefTcPos1 = ( 'T' .. Machine.Offsets.DEFTCPOS1) end if Machine.Offsets.DEFTCPOS1 then DefTcPos1 = ( 'T' .. Machine.Offsets.DEFTCPOS1) end
if Machine.Offsets.DEFTCPOS2 then DefTcPos2 = ( 'T' .. Machine.Offsets.DEFTCPOS2) end if Machine.Offsets.DEFTCPOS2 then DefTcPos2 = ( 'T' .. Machine.Offsets.DEFTCPOS2) end
if Machine.Offsets.LIMIT_T1_PRESEL_T2 then Limit_T1_Presel_T2 = Machine.Offsets.LIMIT_T1_PRESEL_T2 end
if Machine.Offsets.LIMIT_T2_PRESEL_T1 then Limit_T2_Presel_T1 = Machine.Offsets.LIMIT_T2_PRESEL_T1 end
if Machine.Offsets.NOULOAD then MaxUnloadLen = Machine.Offsets.NOULOAD end if Machine.Offsets.NOULOAD then MaxUnloadLen = Machine.Offsets.NOULOAD end
if Machine.Offsets.MAXFEEDPINZE then MaxFeedPinze = Machine.Offsets.MAXFEEDPINZE end if Machine.Offsets.MAXFEEDPINZE then MaxFeedPinze = Machine.Offsets.MAXFEEDPINZE end
if Machine.Offsets.MAXACC then MaxAcc = Machine.Offsets.MAXACC end if Machine.Offsets.MAXACC then MaxAcc = Machine.Offsets.MAXACC 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
} }