DataBeam :

- migliorie.
This commit is contained in:
Dario Sassi
2019-10-02 09:36:29 +00:00
parent a4ce17b068
commit 2981dcb50d
2 changed files with 6 additions and 10 deletions
+2 -2
View File
@@ -47,8 +47,8 @@ function MachiningLib.FindPocketing( sType, dMaxDiam, dDepth)
if sTool and EgtTdbSetCurrTool( sTool) then
local dTDiam = EgtTdbGetCurrToolParam( MCH_TP.DIAM)
local dTMaxDepth = EgtTdbGetCurrToolMaxDepth()
if ( not dMaxDiam or dTDiam < dMaxDiam) and
( not dDepth or dTMaxDepth > dDepth) then
if ( not dMaxDiam or dTDiam < dMaxDiam + GEO.EPS_SMALL) and
( not dDepth or dTMaxDepth > dDepth - GEO.EPS_SMALL) then
return Pocketing.Name
end
end
+4 -8
View File
@@ -147,10 +147,10 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId)
-- ciclo sulle passate
local nO = 1
local dStep = 0
if dWidth + 2 * BD.CUT_EXTRA > dToolDiam then
nO = ceil(( dWidth + 2 * BD.CUT_EXTRA) / dToolDiam)
if dWidth + 2 * BD.CUT_EXTRA > 0.8 * dToolDiam then
nO = ceil(( dWidth + 2 * BD.CUT_EXTRA) / ( 0.6 * dToolDiam))
if nO > 1 then
dStep = ( dWidth + 2 * BD.CUT_EXTRA - dToolDiam) / ( nO - 1)
dStep = ( dWidth + 2 * BD.CUT_EXTRA) / nO
end
end
for k = nO, 1, -1 do
@@ -171,11 +171,7 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId)
local dEal = EgtIf( i == nC, -dEndDist, - dEndAccDist - ( nC - i - 1) * dC)
EgtSetMachiningParam( MCH_MP.ENDADDLEN, dEal)
-- imposto offset radiale (nullo se concavo)
if k > 1 then
EgtSetMachiningParam( MCH_MP.OFFSR, ( k - 1) * dStep)
else
EgtSetMachiningParam( MCH_MP.OFFSR, - BD.CUT_EXTRA)
end
EgtSetMachiningParam( MCH_MP.OFFSR, ( k - 1) * dStep - BD.CUT_EXTRA)
-- imposto uso della faccia
EgtSetMachiningParam( MCH_MP.FACEUSE, nFaceUse)
-- eseguo