DataBeam :

- aumentata lunghezza massima di travi con barra più lunga in Vista
- scelta attacco lama modificabile da parametro macchina (BD.KIOTP)
- SCC di lama verticale su macchine con BD.C_SIMM ora tiene conto se taglio sbieco nel piano.
This commit is contained in:
DarioS
2021-09-08 13:06:59 +02:00
parent 13034aa238
commit 99140a545a
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -958,8 +958,10 @@ function BeamLib.MakeOneFaceBySaw( nSurfId, nFacet, sCutting, dSawDiam, Par5, dV
local dLenLi2 = abs( dLi2Tang)
local dLenLo2 = abs( dLo2Tang)
-- scelgo l'attacco più conveniente (se non taglio praticamente longitudinale)
local Ktp = 1.1
if BD.KIOTP then Ktp = BD.KIOTP end
if abs( vtTg:getX()) < 0.9848 and
( ( abs( vtTg:getZ()) < 0.17 and ( vtV1:getZ() < -0.5 or vtV2:getZ() < -0.5)) or ( 1.1*dLenLi2 < dLenLi and 1.1*dLenLo2 < dLenLo) or 1.1*( dLenLi2 + dLenLo2) < ( dLenLi + dLenLo)) then
( ( abs( vtTg:getZ()) < 0.17 and ( vtV1:getZ() < -0.5 or vtV2:getZ() < -0.5)) or ( Ktp*dLenLi2 < dLenLi and Ktp*dLenLo2 < dLenLo) or Ktp*( dLenLi2 + dLenLo2) < ( dLenLi + dLenLo)) then
dLiTang, dLiPerp, dLoTang, dLoPerp = dLi2Tang, dLi2Perp, dLo2Tang, dLo2Perp
end
-- posizione braccio
@@ -973,7 +975,7 @@ function BeamLib.MakeOneFaceBySaw( nSurfId, nFacet, sCutting, dSawDiam, Par5, dV
end
end
-- per macchine PF se possibile preferisco tenere la testa più davanti
if BD.C_SIMM and abs( vtTg:getZ()) < 0.01 then
if BD.C_SIMM and abs( vtTg:getZ()) < 0.01 and abs( vtTg:getX()) < 0.5 then
if nSCC == MCH_SCC.ADIR_YP then
nSCC = MCH_SCC.ADIR_YM
end