- Lettura parametri globali PROJECT e BTL
- Possibilità di leggere più file BTLInfo - Creata funzione GetPieceGeneralParameters (DA FARE) per aggiornamento parametri su pezzo
This commit is contained in:
+5
-4
@@ -105,8 +105,6 @@ local dRawH
|
||||
local function GetDataConfig()
|
||||
-- recupero utensili dal magazzino
|
||||
BeamExec.GetToolsFromDB()
|
||||
-- recupero parametri generali da progetto
|
||||
BeamExec.GetGeneralParameters()
|
||||
-- TODO da gestire eventuali errori bloccanti
|
||||
return true
|
||||
end
|
||||
@@ -418,6 +416,9 @@ if bToProcess then
|
||||
end
|
||||
end
|
||||
|
||||
-- recupero parametri generali da progetto
|
||||
BeamExec.GetGeneralParameters()
|
||||
|
||||
-- Se devo creare la barra
|
||||
if bCreateBar then
|
||||
if #PARTS == 0 then
|
||||
@@ -577,10 +578,10 @@ if bToProcess then
|
||||
PARTS[i].SplittingPoints = BeamLib.GetPartSplittingPoints( PARTS[i])
|
||||
PARTS[i].NotClampableLength = { STD = { dHead = 0, dTail = 0}, SIDE = { dHead = 0, dTail = 0}, DOWN = { dHead = 0, dTail = 0}}
|
||||
PARTS[i].sAISetupConfig = EgtGetInfo( PARTS[i].id, 'AISETUP', 's') or nil
|
||||
PARTS[i].GeneralParameters = {}
|
||||
PARTS[i].sBTLInfo = EgtGetInfo( PARTS[i].id, 'PROJ', 's') or nil
|
||||
-- si carica configurazione lavorazioni
|
||||
BeamExec.GetStrategiesFromJSONinBD( PARTS[i].sAISetupConfig)
|
||||
-- TODO leggere qui i parametri generali pezzo?
|
||||
PARTS[i].GeneralParameters = BeamLib.GetPieceGeneralParameters( PARTS[i].id, PARTS[i].sBTLInfo, STRATEGIES[PARTS[i].sAISetupConfig], GENERAL_PARAMETERS_JSON) -- si carica configurazione lavorazioni
|
||||
|
||||
-- sovramateriale in testa al pezzo
|
||||
local dDeltaS = max( PARTS[i].dPosX - ( dBarLen - dLen), 0)
|
||||
|
||||
Reference in New Issue
Block a user