5 changed files with 16 additions and 12 deletions
+2 -2
View File
@@ -10,8 +10,8 @@
require( 'EmtGenerator')
EgtEnableDebug( false)
PP_VER = '2.6i1'
PP_NVER = '2.6.9.1'
PP_VER = '3.1c1'
PP_NVER = '3.1.3.1'
-- Parametri macchina
NumericalControl = 'NUM' -- NUM o TPA
Binary file not shown.
+9 -7
View File
@@ -70,13 +70,15 @@ function OnProgramEnd()
EmitCount()
-- Dichiarazione conclusione pezzi
if EMT.PRODID then
local PartId = EgtGetFirstPartInRawPart( EMT.RAWID)
while PartId do
local CutId = EgtGetInfo( PartId, 'CUTID', 'i') or 0
local sOut = 'G156 EA'..tostring( EMT.PRODID)..' EB'..tostring( EMT.PATTID)..' EC'..tostring( CutId)..' ED2'
EmtOutput( sOut)
PartId = EgtGetNextPartInRawPart( PartId)
end
-- local PartId = EgtGetFirstPartInRawPart( EMT.RAWID)
-- while PartId do
-- local CutId = EgtGetInfo( PartId, 'CUTID', 'i') or 0
-- local sOut = 'G156 EA'..tostring( EMT.PRODID)..' EB'..tostring( EMT.PATTID)..' EC'..tostring( CutId)..' ED2'
-- EmtOutput( sOut)
-- PartId = EgtGetNextPartInRawPart( PartId)
-- end
local sOut = 'G156 EA'..tostring( EMT.PRODID)..' EB'..tostring( EMT.PATTID)..' EC-1 ED2'
EmtOutput( sOut)
end
-- Arresto mandrino
EmtOutput( 'M05 E80000=1')
+1 -1
View File
@@ -149,7 +149,7 @@ function OnSimulDispositionStart()
-- determino la risoluzione dello Zmap
local b3Sol = EgtGetBBoxGlob( nSolId, GDB_BB.STANDARD)
local dArea = b3Sol:getDimX() * b3Sol:getDimY() + b3Sol:getDimX() * b3Sol:getDimZ() + b3Sol:getDimY() * b3Sol:getDimZ()
local dTol = 6.13
local dTol = 5.89
if dArea < CoeffVM * 6.0e6 then
dTol = 2.81
elseif dArea < CoeffVM * 12.0e6 then
+4 -2
View File
@@ -27,13 +27,15 @@ local WallData = {
DRILL_OVERLAP = 5, -- sovrapposizione tra due mezze forature
MILL_OVERLAP = 5, -- sovrapposizione tra due mezze fresature
RAWCOL = { 255, 160, 32, 30}, -- colore del grezzo
SIMUL_VIEW_DIR = 3, -- direzione di vista predefinita per la simulazione (1=NW, 2=SW, 3=NE, 4=SE)
SIMUL_VIEW_DIR = 4, -- direzione di vista predefinita per la simulazione (1=NW, 2=SW, 3=NE, 4=SE)
ORIG_CORNER = 'BL', -- angolo tavola per origine di battuta (BR (defualt), TR, BL, TL)
RAWPART_ROT = 180, -- rotazione del pannello grezzo rispetto alla descrizione BTL
MAX_CLEAN_CRN30 = 60, -- massimo spessore per pulitura angolo con fresa 30deg
MIN_DIM_ALLOW_CLEAN = 200, -- apertura minima per lavorazione pulitura spigolo
MILL_MAX_DEPTH_AS_MAT = true, -- massimo affondamento frese uguale ad altezza tagliente (max materiale)
DELTA_Y = 0, -- allontanamento in Y dai riferimenti
DELTA_Z = 0 -- sollevamento dalla tavola
DELTA_Z = 0, -- sollevamento dalla tavola
DEFAULT_RAW_NO_EXTRA_WIDTH = true -- in vista grezzo uguale a pezzo
}
local function GetChainSawBlockedAxis( nInd)