diff --git a/Common_PF1250.TPA.mlpe b/Common_PF1250.TPA.mlpe index 227b78c..3653e10 100644 --- a/Common_PF1250.TPA.mlpe +++ b/Common_PF1250.TPA.mlpe @@ -574,10 +574,14 @@ end --------------------------------------------------------------------- function OnPathStart() + if EMT.OPEISDISP then + return + end -- non ancora iniziata la lavorazione EMT.MCHFIRST = true EMT.MCHFIRSTFEED = true -- primo posizionamento sempre in globale + -- primo posizionamento sempre in globale EMT.REFLOC = nil EMT.IPLGL = false -- leggo se ancora presa iniziale carrello @@ -585,8 +589,8 @@ function OnPathStart() --MyOutput( 'CNT='.. tostring( EMT.CNT or 0)) -- se utensile non cambiato, salvo eventuali precedenti rotanti if EMT.TOOL == EMT.PREVTOOL and not EMT.ZMAX then - EMT.L2pp = EMT.L2op or EMT.L2pp - EMT.L3pp = EMT.L3op or EMT.L3pp + EMT.L2pp = EMT.L2op + EMT.L3pp = EMT.L3op EMT.R1pp = EMT.R1p or EMT.R1pp EMT.R2pp = EMT.R2p or EMT.R2pp else @@ -603,6 +607,9 @@ end --------------------------------------------------------------------- function OnPathEnd() + if EMT.OPEISDISP then + return + end if not EMT.ZMAX then EmitResetMachining() end