Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d824b2e542 | |||
| 0db00057ae | |||
| dbd47f3ed5 | |||
| 2db59dc5d9 |
@@ -6,6 +6,7 @@
|
||||
1=Drill
|
||||
2=Pocket
|
||||
3=AngleDrill
|
||||
4=Predrill
|
||||
|
||||
[Milling]
|
||||
1=Prof
|
||||
|
||||
@@ -41,13 +41,17 @@ function OnProgramStart()
|
||||
local BtlInfoId = EgtGetFirstNameInGroup( GDB_ID.ROOT, 'BtlInfo') or EgtGetCurrMachGroup() or GDB_ID.NULL
|
||||
local nPatt = EgtGetInfo( BtlInfoId, 'PATTID', 'i') or 40
|
||||
EmtOutput( '%'..EgtNumToString( nPatt, 0)..'.0')
|
||||
|
||||
-- aggiungo prefisso per commentae commenti iniziali se la macchina è utilizzata per fare i test
|
||||
local sPrefixCommentLine = '' ; if IS_TEST_MACHINE then sPrefixCommentLine = '//' end
|
||||
|
||||
if EMT.INFO then
|
||||
EmtOutput( '('..EMT.INFO..')')
|
||||
EmtOutput( sPrefixCommentLine..'('..EMT.INFO..')')
|
||||
else
|
||||
EmtOutput( '(Program Start)')
|
||||
end
|
||||
EmtOutput( '('.. CSP_INFO..')')
|
||||
EmtOutput( '('.. MACHINE_INFO..')\n')
|
||||
EmtOutput( sPrefixCommentLine..'('.. CSP_INFO..')')
|
||||
EmtOutput( sPrefixCommentLine..'('.. MACHINE_INFO..')\n')
|
||||
-- Se modalità test, aggiungo linee per muovere tappeto e alzare la testa (in automatico viene fatto dal main residente)
|
||||
if TEST_USE then
|
||||
EmtOutput( 'M28')
|
||||
@@ -615,6 +619,7 @@ function OnRapid()
|
||||
if not EMT.ZMAX and #EMT.AUXSTR > 0 then
|
||||
EmitZmax()
|
||||
EMT.ZMAX = true
|
||||
bHeadFirst = false
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -41,13 +41,17 @@ function OnProgramStart()
|
||||
local BtlInfoId = EgtGetFirstNameInGroup( GDB_ID.ROOT, 'BtlInfo') or EgtGetCurrMachGroup() or GDB_ID.NULL
|
||||
local nPatt = EgtGetInfo( BtlInfoId, 'PATTID', 'i') or 40
|
||||
EmtOutput( '%'..EgtNumToString( nPatt, 0)..'.0')
|
||||
|
||||
-- aggiungo prefisso per commentae commenti iniziali se la macchina è utilizzata per fare i test
|
||||
local sPrefixCommentLine = '' ; if IS_TEST_MACHINE then sPrefixCommentLine = '//' end
|
||||
|
||||
if EMT.INFO then
|
||||
EmtOutput( '('..EMT.INFO..')')
|
||||
EmtOutput( sPrefixCommentLine..'('..EMT.INFO..')')
|
||||
else
|
||||
EmtOutput( '(Program Start)')
|
||||
end
|
||||
EmtOutput( '('.. CSP_INFO..')')
|
||||
EmtOutput( '('.. MACHINE_INFO..')\n')
|
||||
EmtOutput( sPrefixCommentLine..'('.. CSP_INFO..')')
|
||||
EmtOutput( sPrefixCommentLine..'('.. MACHINE_INFO..')\n')
|
||||
-- Se modalità test, aggiungo linee per muovere tappeto e alzare la testa (in automatico viene fatto dal main residente)
|
||||
if TEST_USE then
|
||||
EmtOutput( 'M28')
|
||||
@@ -644,6 +648,7 @@ function OnRapid()
|
||||
EmitZmax( EMT.TOOL ~= EMT.PREVTOOL)
|
||||
EMT.ZMAX = true
|
||||
EMT.PREVTOOL = EMT.TOOL
|
||||
bHeadFirst = false
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -38,14 +38,18 @@ end
|
||||
|
||||
---------------------------------------------------------------------
|
||||
function OnProgramStart()
|
||||
|
||||
-- aggiungo prefisso per commentae commenti iniziali se la macchina è utilizzata per fare i test
|
||||
local sPrefixCommentLine = '' ; if IS_TEST_MACHINE then sPrefixCommentLine = '//' end
|
||||
|
||||
-- Intestazioni
|
||||
if EMT.INFO then
|
||||
ParkLine( '('..EMT.INFO..')')
|
||||
ParkLine( sPrefixCommentLine..'('..EMT.INFO..')')
|
||||
else
|
||||
ParkLine( '(Program Start)')
|
||||
end
|
||||
ParkLine( '('.. CSP_INFO..')')
|
||||
ParkLine( '('.. MACHINE_INFO..')')
|
||||
ParkLine( sPrefixCommentLine..'('.. CSP_INFO..')')
|
||||
ParkLine( sPrefixCommentLine..'('.. MACHINE_INFO..')')
|
||||
|
||||
-- Se modalità test, aggiungo linee per muovere tappeto e alzare la testa (in automatico viene fatto dal main residente)
|
||||
if TEST_USE then
|
||||
@@ -636,6 +640,7 @@ function OnRapid()
|
||||
if not ( EMT.LOAD or EMT.RELOAD) then
|
||||
if not EMT.ZMAX and #EMT.AUXSTR > 0 then
|
||||
EmitZmax()
|
||||
bHeadFirst = false
|
||||
end
|
||||
end
|
||||
-- primo posizionamento
|
||||
|
||||
+9
-5
@@ -1,4 +1,4 @@
|
||||
-- Processore macchina Essetre-FAST by EgalWare s.r.l. 2024/02/23
|
||||
-- Processore macchina Essetre-FAST by EgalWare s.r.l. 2024/03/09
|
||||
|
||||
-- Intestazioni
|
||||
require( 'EmtGenerator')
|
||||
@@ -923,10 +923,14 @@ function ExecUnloading()
|
||||
EgtMove( nLayId, vtMove, GDB_RT.GLOB)
|
||||
EgtSetLevel( vMillId, GDB_LV.USER)
|
||||
-- aggiungo gli spigoli
|
||||
local nFirstId, nCount = EgtVolZmapGetEdges( vMillId, nLayId)
|
||||
if nFirstId then
|
||||
for nId = nFirstId, nFirstId + nCount - 1 do
|
||||
EgtSetColor( nId, Color3d( 96, 96, 96))
|
||||
if EgtVolZmapSetShowEdges then
|
||||
EgtVolZmapSetShowEdges( vMillId, true)
|
||||
else
|
||||
local nFirstId, nCount = EgtVolZmapGetEdges( vMillId, nLayId)
|
||||
if nFirstId then
|
||||
for nId = nFirstId, nFirstId + nCount - 1 do
|
||||
EgtSetColor( nId, Color3d( 96, 96, 96))
|
||||
end
|
||||
end
|
||||
end
|
||||
-- rilascio Vmill
|
||||
|
||||
+8
-3
@@ -1,4 +1,4 @@
|
||||
-- Special Operations macchina Essetre-FAST by EgalWare s.r.l. 2024/02/23
|
||||
-- Special Operations macchina Essetre-FAST by EgalWare s.r.l. 2024/03/28
|
||||
|
||||
-- Intestazioni
|
||||
require( 'EmtGenerator')
|
||||
@@ -796,6 +796,7 @@ function SpecialCalcMachiningEncumbrance( nMchId, bPreCut)
|
||||
local bAngTrasm = ( sHead == 'H5' or sHead == 'H6')
|
||||
local dTLen = EgtTdbGetCurrToolParam( MCH_TP.LEN)
|
||||
local dTDiam = EgtTdbGetCurrToolParam( MCH_TP.DIAM)
|
||||
local dThLen = EgtTdbGetCurrToolThLength()
|
||||
-- Se sega a catena, devo correggere il versore Aux per farlo coincidere con la direzione del braccio C
|
||||
if bChain then
|
||||
if abs( vAxes[6] or 0) < 1 then
|
||||
@@ -811,7 +812,7 @@ function SpecialCalcMachiningEncumbrance( nMchId, bPreCut)
|
||||
if nExit == 2 then vtAux = -vtAux end
|
||||
end
|
||||
-- Calcolo limiti derivanti dalla lavorazione
|
||||
local dDistFront, dDistBack = SpecCalcEncumbrance( vtTool, vtAux, ptMin, ptMax, bSaw, bChain, dTLen, dTDiam)
|
||||
local dDistFront, dDistBack = SpecCalcEncumbrance( vtTool, vtAux, ptMin, ptMax, bSaw, bChain, dTLen, dTDiam, dThLen)
|
||||
return dDistFront, dDistBack
|
||||
end
|
||||
|
||||
@@ -870,7 +871,7 @@ function GetFinalCutPmax( nMchId)
|
||||
end
|
||||
|
||||
---------------------------------------------------------------------
|
||||
function SpecCalcEncumbrance( vtTool, vtArm, ptMin, ptMax, bSaw, bChain, dTLen, dTDiam)
|
||||
function SpecCalcEncumbrance( vtTool, vtArm, ptMin, ptMax, bSaw, bChain, dTLen, dTDiam, dThLen)
|
||||
-- Quota in Z dal punto di inclinazione dei carrelli
|
||||
local dCompZ = sqrt( 1 - vtTool:getZ() * vtTool:getZ())
|
||||
local dZup = ptMin:getZ() - 0.5 * dCompZ * dTDiam - ( EMC.ZMIN + 130)
|
||||
@@ -1055,6 +1056,10 @@ function SpecCalcEncumbrance( vtTool, vtArm, ptMin, ptMax, bSaw, bChain, dTLen,
|
||||
(( vtTool:getY() > 0 and ptHeadMin:getY() > 80) or ( vtTool:getY() < 0 and ptHeadMax:getY() < -EMC.SB - 80)) then
|
||||
dHeadFront = 130
|
||||
end
|
||||
-- per forature di coda abbastanza lontane dai bordi pezzo in Y
|
||||
if BD.ENABLE_TOOL_BETWEEN_VICES and not bChain and vtTool:getX() < -0.999 and ptHeadMax:getY() + dTDiam / 2 < -15 and ptHeadMin:getY() - dTDiam / 2 > -EMC.SB + 15 then
|
||||
dHeadFront = - ( dTLen - dThLen - 15)
|
||||
end
|
||||
-- per interferenza con triangolo di rinforzo sulla pinza V
|
||||
if ( vtTool:getZ() < 0.25 and vtTool:getX() > -0.10 and vtTool:getY() > 0 and vtArm:getX() > 0.707 and not BD.RIGHT_LOAD) or
|
||||
( vtTool:getZ() < 0.25 and vtTool:getX() > -0.10 and vtTool:getY() < 0 and vtArm:getX() > 0.707 and BD.RIGHT_LOAD) then
|
||||
|
||||
+28
-7
@@ -18,12 +18,14 @@
|
||||
-- 2024/02/29 ver 2.6c4 Allineamento con common ver. 2.6c4
|
||||
-- 2024/03/04 ver 2.6c5 Modificato log con nome macchina
|
||||
-- Allineamento con common ver. 2.6c6
|
||||
|
||||
-- 2024/03/12 ver 2.6c6 Allineamento con common ver. 2.6c7
|
||||
-- Migliorie alla geometria macchina e suo caricamento
|
||||
-- 2024/03/28 ver 2.6d1 Allineamento con common ver. 2.6c8
|
||||
|
||||
require( 'EmtGenerator')
|
||||
EgtEnableDebug( false)
|
||||
|
||||
PP_VER = '2.6c5'
|
||||
PP_VER = '2.6d1'
|
||||
MIN_MACH_VER = '2.5k1'
|
||||
MACH_NAME = 'Essetre-FASTrl'
|
||||
|
||||
@@ -36,7 +38,7 @@ EgtAddToPackagePath( sMachDir .. '\\?.lua')
|
||||
local BD = require( 'BeamData')
|
||||
local INFO_STD_PP = require( 'Version')
|
||||
|
||||
-- prendo la versione kernel minima necessaria pi� nuova tra macchina e script comuni
|
||||
-- prendo la versione kernel minima necessaria piu' nuova tra macchina e script comuni
|
||||
if INFO_STD_PP.MIN_MACH_VER_PP_COMMON > MIN_MACH_VER then
|
||||
MIN_MACH_VER = INFO_STD_PP.MIN_MACH_VER_PP_COMMON
|
||||
end
|
||||
@@ -84,6 +86,7 @@ SpecialBH = false
|
||||
MaxUnloadLen = 0
|
||||
BeamHeightForFixRot = 9999 -- per abilitare assegnare 500
|
||||
CoeffVM = 0.5
|
||||
NewTopC = true
|
||||
SafeXRotAxes = -150
|
||||
|
||||
-- leggo e aggiorno con parametri da BeamData
|
||||
@@ -123,14 +126,14 @@ if EgtExistsFile( sData) then
|
||||
if Machine.Offsets.YSCARICO then UnloadT = - Machine.Offsets.YSCARICO end
|
||||
if Machine.Offsets.PIVOTFRESA then MillOffs = - Machine.Offsets.PIVOTFRESA end
|
||||
if Machine.Offsets.PIVOTLAMA then SawOffs = - Machine.Offsets.PIVOTLAMA end
|
||||
if Machine.Offsets.OFFSETBLAMA then SawBOffs= Machine.Offsets.OFFSETBLAMA end
|
||||
if Machine.Offsets.OFFSETCLAMA then SawCOffs= Machine.Offsets.OFFSETCLAMA end
|
||||
if Machine.Offsets.OFFSETBLAMA then SawBOffs = Machine.Offsets.OFFSETBLAMA end
|
||||
if Machine.Offsets.OFFSETCLAMA then SawCOffs = Machine.Offsets.OFFSETCLAMA end
|
||||
if Machine.Offsets.OFFSETZ_RINV_1 then AngTr1Offs = Machine.Offsets.OFFSETZ_RINV_1 - EgtIf( NumericalControl == 'TPA', MillOffs, 0) end
|
||||
AngTr1Len = Machine.Offsets.OFFSETX_RINV_1 or AngTr1Len
|
||||
--if Machine.Offsets.OFFSETZ_RINV_2 then AngTr2Offs = Machine.Offsets.OFFSETZ_RINV_2 - EgtIf( NumericalControl == 'TPA', MillOffs, 0) end
|
||||
--AngTr2Len = Machine.Offsets.OFFSETX_RINV_2 or AngTr2Len
|
||||
TurnerOffs = Machine.Offsets.OFFSETRIB or TurnerOffs
|
||||
if Machine.Offsets.OFFSETX then DeltaTabY = -Machine.Offsets.OFFSETX end
|
||||
if Machine.Offsets.OFFSETX then DeltaTabY = - Machine.Offsets.OFFSETX end
|
||||
if Machine.Offsets.OFFSETZ then DeltaTabZ = Machine.Offsets.OFFSETZ + EgtIf( NumericalControl == 'TPA', MillOffs, 0) end
|
||||
if Machine.Offsets.SECSUP then SecondSupport = Machine.Offsets.SECSUP end
|
||||
if Machine.Offsets.BLOCKHAUS then SpecialBH = ( Machine.Offsets.BLOCKHAUS == 1) end
|
||||
@@ -177,7 +180,7 @@ EmtAxis {
|
||||
Home = MaxZ,
|
||||
Geo = 'Z_AXIS/GEO',
|
||||
Aux = {'Z_AXIS/SOLID', 'Z_AXIS/COLLISION'}}
|
||||
EmtAxis {
|
||||
local CId = EmtAxis {
|
||||
Name = 'C',
|
||||
Parent = 'Z',
|
||||
Type = MCH_AT.ROTARY,
|
||||
@@ -187,6 +190,24 @@ EmtAxis {
|
||||
Home = 0,
|
||||
Geo = 'C_AXIS/GEO',
|
||||
Aux = {'C_AXIS/SOLID', 'C_AXIS/COLLISION'}}
|
||||
if NewTopC then
|
||||
local vtMove = Vector3d( 65,0,0)
|
||||
local SolidArmId = EgtGetFirstNameInGroup( EgtGetFirstNameInGroup( CId, 'SOLID'), 'ARM')
|
||||
if EgtSurfTmMoveFacet then
|
||||
EgtSurfTmMoveFacet( SolidArmId, 11, vtMove, GDB_RT.GLOB)
|
||||
else
|
||||
EgtSurfTmMoveVertex( SolidArmId, 23, EgtSurfTmGetVertex( SolidArmId, 23, GDB_RT.GLOB) + vtMove, GDB_RT.GLOB)
|
||||
EgtSurfTmMoveVertex( SolidArmId, 25, EgtSurfTmGetVertex( SolidArmId, 25, GDB_RT.GLOB) + vtMove, GDB_RT.GLOB)
|
||||
EgtSurfTmMoveVertex( SolidArmId, 35, EgtSurfTmGetVertex( SolidArmId, 35, GDB_RT.GLOB) + vtMove, GDB_RT.GLOB)
|
||||
EgtSurfTmMoveVertex( SolidArmId, 36, EgtSurfTmGetVertex( SolidArmId, 36, GDB_RT.GLOB) + vtMove, GDB_RT.GLOB)
|
||||
end
|
||||
local CollTopId = EgtGetFirstNameInGroup( EgtGetFirstNameInGroup( CId, 'COLLISION'), 'TOP')
|
||||
EgtMove( CollTopId, vtMove, GDB_RT.GLOB)
|
||||
EgtSetName( CollTopId, 'BOX')
|
||||
else
|
||||
local CollTopId = EgtGetFirstNameInGroup( EgtGetFirstNameInGroup( CId, 'COLLISION'), 'TOP')
|
||||
EgtSetName( CollTopId, 'BOX')
|
||||
end
|
||||
EmtAxis {
|
||||
Name = 'B',
|
||||
Parent = 'C',
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,13 @@
|
||||
==== Common_FAST Update Log ====
|
||||
|
||||
Versione 2.6c8 (28/03/2024)
|
||||
- (MLSE) Possibilità di lavorazione da X- tra le pinze, se abilitata da flag (User.ENABLE_TOOL_BETWEEN_VICES == 1).
|
||||
- (MLDE-GEN) Aggiunto parametro 'IS_TEST_MACHINE' FACOLTATIVO. Se non esiste o 'false' è macchina standard, se 'true' è una macchina utilizzata per i test Egalware interni
|
||||
|
||||
Versione 2.6c7 (12/03/2024)
|
||||
- (SIM) Miglioramento visualizzazione spigoli VMILL alla fine della simulazione. Funzione: EgtVolZmapSetShowEdges. N.B.= serve CAM5 2.6c2 NON OBBLIGATORIO
|
||||
- (GEN) Corretto problema di movimento pinze assieme a discesa asse Z (Ticket #1710)
|
||||
|
||||
Versione 2.6c6 (04/03/2024)
|
||||
- (MLDE-GEN) Aggiunta variabile 'MACH_NAME' in MLDE con nome macchina
|
||||
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
-- Version.lua by EgalWare s.r.l. 2024/02/23
|
||||
-- Version.lua by EgalWare s.r.l. 2024/03/28
|
||||
-- Gestione della versione dei file comuni post-processori macchine FAST e FASTrl di Essetre
|
||||
|
||||
local InfoCommon_STD_PP = {
|
||||
NAME = 'Common-FAST', -- nome script PP standard
|
||||
VERSION = '2.6c6', -- versione script
|
||||
VERSION = '2.6c8', -- versione script
|
||||
MIN_MACH_VER_PP_COMMON = '2.5k1' -- versione minima kernel
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user