diff --git a/BatchProcessNew.lua b/BatchProcessNew.lua index 880a0f0..78bfc19 100644 --- a/BatchProcessNew.lua +++ b/BatchProcessNew.lua @@ -14,7 +14,7 @@ EgtAddToPackagePath( BEAM.BASEDIR .. '\\StrategyLibs\\?.lua') -- Verifico che la macchina corrente sia abilitata per la lavorazione delle Travi e carico log txt local sMachine = BEAM.MACHINE local sTxtLogFile -if ( BEAM.FLAG ~= 6) and ( BEAM.FLAG ~= 7) then +if ( BEAM.FLAG ~= 6) and ( BEAM.FLAG ~= 9) then EgtResetCurrMachGroup() if not EgtSetCurrMachine( sMachine) then BEAM.ERR = 11 @@ -24,7 +24,7 @@ if ( BEAM.FLAG ~= 6) and ( BEAM.FLAG ~= 7) then return end end -if BEAM.FLAG ~= 7 then +if BEAM.FLAG ~= 9 then sTxtLogFile = EgtChangePathExtension( BEAM.FILE, '.txt') end local sMachDir = EgtGetCurrMachineDir() diff --git a/Strategies/Standard/STR0002/STR0002.json b/Strategies/Standard/STR0002/STR0002.json index 7333ee5..ad71276 100644 --- a/Strategies/Standard/STR0002/STR0002.json +++ b/Strategies/Standard/STR0002/STR0002.json @@ -21,6 +21,16 @@ "sType": "b", "sMessageId": " ", "sMinUserLevel": "1" + }, + { + "sName": "dOpenMinSafe", + "sNameNge": "OPENMINSAFE", + "sValue": "40", + "sDescriptionShort": "Minimum approach distance on open sides", + "sDescriptionLong": "Minimum approach distance on open sides", + "sType": "d", + "sMessageId": " ", + "sMinUserLevel": "1" } ] } \ No newline at end of file diff --git a/Strategies/Standard/STR0002/STR0002.lua b/Strategies/Standard/STR0002/STR0002.lua index f5131ac..ea2f763 100644 --- a/Strategies/Standard/STR0002/STR0002.lua +++ b/Strategies/Standard/STR0002/STR0002.lua @@ -520,6 +520,8 @@ function STR0002.Make( bAddMachining, Proc, Part, CustomParameters) Pocketing.LeadIn.dElevation = TOOLS[Strategy.Machining[j].ToolInfo.nToolIndex].dDiameter/2 Pocketing.sDepth = -Strategy.Machining[j].ToolInfo.dResidualDepth Pocketing.dResidualDepth = Strategy.Machining[j].ToolInfo.dResidualDepth + -- TODO vedere se questo parametro con svuotature nuove si può rimuovere + Pocketing.dOpenMinSafe = Strategy.Parameters.dOpenMinSafe -- il quarto ciclo è la lavorazione opposta sulla faccia Tunnel if Strategy.Machining[j].bToolInvert then Pocketing.bToolInvert = true