DataBeam :

- migliorato calcolo ingombri di testa delle feature per posizionamento pinze
- feature Chamfer divisa in parti se lunga.
This commit is contained in:
Dario Sassi
2020-02-12 19:49:48 +00:00
parent dbb43355c3
commit 3f19150681
5 changed files with 157 additions and 41 deletions
+7 -3
View File
@@ -1,4 +1,4 @@
-- BatchProcess.lua by Egaltech s.r.l. 2020/01/30
-- BatchProcess.lua by Egaltech s.r.l. 2020/02/12
-- Gestione calcolo batch disposizione e lavorazioni per Travi
-- 2019/07/11 Aggiunta gestione stato rotazione di feature per TS3.
-- 2019/07/16 Aggiunta gestione modalità oltre 10 per impostazione macchina e uscita.
@@ -14,6 +14,7 @@
-- 2020/01/08 Aggiunta seconda sezione limite (BD.MAX_WIDTH2 x BD.MAX_HEIGHT2).
-- 2020/01/14 Si carica ultimo gruppo di lavoro. Corretto problema con nome non definito in segnalazione errore in generazione o stima.
-- 2020/01/30 File Diff con nome del btl.
-- 2020/02/12 Migliorie nella gestione degli errori.
-- Intestazioni
require( 'EgtBase')
@@ -421,7 +422,10 @@ end
if ( BEAM.FLAG == 3 or BEAM.FLAG == 4) and bVerifyCollision then
local bSimOk, nErr, sErr = EgtSimulate()
if not bSimOk then
if nErr == MCH_SHE.COLLISION then
if nErr == MCH_SHE.INIT then
BEAM.ERR = 19
BEAM.MSG = 'Error in clamps disposition'
elseif nErr == MCH_SHE.COLLISION then
BEAM.ERR = 22
BEAM.MSG = 'Head-part collision'
elseif nErr == MCH_SHE.OUTSTROKE then
@@ -429,7 +433,7 @@ if ( BEAM.FLAG == 3 or BEAM.FLAG == 4) and bVerifyCollision then
BEAM.MSG = 'Axis outstroke ' .. sErr
elseif nErr == MCH_SHE.SPECIAL then
BEAM.ERR = 24
BEAM.MSG = 'Charriot error ' .. sErr
BEAM.MSG = 'Clamp move error ' .. sErr
else
BEAM.ERR = 25
BEAM.MSG = 'General failure (contact supplier)'