From 1c047b189070e7ef1dc98f6ee8be974f4fed1e6c Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Wed, 11 Jun 2025 12:37:59 +0200 Subject: [PATCH] Aggiunto testa in TC e varie info --- Essetre-PFrl.ini | 4 ++++ MachNotes.ini | 3 +++ Scripts/SetUp.lua | 12 ++++++++++++ 3 files changed, 19 insertions(+) diff --git a/Essetre-PFrl.ini b/Essetre-PFrl.ini index 28343f5..a549455 100644 --- a/Essetre-PFrl.ini +++ b/Essetre-PFrl.ini @@ -143,10 +143,14 @@ H11=6608 H12=6615 ; Chainsaw H13=6616 +; Probe +H19=6618 ; Second 5 axis head H21=6620 ; Second 5 axis saw H22=6623 +; Probe +H29=6618 [SetUp] Default=Standard diff --git a/MachNotes.ini b/MachNotes.ini index 24d50c0..bab20f8 100644 --- a/MachNotes.ini +++ b/MachNotes.ini @@ -2,6 +2,9 @@ ;Index = Type, Description, Default Value ; Type : b=boolean, d=double, l=lenght, s=string +[Probing] +0=s,Type,Head + [Drilling] [Sawing] diff --git a/Scripts/SetUp.lua b/Scripts/SetUp.lua index 37005d6..b8d691e 100644 --- a/Scripts/SetUp.lua +++ b/Scripts/SetUp.lua @@ -30,6 +30,8 @@ local GS = {} -- Configurazione posizioni (con o senza TC2) local PositionTable = {} local SecondSaw = ( EgtGetHeadId( 'H22') ~= nil) +local ProbeFirstHead = ( EgtGetHeadId( 'H19') ~= nil) +local ProbeSecondHead = ( EgtGetHeadId( 'H29') ~= nil) if SecondSaw then PositionTable = {{Pos = "Pos1", TcPos = "T1", Head = "H12", Group = "G1"}, {Pos = "Pos2", TcPos = "T3", Head = "H11", Group = "G1"}, @@ -78,6 +80,16 @@ else table.insert( PositionTable, {Pos = "Pos21", TcPos = "T201", Head = "H13", Group = "G2"}) end end +-- aggiunta tastatori +if ProbeFirstHead then + local sIndex = EgtNumToString( #PositionTable + 1) + table.insert( PositionTable, {Pos = "Pos"..sIndex, TcPos = "T501", Head = "H19", Group = "G4"}) +end +if ProbeSecondHead then + local sIndex = EgtNumToString( #PositionTable + 1) + table.insert( PositionTable, {Pos = "Pos"..sIndex, TcPos = "T502", Head = "H29", Group = "G4"}) +end + local UsePositionHead = true local function IsInGeomSet( ToolHead, PosHead)