Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 95867ec10f | |||
| 1c0cfdfd22 | |||
| 7e977d81cb | |||
| 6cdb3888a0 | |||
| e0dfd45f1c |
+16
-8
@@ -485,6 +485,7 @@ end
|
||||
---------------------------------------------------------------------
|
||||
function OnMachiningEnd()
|
||||
--EmtOutput( ';Mach End')
|
||||
local bMoveBothClampsOnSplit = false
|
||||
if #EMT.MDCHAR > 0 then
|
||||
-- Emissione split
|
||||
if EMT.AUXTYPE == 'S' then
|
||||
@@ -515,6 +516,7 @@ function OnMachiningEnd()
|
||||
EMT.MDCHAR[1].MovType = nil
|
||||
EMT.MDCHAR[1].Y2 = ParkV2 - EMT.LT + EMT.Y2DELTA
|
||||
EMT.MDCHAR[1].V2 = ParkV2
|
||||
bMoveBothClampsOnSplit = true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -558,8 +560,13 @@ function OnMachiningEnd()
|
||||
end
|
||||
if #EMT.MDCHAR > 0 then
|
||||
if EMT.AUXTYPE == 'S' then
|
||||
EmitMoveStartChars( 1)
|
||||
EmitMoveWaitChars( 1)
|
||||
if bMoveBothClampsOnSplit then
|
||||
EmitMoveStartChars( 3)
|
||||
EmitMoveWaitChars( 3)
|
||||
else
|
||||
EmitMoveStartChars( 1)
|
||||
EmitMoveWaitChars( 1)
|
||||
end
|
||||
elseif EMT.AUXTYPE == 'U' then
|
||||
local nMoveType = EgtIf( EMT.CHY_ON, 3, 2)
|
||||
EmitMoveStartChars( nMoveType)
|
||||
@@ -586,7 +593,7 @@ function OnMachiningEnd()
|
||||
EmtOutput( sOut)
|
||||
end
|
||||
elseif not EMT.PREROT then
|
||||
EmtOutput( '(M77)')
|
||||
EmtOutput( 'M77')
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -982,10 +989,10 @@ function OnRapid()
|
||||
end
|
||||
MyAdjustLinearAxes()
|
||||
EmtAdjustRotaryAxes()
|
||||
-- se ultimo rapido e motosega, si va in home
|
||||
|
||||
EmitMoveDataHead( nHSet, { X=EMT.L2, Z=EMT.L3, C=EMT.R1, B=EMT.R2})
|
||||
-- su ultimo rapido in uscita, comandi di attesa movimenti
|
||||
if bLastRise or bStdRise then
|
||||
if bLastRise or bUniqueRise or bStdRise then
|
||||
EmitMoveStartHead( nHSet)
|
||||
-- se lavorazione in doppio
|
||||
if nHSet == 1 and EMT.DOU_TYPE == 2 then
|
||||
@@ -1150,14 +1157,15 @@ function OnRapid()
|
||||
-- trasformo i punti nel piano
|
||||
MyAdjustLinearAxes()
|
||||
EmtAdjustRotaryAxes()
|
||||
-- annullo precedenti per forzare scrittura
|
||||
EMT.L1p = nil
|
||||
EMT.L2p = nil
|
||||
EMT.L3p = nil
|
||||
local sDouFlag = EgtIf( EMT.DOU_TYPE, ' EE1', '')
|
||||
EmtOutput( 'G142'..EmtGetAxis('L1')..EmtGetAxis('L2')..EmtGetAxis('L3')..EMT.IPLGLSTR..EgtIf( nHSet~=2, ' EU1', ' EU2')..sDouFlag..' EF'..GetFmaxClamp())
|
||||
|
||||
EMT.PLANEACTIVE = true
|
||||
|
||||
-- EMT.L1p = nil
|
||||
-- EMT.L2p = nil
|
||||
-- EMT.L3p = nil
|
||||
-- annullo precedenti per forzare scrittura
|
||||
EMT.R1p = nil
|
||||
EMT.R2p = nil
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@
|
||||
require( 'EmtGenerator')
|
||||
EgtEnableDebug( false)
|
||||
|
||||
PP_VER = '3.1e1_NL7'
|
||||
PP_VER = '3.1e1_NL9_DEV1'
|
||||
PP_NVER = '3.1.3.2'
|
||||
MIN_MACH_VER = '2.5k1'
|
||||
MACH_NAME = EgtGetCurrMachineName()
|
||||
|
||||
Reference in New Issue
Block a user