Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0d99310258 | |||
| 0b49335c8e | |||
| 0d87a703ce | |||
| 475b0a7ebf |
@@ -47,3 +47,6 @@
|
||||
|
||||
[Sawing]
|
||||
1=Sawing
|
||||
|
||||
[Probing]
|
||||
1=DTMortise
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
-- Probingata.lua by Egaltech s.r.l. 20/06/2025
|
||||
-- Gestione dati lavorazioni per Travi
|
||||
|
||||
-- Tabella per definizione modulo
|
||||
local ProbingData = {
|
||||
{ On = true, Name = 'Probing_H1', Type = 'DTMortise'},
|
||||
{ On = true, Name = 'Probing_H2', Type = 'DTMortise'}
|
||||
}
|
||||
|
||||
---------------------------------------------------------------------
|
||||
return ProbingData
|
||||
@@ -27,7 +27,7 @@ function OnStart()
|
||||
--EMT.LINEINC = 1 -- incremento numerazione linee
|
||||
--EMT.Ft = 'F' -- token per feed
|
||||
--EMT.St = 'S' -- token per speed
|
||||
EMT.FMAXPINZE = EgtClamp( MaxFeedPinze or 102000, 20000, 102000) -- feed massima pinze
|
||||
EMT.FMAXPINZE = EgtClamp( MaxFeedPinze or 102000, 60000, 155000) -- feed massima pinze
|
||||
EMT.MAXACC = MaxAcc or ( EMT.FMAXPINZE / ( 60 * 0.3)) -- accelerazione massima pinze
|
||||
EMT.MINACC = MinAcc or ( EMT.FMAXPINZE / ( 60 * 4)) -- accelerazione minima pinze
|
||||
|
||||
@@ -1925,17 +1925,13 @@ end
|
||||
|
||||
---------------------------------------------------------------------
|
||||
function CalcDinamicaPinze( dH, dS, dL)
|
||||
local MinTempoAcc = 0.3 -- [s]
|
||||
local MaxTempoAcc = 4.0 -- [s]
|
||||
local KgMtCubo= WoodDensity or 550 -- densità legno [Kg / metro cubo]
|
||||
local Massa = ( dH * dS * dL * KgMtCubo ) / 1e9 -- massa [Kg]
|
||||
local FMaxPinze = EMT.FMAXPINZE -- Feed massima pinze [mm/min]
|
||||
local ForzaAttrito = 350 * 9.8 * 0.2 -- Forza chiusura pinze [Kgf] * g * Coeff_Attrito -> [N]
|
||||
local TempoAcc = ( ( Massa * FMaxPinze) / ( 60 * ForzaAttrito) / 1000)
|
||||
if ( TempoAcc < MinTempoAcc) then TempoAcc = MinTempoAcc end
|
||||
if ( TempoAcc > MaxTempoAcc) then TempoAcc = MaxTempoAcc end
|
||||
local AccMaxPinze = EMT.MAXACC or FMaxPinze / ( 60 * MinTempoAcc)
|
||||
local AccPinze = FMaxPinze / ( 60 * TempoAcc)
|
||||
local AccMaxPinze = EMT.MAXACC
|
||||
local AccPinze = EgtClamp( FMaxPinze / ( 60 * TempoAcc), EMT.MINACC, EMT.MAXACC)
|
||||
local RidFeed = 100 / Massa * 100
|
||||
if RidFeed > 100 then
|
||||
RidFeed = 100
|
||||
|
||||
@@ -565,6 +565,9 @@ function OnSimulToolSelect( dPosA)
|
||||
-- se vecchio utensile compatibile, tengo quello caricato
|
||||
if IsToolCompatibleWithProbe( EMT.PREVTOOL_H1) then
|
||||
bChanged = false
|
||||
EMT.TCPOS = EMT.PREVTCPOS_H1
|
||||
EMT.TOOL = EMT.PREVTOOL_H1
|
||||
EMT.HEAD = EMT.PREVHEAD_H1
|
||||
-- altrimenti si seleziona utensile di default
|
||||
else
|
||||
ExecMoveZmax( EMT.MCHSPLIT, true)
|
||||
@@ -593,6 +596,9 @@ function OnSimulToolSelect( dPosA)
|
||||
-- se vecchio utensile compatibile, tengo quello caricato
|
||||
if IsToolCompatibleWithProbe( EMT.PREVTOOL_H2) then
|
||||
bChanged = false
|
||||
EMT.TCPOS = EMT.PREVTCPOS_H2
|
||||
EMT.TOOL = EMT.PREVTOOL_H2
|
||||
EMT.HEAD = EMT.PREVHEAD_H2
|
||||
-- altrimenti si seleziona utensile di default
|
||||
else
|
||||
ExecMoveZmax( EMT.MCHSPLIT, true)
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@
|
||||
require( 'EmtGenerator')
|
||||
EgtEnableDebug( false)
|
||||
|
||||
PP_VER = '2.7f1_DEV13'
|
||||
PP_VER = '2.7f1_DEV15'
|
||||
PP_NVER = '2.7.6.1'
|
||||
MIN_MACH_VER = '2.5k1'
|
||||
MACH_NAME = string.match( EgtGetCurrMachineDir(), "[^\\]+$") -- si ricava il nome della macchina dal direttorio
|
||||
|
||||
Reference in New Issue
Block a user