diff --git a/Common_FAST.NUM.mlpe b/Common_FAST.NUM.mlpe index e3b6053..3680871 100644 --- a/Common_FAST.NUM.mlpe +++ b/Common_FAST.NUM.mlpe @@ -6,7 +6,7 @@ local INFO_STD_PP = require( 'Version') local BD = require( 'BeamData') -- Variabili di modulo -local CSP_INFO = INFO_STD_PP.NAME..' ver.'..INFO_STD_PP.VERSION..' by EgalWare s.r.l.' +local CSP_INFO = INFO_STD_PP.NAME..'_'..NumericalControl..' ver.'..INFO_STD_PP.VERSION..' by EgalWare s.r.l.' local MACHINE_INFO = MACH_NAME..' ver.'..PP_VER local TEST_USE = false @@ -53,6 +53,7 @@ function OnProgramStart() end EmtOutput( sPrefixCommentLine..'('.. CSP_INFO..')') EmtOutput( sPrefixCommentLine..'('.. MACHINE_INFO..')\n') + EmtOutput( '(HEADER)') -- Se modalità test, aggiungo linee per muovere tappeto e alzare la testa (in automatico viene fatto dal main residente) if TEST_USE then EmtOutput( 'M28') @@ -104,6 +105,7 @@ function OnProgramEnd() EMT.FALL = nil EMT.RELOAD = nil EMT.RELOAD2 = nil + EmtOutput( '(FOOTER)') -- Se modalità test, termino il programma if TEST_USE then EmtOutput( 'M02') @@ -1538,7 +1540,7 @@ function MyAdjustLinearAxes() elseif EMT.HEAD ~= 'H3' then local Len = EMT.TLEN + EgtIf( EMT.HEAD == 'H1', MillOffs, abs( SawOffs)) local LenRef = MillOffs - vtE = Vector3d( EMT.EXTR) * Len - Z_AX() * LenRef + vtE = Vector3d( EMT.TDIR) * Len - Z_AX() * LenRef else local LenAux = ( EMT.TDIST or ChSawLen) + MillOffs local LenRef = MillOffs diff --git a/Common_FAST.NUM_PLUS.mlpe b/Common_FAST.NUM_PLUS.mlpe index 8a93fd9..fc910bd 100644 --- a/Common_FAST.NUM_PLUS.mlpe +++ b/Common_FAST.NUM_PLUS.mlpe @@ -6,7 +6,7 @@ local INFO_STD_PP = require( 'Version') local BD = require( 'BeamData') -- Variabili di modulo -local CSP_INFO = INFO_STD_PP.NAME..' ver.'..INFO_STD_PP.VERSION..' by EgalWare s.r.l.' +local CSP_INFO = INFO_STD_PP.NAME..'_'..NumericalControl..' ver.'..INFO_STD_PP.VERSION..' by EgalWare s.r.l.' local MACHINE_INFO = MACH_NAME..' ver.'..PP_VER local TEST_USE = false @@ -53,6 +53,7 @@ function OnProgramStart() end EmtOutput( sPrefixCommentLine..'('.. CSP_INFO..')') EmtOutput( sPrefixCommentLine..'('.. MACHINE_INFO..')\n') + EmtOutput( '(HEADER)') -- Se modalità test, aggiungo linee per muovere tappeto e alzare la testa (in automatico viene fatto dal main residente) if TEST_USE then EmtOutput( 'M28') @@ -108,6 +109,7 @@ function OnProgramEnd() EMT.FALL = nil EMT.RELOAD = nil EMT.RELOAD2 = nil + EmtOutput( '(FOOTER)') -- Se modalità test, termino il programma if TEST_USE then EmtOutput( 'M02') @@ -1640,7 +1642,7 @@ function MyAdjustLinearAxes() if EMT.HEAD == 'H1' or EMT.HEAD == 'H2' then local Len = EMT.TLEN + EgtIf( EMT.HEAD == 'H1', MillOffs, abs( SawOffs)) local LenRef = MillOffs - vtE = Vector3d( EMT.EXTR) * Len - Z_AX() * LenRef + vtE = Vector3d( EMT.TDIR) * Len - Z_AX() * LenRef elseif EMT.HEAD == 'H3' then local LenAux = ( EMT.TDIST or ChSawLen) + MillOffs local LenRef = MillOffs diff --git a/Common_FAST.TPA.mlpe b/Common_FAST.TPA.mlpe index 953a2ba..7f05ff6 100644 --- a/Common_FAST.TPA.mlpe +++ b/Common_FAST.TPA.mlpe @@ -6,7 +6,7 @@ local INFO_STD_PP = require( 'Version') local BD = require( 'BeamData') -- Variabili di modulo -local CSP_INFO = INFO_STD_PP.NAME..' ver.'..INFO_STD_PP.VERSION..' by EgalWare s.r.l.' +local CSP_INFO = INFO_STD_PP.NAME..'_'..NumericalControl..' ver.'..INFO_STD_PP.VERSION..' by EgalWare s.r.l.' local MACHINE_INFO = MACH_NAME..' ver.'..PP_VER local TEST_USE = false @@ -54,6 +54,7 @@ function OnProgramStart() end ParkLine( sPrefixCommentLine..'('.. CSP_INFO..')') ParkLine( sPrefixCommentLine..'('.. MACHINE_INFO..')') + ParkLine( '(HEADER)') -- Se modalità test, aggiungo linee per muovere tappeto e alzare la testa (in automatico viene fatto dal main residente) if TEST_USE then @@ -111,6 +112,7 @@ function OnProgramEnd() EMT.FALL = nil EMT.RELOAD = nil EMT.RELOAD2 = nil + EmtOutput( '(FOOTER)') -- Termino il programma EmtOutput( 'M02') end @@ -1642,7 +1644,7 @@ function MyAdjustLinearAxes() if EMT.HEAD == 'H1' or EMT.HEAD == 'H2' then local Len = EMT.TLEN + EgtIf( EMT.HEAD == 'H1', MillOffs, abs( SawOffs)) local LenRef = MillOffs - vtE = Vector3d( EMT.EXTR) * Len - Z_AX() * LenRef + vtE = Vector3d( EMT.TDIR) * Len - Z_AX() * LenRef elseif EMT.HEAD == 'H3' then local LenAux = ( EMT.TDIST or ChSawLen) + MillOffs local LenRef = MillOffs @@ -1653,13 +1655,13 @@ function MyAdjustLinearAxes() local LenAux = MillOffs + AngTr1Offs local LenRef = MillOffs local vtAux = EgtGetCalcAuxDirFromAngles( EMT.R1, EMT.R2) - vtE = Vector3d( EMT.EXTR) * Len + vtAux * LenAux - Z_AX() * LenRef + vtE = Vector3d( EMT.TDIR) * Len + vtAux * LenAux - Z_AX() * LenRef elseif EMT.HEAD == 'H7' then local Len = EMT.TLEN + AngTrBHLen local LenAux = MillOffs + AngTrBHOffs local LenRef = MillOffs local vtAux = EgtGetCalcAuxDirFromAngles( EMT.R1, EMT.R2) - vtE = Vector3d( EMT.EXTR) * Len + vtAux * LenAux - Z_AX() * LenRef + vtE = Vector3d( EMT.TDIR) * Len + vtAux * LenAux - Z_AX() * LenRef else EmtSetLastError( 1211, 'Head not allowed ' .. EMT.HEAD) end diff --git a/UpdateLog.txt b/UpdateLog.txt index 72aa28f..cb7218a 100644 --- a/UpdateLog.txt +++ b/UpdateLog.txt @@ -1,5 +1,10 @@ ==== Common_FAST Update Log ==== +Versione 2.7c1 (26/03/2024) +- (GEN) All'inizio del codice ISO si scrive nel commento anche il controllo numerico utilizzato per la generazione. +- (GEN) Aggiunta commenti HEADER e FOOTER per comunicazione con linea o altre macchine, da parte di Essetre. +- (GEN) In MyAdjustLinearAxes si utilizza TDIR per calcolarsi gli offset per compatibilità con lavorazioni a 5 assi. + Versione 2.7b1 (20/02/2024) - (SIM-GEN) Aggiunta possibilità di settare HCING/TCING nelle note di ogni singola lavorazione per gestire parte non pinzabile del pezzo. Funziona solo con nuovo pinzaggio. - (SIM-GEN) Piccola correzione calcolo posizione carrelli con nuova strategia di pinzaggio. diff --git a/Version.lua b/Version.lua index c4a6682..beb0c0c 100644 --- a/Version.lua +++ b/Version.lua @@ -3,7 +3,7 @@ local InfoCommon_STD_PP = { NAME = 'Common_FAST', -- nome script PP standard - VERSION = '2.7b1', -- versione script + VERSION = '2.7c1', -- versione script MIN_MACH_VER_PP_COMMON = '2.5k1' -- versione minima kernel }