From adc6ec3df6b802abc7bd1ef4aa2cd344429aeca4 Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Tue, 30 Apr 2024 17:19:45 +0200 Subject: [PATCH] - Allineamento con common ver. 2.6e1 - Aggiunta variabile WoodDensity per gestione WOOD_DENSITY --- Beam/MachiningTypes.ini | 2 ++ Common_ONE-PF.NUM.mlpe | 4 ++-- Common_ONE-PF.mlpe | 2 +- Essetre-PFrl.mlde | 5 ++++- UpdateLog.txt | 7 ++++++- Version.lua | 2 +- 6 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Beam/MachiningTypes.ini b/Beam/MachiningTypes.ini index 984fcd7..3e19f03 100644 --- a/Beam/MachiningTypes.ini +++ b/Beam/MachiningTypes.ini @@ -8,6 +8,8 @@ 2=Drill_H2 3=Pocket 4=Pocket_H2 +5=Predrill +6=Predrill_H2 [Milling] 1=Prof diff --git a/Common_ONE-PF.NUM.mlpe b/Common_ONE-PF.NUM.mlpe index 39c5114..24f3ef4 100644 --- a/Common_ONE-PF.NUM.mlpe +++ b/Common_ONE-PF.NUM.mlpe @@ -44,7 +44,7 @@ function OnProgramStart() EmtOutput( '%' .. EgtNumToString( nPattId,-1)) -- aggiungo prefisso per commentae commenti iniziali se la macchina è utilizzata per fare i test - local sPrefixCommentLine = '' ; if IS_TEST_MACHINE then sPrefixCommentLine = '//' end + local sPrefixCommentLine = '' ; if IS_TEST_MACHINE or EgtEndsWith( EgtGetCurrMachineDir(), '.TEST') then sPrefixCommentLine = '//' end if EMT.INFO then EmtOutput( sPrefixCommentLine..'('..EMT.INFO..')') @@ -1589,7 +1589,7 @@ end function CalcDinamicaPinze( dH, dS, dL) local MinTempoAcc = 0.3 -- [s] local MaxTempoAcc = 4.0 -- [s] - local KgMtCubo= 550 -- densità legno [Kg / metro cubo] + 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] diff --git a/Common_ONE-PF.mlpe b/Common_ONE-PF.mlpe index bede6af..8bc105e 100644 --- a/Common_ONE-PF.mlpe +++ b/Common_ONE-PF.mlpe @@ -152,7 +152,7 @@ function OnSimulStart() local nId = EgtGetFirstNameInGroup( EgtGetFirstNameInGroup( nGrpId, McdData[i].Sub), McdData[i].Name) if nId then table.insert( EMT.MCODET, nId) - EgtOutLog( 'Element ' .. McdData[i].Grp .. '/' .. McdData[i].Sub .. '/' .. McdData[i].Name .. ' is ok', 4) + EgtOutLog( 'Element ' .. McdData[i].Grp .. '/' .. McdData[i].Sub .. '/' .. McdData[i].Name .. ' (' .. tostring( nId) .. ') is ok', 4) else nMcdNullCnt = nMcdNullCnt + 1 EgtOutLog( 'Element ' .. McdData[i].Grp .. '/' .. McdData[i].Sub .. '/' .. McdData[i].Name .. ' is null', 4) diff --git a/Essetre-PFrl.mlde b/Essetre-PFrl.mlde index 5cd5bcb..5dcb2c9 100644 --- a/Essetre-PFrl.mlde +++ b/Essetre-PFrl.mlde @@ -60,12 +60,14 @@ -- 2024/03/28 ver 2.6d1 Allineamento con common ver. 2.6d1 -- 2024/04/12 ver 2.6d2 Allineamento con common ver. 2.6d2 -- Aggiunto parametro ForceToCloseRollersGate +-- 2024/04/30 ver 2.6e1 Allineamento con common ver. 2.6e1 +-- Aggiunta variabile WoodDensity per gestione WOOD_DENSITY -- Intestazioni require( 'EmtGenerator') EgtEnableDebug( false) -PP_VER = '2.6d2' +PP_VER = '2.6e1' MIN_MACH_VER = '2.5k1' MACH_NAME = 'Essetre-PFrl' @@ -279,6 +281,7 @@ if EgtExistsFile( sData) then if Machine.Offsets.DEFTCPOS1 then DefTcPos1 = ( 'T' .. Machine.Offsets.DEFTCPOS1) end if Machine.Offsets.DEFTCPOS2 then DefTcPos2 = ( 'T' .. Machine.Offsets.DEFTCPOS2) end if Machine.Offsets.CHIUDI_PINZE_2_3_SCAMBIO then ForceToCloseRollersGate = Machine.Offsets.CHIUDI_PINZE_2_3_SCAMBIO == 1 end + if Machine.Offsets.WOOD_DENSITY then WoodDensity = Machine.Offsets.WOOD_DENSITY end -- aggiustamenti MinY1 = MinV1 + MinDeltaYV MaxY1 = MaxMchY1 diff --git a/UpdateLog.txt b/UpdateLog.txt index 9b1ce50..97dd0ce 100644 --- a/UpdateLog.txt +++ b/UpdateLog.txt @@ -1,7 +1,12 @@ ==== Common_ONE-PF Update Log ==== +Versione 2.6e1 (30/04/2024) +- (GEN) Chiamando la macchina con un nome che termini con '.TEST' si abilita come macchina per test interni, equivalente a settare 'IS_TEST_MACHINE' (che comunque rimane) +- (SIM) In log collisioni, si scrive anche ID del gruppo per facilitare riconoscimento in caso di collisione +- (MLDE-GEN) Gestione facoltativa parametro WOOD_DENSITY settabile in Ts3. In MLDE, mettere il valore di WOOD_DENSITY nella nostra variabile 'WoodDensity'. + Versione 2.6d2 (12/04/2024) -- (MLDE-SIM-GEN) Aggiunta variabile FACOLTATIVA 'ForceToCloseRollersGate' ( che legge la variabile da TS3 'CHIUDI_RULLI_SCAMBIO') in mlde per forzare chiusura paratie rulli +- (MLDE-SIM-GEN) Aggiunta variabile FACOLTATIVA 'ForceToCloseRollersGate' ( che legge la variabile da TS3 'CHIUDI_PINZE_2_3_SCAMBIO') in mlde per forzare chiusura paratie rulli durante scambio pinze per facilitare passaggio pezzi molto storti. Se non presente chiude solo se necessario. Versione 2.6d1 (28/03/2024) diff --git a/Version.lua b/Version.lua index 8a1149d..037a82d 100644 --- a/Version.lua +++ b/Version.lua @@ -3,7 +3,7 @@ local InfoCommon_STD_PP = { NAME = 'Common_ONE-PF', -- nome script PP standard - VERSION = '2.6d2', -- versione script + VERSION = '2.6e1', -- versione script MIN_MACH_VER_PP_COMMON = '2.5k1' -- versione minima kernel }