Essetre-PFrl :

- correzione per update con utensile cambiato di nome
- correzione per carico pezzo dopo rotazione con movimenti di riposizionamento carrelli da separare.
This commit is contained in:
DarioS
2023-04-05 20:24:03 +02:00
parent 016a1a613c
commit 744d9be7e9
2 changed files with 7 additions and 7 deletions
+2 -6
View File
@@ -1403,9 +1403,6 @@ function PrepareLoad( sCmd, nInd, bStart)
end
table.insert( EMT.MDCHAR, { Start=1})
table.insert( EMT.MDCHAR, { Wait=1})
--for i = 1, #EMT.MDCHAR do
-- EMT.MDCHAR[i].MovType = 3
--end
end
elseif Cmd[1] == '1' then
if Cmd[2] ~= 'Z' then
@@ -1913,9 +1910,8 @@ function PreparePostRotation( sCmd, nInd)
-- se dichiarazione inizio riposizionamento carrelli
if Cmd[2] == 'CARR_MOVE' then
EMT.POSTROT = false
for i = 1, #EMT.MDCHAR do
EMT.MDCHAR[i].MovType = 3
end
table.insert( EMT.MDCHAR, { Start=1})
table.insert( EMT.MDCHAR, { Wait=1})
end
elseif Cmd[1] == '1' then
-- non interessa
+5 -1
View File
@@ -1083,7 +1083,11 @@ function SpecialCalcPhaseEncumbrance( nPhase)
-- imposto lavorazione e utensile correnti
EgtSetCurrMachining( nMchId)
local sTool = EgtGetMachiningParam( MCH_MP.TOOL)
EgtTdbSetCurrTool( sTool)
if not sTool or not EgtTdbSetCurrTool( sTool) then
local sTuuid = EgtGetMachiningParam( MCH_MP.TUUID)
sTool = EgtTdbGetToolFromUUID( sTuuid) or ''
EgtTdbSetCurrTool( sTool)
end
local sHead = EgtTdbGetCurrToolParam( MCH_TP.HEAD)
EgtSetCalcTool( sTool, sHead, 1)
-- calcolo ingombri