Compare commits
2 Commits
3.1f2
...
2.7f1_DEV9
| Author | SHA1 | Date | |
|---|---|---|---|
| 00297eca64 | |||
| c0f489b339 |
@@ -840,11 +840,11 @@ function OnRapid()
|
|||||||
EMT.L3 = EMT.L3s
|
EMT.L3 = EMT.L3s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
local Speed = EMT.S * EgtIf( EMT.HEAD ~= 'H12' and EMT.HEAD ~= 'H22', 1, 1.65)
|
||||||
-- se prima lavorazione
|
-- se prima lavorazione
|
||||||
if EMT.LOAD then
|
if EMT.LOAD then
|
||||||
EMT.V2POS = ParkV2
|
EMT.V2POS = ParkV2
|
||||||
-- primo posizionamento
|
-- primo posizionamento
|
||||||
local Speed = EMT.S * EgtIf( EMT.HEAD ~= 'H12' and EMT.HEAD ~= 'H22', 1, 1.65)
|
|
||||||
local bOnlyCharY = true
|
local bOnlyCharY = true
|
||||||
-- eventuale Movimento Pinze
|
-- eventuale Movimento Pinze
|
||||||
for i = 1, #EMT.AUXCMD do
|
for i = 1, #EMT.AUXCMD do
|
||||||
@@ -1254,7 +1254,6 @@ function OnRapid()
|
|||||||
local HomeC1 = EgtGetAxisHomePos( 'C1')
|
local HomeC1 = EgtGetAxisHomePos( 'C1')
|
||||||
local HomeB1 = EgtGetAxisHomePos( 'B1')
|
local HomeB1 = EgtGetAxisHomePos( 'B1')
|
||||||
local dTRad, dTLen = GetToolRadLen()
|
local dTRad, dTLen = GetToolRadLen()
|
||||||
local Speed = EMT.S * EgtIf( EMT.HEAD ~= 'H12' and EMT.HEAD ~= 'H22', 1, 1.65)
|
|
||||||
if EMT.ZMAX or ( EMT.FLAG == 2 and EMT.FLAG2 == 1) then
|
if EMT.ZMAX or ( EMT.FLAG == 2 and EMT.FLAG2 == 1) then
|
||||||
-- se fresa o lama
|
-- se fresa o lama
|
||||||
if not HeadIsChainSaw( EMT.HEAD) then
|
if not HeadIsChainSaw( EMT.HEAD) then
|
||||||
@@ -1353,7 +1352,6 @@ function OnRapid()
|
|||||||
local HomeC1 = EgtGetAxisHomePos( 'C1')
|
local HomeC1 = EgtGetAxisHomePos( 'C1')
|
||||||
local HomeB1 = EgtGetAxisHomePos( 'B1')
|
local HomeB1 = EgtGetAxisHomePos( 'B1')
|
||||||
local dTRad, dTLen = GetToolRadLen()
|
local dTRad, dTLen = GetToolRadLen()
|
||||||
local Speed = EMT.S * EgtIf( EMT.HEAD ~= 'H12' and EMT.HEAD ~= 'H22', 1, 1.65)
|
|
||||||
if EMT.ZMAX or ( EMT.FLAG == 2 and EMT.FLAG2 == 1) then
|
if EMT.ZMAX or ( EMT.FLAG == 2 and EMT.FLAG2 == 1) then
|
||||||
-- se fresa o lama
|
-- se fresa o lama
|
||||||
if not HeadIsChainSaw( EMT.HEAD) then
|
if not HeadIsChainSaw( EMT.HEAD) then
|
||||||
@@ -1417,7 +1415,6 @@ function OnRapid()
|
|||||||
local HomeC2 = EgtGetAxisHomePos( 'C2')
|
local HomeC2 = EgtGetAxisHomePos( 'C2')
|
||||||
local HomeB2 = EgtGetAxisHomePos( 'B2')
|
local HomeB2 = EgtGetAxisHomePos( 'B2')
|
||||||
local dTRad, dTLen = GetToolRadLen()
|
local dTRad, dTLen = GetToolRadLen()
|
||||||
local Speed = EMT.S * EgtIf( EMT.HEAD ~= 'H12' and EMT.HEAD ~= 'H22', 1, 1.65)
|
|
||||||
if EMT.ZMAX or ( EMT.FLAG == 2 and EMT.FLAG2 == 1) then
|
if EMT.ZMAX or ( EMT.FLAG == 2 and EMT.FLAG2 == 1) then
|
||||||
-- se fresa o lama
|
-- se fresa o lama
|
||||||
if not HeadIsChainSaw( EMT.HEAD) then
|
if not HeadIsChainSaw( EMT.HEAD) then
|
||||||
@@ -1566,7 +1563,7 @@ function OnRapid()
|
|||||||
elseif AreSameVectorApprox( vtE, Z_AX()) then
|
elseif AreSameVectorApprox( vtE, Z_AX()) then
|
||||||
ProbePosX = EMT.L2
|
ProbePosX = EMT.L2
|
||||||
end
|
end
|
||||||
EmitMoveDataHead( GetHeadSet( EMT.HEAD), { X=ProbePosX, Z=ProbePosZ, B=EMT.R2, C=EMT.R1})
|
EmitMoveDataHead( GetHeadSet( EMT.HEAD), { X=ProbePosX, Z=ProbePosZ, B=EMT.R2, C=EMT.R1, S=Speed})
|
||||||
EmitMoveStartHead( GetHeadSet( EMT.HEAD))
|
EmitMoveStartHead( GetHeadSet( EMT.HEAD))
|
||||||
EmitMoveWaitHead( GetHeadSet( EMT.HEAD))
|
EmitMoveWaitHead( GetHeadSet( EMT.HEAD))
|
||||||
end
|
end
|
||||||
|
|||||||
+1
-1
@@ -44,7 +44,7 @@
|
|||||||
require( 'EmtGenerator')
|
require( 'EmtGenerator')
|
||||||
EgtEnableDebug( false)
|
EgtEnableDebug( false)
|
||||||
|
|
||||||
PP_VER = '2.7f1_DEV7'
|
PP_VER = '2.7f1_DEV9'
|
||||||
PP_NVER = '2.7.6.1'
|
PP_NVER = '2.7.6.1'
|
||||||
MIN_MACH_VER = '2.5k1'
|
MIN_MACH_VER = '2.5k1'
|
||||||
MACH_NAME = string.match( EgtGetCurrMachineDir(), "[^\\]+$") -- si ricava il nome della macchina dal direttorio
|
MACH_NAME = string.match( EgtGetCurrMachineDir(), "[^\\]+$") -- si ricava il nome della macchina dal direttorio
|
||||||
|
|||||||
Reference in New Issue
Block a user