From b4fba50c15c9397fc98d373f063fb2b9316f7c78 Mon Sep 17 00:00:00 2001 From: DarioS Date: Thu, 27 Oct 2022 11:06:22 +0200 Subject: [PATCH] =?UTF-8?q?EgtMachKernel=202.4j3=20:=20-=20in=20tutte=20le?= =?UTF-8?q?=20lavorazioni=20ora=20Apply=20esegue=20sempre=20Update=20(aggi?= =?UTF-8?q?ornamento=20assi=20macchina=20e=20collegamento=20con=20operazio?= =?UTF-8?q?ne=20precedente)=20anche=20se=20non=20=C3=A8=20necessario=20il?= =?UTF-8?q?=20ricalcolo=20della=20lavorazione.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Chiseling.cpp | 6 ++++++ Disposition.cpp | 4 +++- Drilling.cpp | 6 ++++++ EgtMachKernel.rc | Bin 11782 -> 11782 bytes GenMachining.cpp | 6 ++++++ Milling.cpp | 6 ++++++ Mortising.cpp | 6 ++++++ Pocketing.cpp | 6 ++++++ SawFinishing.cpp | 6 ++++++ SawRoughing.cpp | 6 ++++++ Sawing.cpp | 6 ++++++ Simulator.cpp | 2 +- SurfFinishing.cpp | 6 ++++++ WaterJetting.cpp | 6 ++++++ 14 files changed, 70 insertions(+), 2 deletions(-) diff --git a/Chiseling.cpp b/Chiseling.cpp index fb10684..ca765fd 100644 --- a/Chiseling.cpp +++ b/Chiseling.cpp @@ -504,8 +504,14 @@ Chiseling::Apply( bool bRecalc, bool bPostApply) // verifico se necessario continuare nell'aggiornamento if ( ! bRecalc && ! bToolChanged && ( m_nStatus == MCH_ST_OK || ( ! bPostApply && m_nStatus == MCH_ST_NO_POSTAPPL))) { + // confermo i percorsi di lavorazione m_nChisels = nCurrChisels ; LOG_DBG_INFO( GetEMkLogger(), "Chiseling apply skipped : status already ok") ; + // eseguo aggiornamento assi macchina e collegamento con operazione precedente + if ( ! Update( bPostApply)) + return false ; + LOG_DBG_INFO( GetEMkLogger(), "Update done") ; + // esco con successo return true ; } m_nStatus = MCH_ST_TO_VERIFY ; diff --git a/Disposition.cpp b/Disposition.cpp index 9f9fdd1..4ff8484 100644 --- a/Disposition.cpp +++ b/Disposition.cpp @@ -1294,6 +1294,7 @@ Disposition::SpecialApply( bool bRecalc) static const string ON_SPECIAL_APPLY = "OnSpecialApplyDisposition" ; if ( ! pMch->LuaExistsFunction( ON_SPECIAL_APPLY)) { m_nStatus = MCH_ST_OK ; + LOG_DBG_INFO( GetEMkLogger(), "Disposition special apply not provided") ; return true ; } @@ -1304,7 +1305,7 @@ Disposition::SpecialApply( bool bRecalc) m_nShifts = nCurrShifts ; m_bSomeByHand = bCurrSomeByHand ; m_sTcPos = sCurrTcPos ; - LOG_DBG_INFO( GetEMkLogger(), "Disposition postapply skipped : status already ok") ; + LOG_DBG_INFO( GetEMkLogger(), "Disposition special apply skipped : status already ok") ; return true ; } m_nStatus = MCH_ST_TO_VERIFY ; @@ -1378,6 +1379,7 @@ Disposition::SpecialApply( bool bRecalc) // aggiorno stato m_nStatus = MCH_ST_OK ; + LOG_DBG_INFO( GetEMkLogger(), "Disposition special apply ok") ; return true ; } diff --git a/Drilling.cpp b/Drilling.cpp index d289cf9..cd43b3e 100644 --- a/Drilling.cpp +++ b/Drilling.cpp @@ -544,8 +544,14 @@ Drilling::Apply( bool bRecalc, bool bPostApply) // verifico se necessario continuare nell'aggiornamento if ( ! bRecalc && ! bToolChanged && ( m_nStatus == MCH_ST_OK || ( ! bPostApply && m_nStatus == MCH_ST_NO_POSTAPPL))) { + // confermo i percorsi di lavorazione m_nDrillings = nCurrDrillings ; LOG_DBG_INFO( GetEMkLogger(), "Drilling apply skipped : status already ok") ; + // eseguo aggiornamento assi macchina e collegamento con operazione precedente + if ( ! Update( bPostApply)) + return false ; + LOG_DBG_INFO( GetEMkLogger(), "Update done") ; + // esco con successo return true ; } m_nStatus = MCH_ST_TO_VERIFY ; diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index 7de583fe96a7eddd95366239d8b02f8f91cbe77e..42c273c29876ee65829ef6af867a4115d34309e3 100644 GIT binary patch delta 252 zcmZpRX^Yvgj#=B4A&()QA%`K8p_n0qL4iSoArvT*$xyH zADB6q8I3ppWU~cQlh1RAZw?TOVcfim+Xo_ik!kV?!2-C{3KndNrLihj3L(`w2Pezv m&YP^IF2W0PxF^`DISiE`hfe;$oVEFix(+j{)Mi2LuS@{Z-a~Hy delta 252 zcmZpRX^Yvgj#=H4A&()QA%`KAp%{o27&I7y8A=!ufjAS$3kAw%g4mMeHApr8Wy{e`NvyYd%47 diff --git a/GenMachining.cpp b/GenMachining.cpp index 1abd971..d18ee89 100644 --- a/GenMachining.cpp +++ b/GenMachining.cpp @@ -527,8 +527,14 @@ GenMachining::Apply( bool bRecalc, bool bPostApply) // verifico se necessario continuare nell'aggiornamento if ( ! bRecalc && ! bToolChanged && ( m_nStatus == MCH_ST_OK || ( ! bPostApply && m_nStatus == MCH_ST_NO_POSTAPPL))) { + // confermo i percorsi di lavorazione m_nMills = nCurrMills ; LOG_DBG_INFO( GetEMkLogger(), "GenMachining apply skipped : status already ok") ; + // eseguo aggiornamento assi macchina e collegamento con operazione precedente + if ( ! Update( bPostApply)) + return false ; + LOG_DBG_INFO( GetEMkLogger(), "Update done") ; + // esco con successo return true ; } m_nStatus = MCH_ST_TO_VERIFY ; diff --git a/Milling.cpp b/Milling.cpp index db21e84..32b59af 100644 --- a/Milling.cpp +++ b/Milling.cpp @@ -715,8 +715,14 @@ Milling::Apply( bool bRecalc, bool bPostApply) // verifico se necessario continuare nell'aggiornamento if ( ! bRecalc && ! bToolChanged && ( m_nStatus == MCH_ST_OK || ( ! bPostApply && m_nStatus == MCH_ST_NO_POSTAPPL))) { + // confermo i percorsi di lavorazione m_nMills = nCurrMills ; LOG_DBG_INFO( GetEMkLogger(), "Milling apply skipped : status already ok") ; + // eseguo aggiornamento assi macchina e collegamento con operazione precedente + if ( ! Update( bPostApply)) + return false ; + LOG_DBG_INFO( GetEMkLogger(), "Update done") ; + // esco con successo return true ; } m_nStatus = MCH_ST_TO_VERIFY ; diff --git a/Mortising.cpp b/Mortising.cpp index d2d78f9..8a21f6e 100644 --- a/Mortising.cpp +++ b/Mortising.cpp @@ -524,8 +524,14 @@ Mortising::Apply( bool bRecalc, bool bPostApply) // verifico se necessario continuare nell'aggiornamento if ( ! bRecalc && ! bToolChanged && ( m_nStatus == MCH_ST_OK || ( ! bPostApply && m_nStatus == MCH_ST_NO_POSTAPPL))) { + // confermo i percorsi di lavorazione m_nMortises = nCurrMortises ; LOG_DBG_INFO( GetEMkLogger(), "Mortising apply skipped : status already ok") ; + // eseguo aggiornamento assi macchina e collegamento con operazione precedente + if ( ! Update( bPostApply)) + return false ; + LOG_DBG_INFO( GetEMkLogger(), "Update done") ; + // esco con successo return true ; } m_nStatus = MCH_ST_TO_VERIFY ; diff --git a/Pocketing.cpp b/Pocketing.cpp index 939208c..08679cd 100644 --- a/Pocketing.cpp +++ b/Pocketing.cpp @@ -618,8 +618,14 @@ Pocketing::Apply( bool bRecalc, bool bPostApply) // verifico se necessario continuare nell'aggiornamento if ( ! bRecalc && ! bToolChanged && ( m_nStatus == MCH_ST_OK || ( ! bPostApply && m_nStatus == MCH_ST_NO_POSTAPPL))) { + // confermo i percorsi di lavorazione m_nPockets = nCurrPockets ; LOG_DBG_INFO( GetEMkLogger(), "Pocketing apply skipped : status already ok") ; + // eseguo aggiornamento assi macchina e collegamento con operazione precedente + if ( ! Update( bPostApply)) + return false ; + LOG_DBG_INFO( GetEMkLogger(), "Update done") ; + // esco con successo return true ; } m_nStatus = MCH_ST_TO_VERIFY ; diff --git a/SawFinishing.cpp b/SawFinishing.cpp index 0f8ef8d..4528b4b 100644 --- a/SawFinishing.cpp +++ b/SawFinishing.cpp @@ -499,8 +499,14 @@ SawFinishing::Apply( bool bRecalc, bool bPostApply) // verifico se necessario continuare nell'aggiornamento if ( ! bRecalc && ! bToolChanged && ( m_nStatus == MCH_ST_OK || ( ! bPostApply && m_nStatus == MCH_ST_NO_POSTAPPL))) { + // confermo i percorsi di lavorazione m_nCuts = nCurrCuts ; LOG_DBG_INFO( GetEMkLogger(), "SawFinishing apply skipped : status already ok") ; + // eseguo aggiornamento assi macchina e collegamento con operazione precedente + if ( ! Update( bPostApply)) + return false ; + LOG_DBG_INFO( GetEMkLogger(), "Update done") ; + // esco con successo return true ; } m_nStatus = MCH_ST_TO_VERIFY ; diff --git a/SawRoughing.cpp b/SawRoughing.cpp index 13db5e6..5ab5b25 100644 --- a/SawRoughing.cpp +++ b/SawRoughing.cpp @@ -482,8 +482,14 @@ SawRoughing::Apply( bool bRecalc, bool bPostApply) // verifico se necessario continuare nell'aggiornamento if ( ! bRecalc && ! bToolChanged && ( m_nStatus == MCH_ST_OK || ( ! bPostApply && m_nStatus == MCH_ST_NO_POSTAPPL))) { + // confermo i percorsi di lavorazione m_nCuts = nCurrCuts ; LOG_DBG_INFO( GetEMkLogger(), "SawRoughing apply skipped : status already ok") ; + // eseguo aggiornamento assi macchina e collegamento con operazione precedente + if ( ! Update( bPostApply)) + return false ; + LOG_DBG_INFO( GetEMkLogger(), "Update done") ; + // esco con successo return true ; } m_nStatus = MCH_ST_TO_VERIFY ; diff --git a/Sawing.cpp b/Sawing.cpp index f2dfddc..a27feee 100644 --- a/Sawing.cpp +++ b/Sawing.cpp @@ -647,8 +647,14 @@ Sawing::Apply( bool bRecalc, bool bPostApply) // verifico se necessario continuare nell'aggiornamento if ( ! bRecalc && ! bToolChanged && ( m_nStatus == MCH_ST_OK || ( ! bPostApply && m_nStatus == MCH_ST_NO_POSTAPPL))) { + // confermo i percorsi di lavorazione m_nCuts = nCurrCuts ; LOG_DBG_INFO( GetEMkLogger(), "Sawing apply skipped : status already ok") ; + // eseguo aggiornamento assi macchina e collegamento con operazione precedente + if ( ! Update( bPostApply)) + return false ; + LOG_DBG_INFO( GetEMkLogger(), "Update done") ; + // esco con successo return true ; } m_nStatus = MCH_ST_TO_VERIFY ; diff --git a/Simulator.cpp b/Simulator.cpp index a4a1bac..802da30 100644 --- a/Simulator.cpp +++ b/Simulator.cpp @@ -158,7 +158,7 @@ Simulator::Start( bool bFirst) // Arrivo alla preparazione per la prima lavorazione int nStatus ; - if ( ! FindAndManageOperationStart( true, bFirst, nStatus)) + if ( ! FindAndManageOperationStart( true, bFirst, nStatus) && nStatus != MCH_SIM_STOP) bOk = false ; // Reset timer diff --git a/SurfFinishing.cpp b/SurfFinishing.cpp index 90ba460..d05b8c9 100644 --- a/SurfFinishing.cpp +++ b/SurfFinishing.cpp @@ -501,8 +501,14 @@ SurfFinishing::Apply( bool bRecalc, bool bPostApply) // verifico se necessario continuare nell'aggiornamento if ( ! bRecalc && ! bToolChanged && ( m_nStatus == MCH_ST_OK || ( ! bPostApply && m_nStatus == MCH_ST_NO_POSTAPPL))) { + // confermo i percorsi di lavorazione m_nPaths = nCurrPaths ; LOG_DBG_INFO( GetEMkLogger(), "SurfFinishing apply skipped : status already ok") ; + // eseguo aggiornamento assi macchina e collegamento con operazione precedente + if ( ! Update( bPostApply)) + return false ; + LOG_DBG_INFO( GetEMkLogger(), "Update done") ; + // esco con successo return true ; } m_nStatus = MCH_ST_TO_VERIFY ; diff --git a/WaterJetting.cpp b/WaterJetting.cpp index ae7f88c..d8f3aaf 100644 --- a/WaterJetting.cpp +++ b/WaterJetting.cpp @@ -631,8 +631,14 @@ WaterJetting::Apply( bool bRecalc, bool bPostApply) // verifico se necessario continuare nell'aggiornamento if ( ! bRecalc && ! bToolChanged && ( m_nStatus == MCH_ST_OK || ( ! bPostApply && m_nStatus == MCH_ST_NO_POSTAPPL))) { + // confermo i percorsi di lavorazione m_nMills = nCurrMills ; LOG_DBG_INFO( GetEMkLogger(), "Milling apply skipped : status already ok") ; + // eseguo aggiornamento assi macchina e collegamento con operazione precedente + if ( ! Update( bPostApply)) + return false ; + LOG_DBG_INFO( GetEMkLogger(), "Update done") ; + // esco con successo return true ; } m_nStatus = MCH_ST_TO_VERIFY ;