Lettura HCING e TCING anche su fase

This commit is contained in:
andrea.villa
2025-05-20 15:39:17 +02:00
parent f38574d7cf
commit f9d1e465e9
2 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
require( 'EmtGenerator') require( 'EmtGenerator')
EgtEnableDebug( false) EgtEnableDebug( false)
PP_VER = '2.7e4' PP_VER = '2.7e5'
MIN_MACH_VER = '2.5j1' MIN_MACH_VER = '2.5j1'
EgtOutLog ( '** Saomad-KAIROS '..PP_VER..' (MinMach '.. MIN_MACH_VER ..') **', 1) EgtOutLog ( '** Saomad-KAIROS '..PP_VER..' (MinMach '.. MIN_MACH_VER ..') **', 1)
+14 -1
View File
@@ -639,12 +639,25 @@ function SpecApplyPath( bPreSplit, bSplitting, bPreCut, bCutting, bUnload, bPreR
-- Aggiorno limiti di presa e tolleranza -- Aggiorno limiti di presa e tolleranza
UpdateMinJoinDeltaTol() UpdateMinJoinDeltaTol()
-- Recupero sovramateriale di testa e ingombro tagli di testa e di coda -- Recupero sovramateriale di testa e ingombro tagli di testa e di coda dal pezzo
EMC.HOVM = EgtGetInfo( nCurrRawId, 'HOVM', 'd') or 0 EMC.HOVM = EgtGetInfo( nCurrRawId, 'HOVM', 'd') or 0
EMC.HCING = EgtGetInfo( nCurrRawId, 'HCING', 'd') or 0 EMC.HCING = EgtGetInfo( nCurrRawId, 'HCING', 'd') or 0
EMC.TCING = EgtGetInfo( nCurrRawId, 'TCING', 'd') or 0 EMC.TCING = EgtGetInfo( nCurrRawId, 'TCING', 'd') or 0
EMC.XMAX = b3Raw:getMax():getX() - EMC.HOVM EMC.XMAX = b3Raw:getMax():getX() - EMC.HOVM
-- correggo area non pinzabile in testa o coda in base alle info sulla disposizione, se presenti
local sNotes = EgtGetMachiningParam( MCH_MP.USERNOTES)
local idDisp = EgtGetPhaseDisposition( EMC.PHASE)
local dHCING = EgtGetInfo( idDisp, 'HCING', 'd') or 0
if dHCING then
EMC.HCING = dHCING
end
local dTCING = EgtGetInfo( idDisp, 'TCING', 'd') or 0
if dTCING then
EMC.TCING = dTCING
end
-- Calcolo dell'ingombro della lavorazione -- Calcolo dell'ingombro della lavorazione
local dDistFront, dDistBack = SpecialCalcMachiningEncumbrance( EMC.MCHID, bPreCut) local dDistFront, dDistBack = SpecialCalcMachiningEncumbrance( EMC.MCHID, bPreCut)
if not dDistFront or not dDistBack then return end if not dDistFront or not dDistBack then return end