CamAuto 3.1c4 :
- corretta assegnazione Q particolare a lavorazione WJ che mandava in crash CamAuto.
This commit is contained in:
+7
-12
@@ -1,4 +1,4 @@
|
||||
-- 2026/03/16 12:30:00
|
||||
-- 2026/03/17 11:30:00
|
||||
-- Programma per Cam automatico in OmagCut
|
||||
-- Legenda codici errore (CAM.ERR) :
|
||||
-- 0 = tutto bene
|
||||
@@ -17,7 +17,7 @@ _ENV = EgtProtectGlobal()
|
||||
EgtEnableDebug( false)
|
||||
|
||||
-- Versione
|
||||
local CAMAUTO_VER = 'ver 3.1c3'
|
||||
local CAMAUTO_VER = 'ver 3.1c4'
|
||||
|
||||
-- Determino il tipo di macchina
|
||||
local bIsMultiCut = ( EgtGetHeadId( 'H101') ~= nil)
|
||||
@@ -3015,22 +3015,17 @@ function CAM.UpdateOperations( TabData, bPreview, bClPath)
|
||||
return 250
|
||||
end
|
||||
|
||||
-- assegno valore di flusso (da ver. 2.7f1)
|
||||
-- assegno valore di flusso e imposto feed da Q*
|
||||
if vThickFeed then
|
||||
local dDepth = dRawHeight / cos( RecMPartCs.SideAng)
|
||||
local dFlux = GetWjFlux( dDepth)
|
||||
if dFlux then EgtSetInfo( nOperId, 'Flux', dFlux) end
|
||||
end
|
||||
|
||||
-- se previsto, imposto feed da Q*
|
||||
if vThickFeed then
|
||||
local dSideAng = EgtGetMachiningParam( MCH_MP.SIDEANGLE)
|
||||
local dDepth = dRawHeight / cos( dSideAng)
|
||||
local dFlux = GetWjFlux( dDepth)
|
||||
if dFlux then
|
||||
EgtSetInfo( nOperId, 'Flux', dFlux)
|
||||
end
|
||||
local dFeed, dThRef = GetWjSpeed( dDepth)
|
||||
if dFeed and dThRef then
|
||||
EgtSetMachiningParam( MCH_MP.FEED, dFeed)
|
||||
EgtSetMachiningParam( MCH_MP.THICKREF, dThRef)
|
||||
-- EgtOutLog(' UPDATE QUALITY → ' ..sWjQuality ..' - FEED → '..dFeed)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user