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
+14 -1
View File
@@ -639,12 +639,25 @@ function SpecApplyPath( bPreSplit, bSplitting, bPreCut, bCutting, bUnload, bPreR
-- Aggiorno limiti di presa e tolleranza
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.HCING = EgtGetInfo( nCurrRawId, 'HCING', 'd') or 0
EMC.TCING = EgtGetInfo( nCurrRawId, 'TCING', 'd') or 0
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
local dDistFront, dDistBack = SpecialCalcMachiningEncumbrance( EMC.MCHID, bPreCut)
if not dDistFront or not dDistBack then return end