Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5318d4d686 |
+4
-12
@@ -537,14 +537,6 @@ function OnSimulToolSelect( dPosA)
|
||||
end
|
||||
end
|
||||
|
||||
-- se ho due teste, verifico che l'altra sia dalla parte opposta
|
||||
--if EgtGetHeadId( 'H21') then
|
||||
-- if nSetHead == 1 then
|
||||
-- EgtSetAxisPos( 'X2', MinX2)
|
||||
-- else
|
||||
-- EgtSetAxisPos( 'X1', MaxX1)
|
||||
-- end
|
||||
--end
|
||||
-- se sega a catena, imposto subito angolo scelto per asse virtuale A
|
||||
if HeadIsChainSaw( EMT.HEAD) then
|
||||
-- apro le paratie
|
||||
@@ -624,8 +616,8 @@ function OnSimulToolDeselect( dPrevA)
|
||||
-- nascondo l'utensile sulla testa
|
||||
EgtSetMode( EgtGetHeadId( EMT.PREVHEAD_H1 or '') or GDB_ID.NULL, GDB_MD.HIDDEN)
|
||||
-- se non è chiamata per cambio angolo di presa della sega a catena
|
||||
if not dPrevA then
|
||||
local sTool, sHead, sTcPos = FindNextToolOnHeadSet( 1, false)
|
||||
local sTool, sHead, sTcPos = FindNextToolOnHeadSet( 1, false)
|
||||
if not dPrevA or not sTool then
|
||||
-- imposto correttamente i dati di testa
|
||||
local OrigEMC = EMC
|
||||
EMC = { HEAD = sHead, TOOL = sTool, TCPOS = sTcPos, TOTDIAM = 0}
|
||||
@@ -651,13 +643,13 @@ function OnSimulToolDeselect( dPrevA)
|
||||
-- nascondo l'utensile sulla testa
|
||||
EgtSetMode( EgtGetHeadId( EMT.PREVHEAD_H2 or '') or GDB_ID.NULL, GDB_MD.HIDDEN)
|
||||
-- se non è chiamata per cambio angolo di presa della sega a catena
|
||||
if not dPrevA then
|
||||
local sTool, sHead, sTcPos = FindNextToolOnHeadSet( 2, false)
|
||||
if not dPrevA or not sTool then
|
||||
-- cambio utensile
|
||||
EgtSetAxisPos( 'C2', ParkC2)
|
||||
EgtSetAxisPos( 'B2', ParkB2)
|
||||
EgtSetAxisPos( 'Z2', MaxZ2)
|
||||
SimulMoveAxis( 'X2', ParkX2, MCH_SIM_STEP.RAPID)
|
||||
local sTool, sHead, sTcPos = FindNextToolOnHeadSet( 2, false)
|
||||
local OrigEMC = EMC
|
||||
EMC = { HEAD = sHead or 'H21', TOOL = sTool, TCPOS = sTcPos, TOTDIAM = 0}
|
||||
OnSetHead()
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@
|
||||
require( 'EmtGenerator')
|
||||
EgtEnableDebug( false)
|
||||
|
||||
PP_VER = '3.1f1_RC8'
|
||||
PP_VER = '3.1f1_RC9'
|
||||
PP_NVER = '3.1.6.1'
|
||||
MIN_MACH_VER = '2.7a1'
|
||||
MACH_NAME = EgtGetCurrMachineName()
|
||||
|
||||
Reference in New Issue
Block a user