DataBeam :

- modifiche per orientamento testa in foratura per FAST e per PF1250.
This commit is contained in:
Dario Sassi
2020-10-26 06:02:16 +00:00
parent 35642a918b
commit e53777d4c5
2 changed files with 16 additions and 5 deletions
+13 -4
View File
@@ -1,4 +1,4 @@
-- ProcessDrill.lua by Egaltech s.r.l. 2020/10/14
-- ProcessDrill.lua by Egaltech s.r.l. 2020/10/25
-- Gestione calcolo forature per Travi
-- Tabella per definizione modulo
@@ -294,9 +294,18 @@ function ProcessDrill.Make( Proc, nPhase, nRawId, nPartId)
EgtSetMachiningParam( MCH_MP.TOOLINVERT, bToInvert)
end
-- imposto posizione braccio porta testa
local nSCC = MCH_SCC.ADIR_YM
if vtExtr:getY() > 100 * GEO.EPS_ZERO then
nSCC = MCH_SCC.ADIR_YP
local nSCC = MCH_SCC.NONE
if not BD.C_SIMM then
nSCC = MCH_SCC.ADIR_YM
if AreSameVectorApprox( vtExtr, Z_AX()) then
nSCC = MCH_SCC.ADIR_YM
elseif abs( vtExtr:getX()) < 0.1 then
nSCC = MCH_SCC.ADIR_XP
elseif vtExtr:getY() > 0.1 then
nSCC = MCH_SCC.ADIR_YP
end
else
nSCC = MCH_SCC.NONE
end
EgtSetMachiningParam( MCH_MP.SCC, nSCC)
-- aggiusto l'affondamento