Aggiunta chiamata precarico

This commit is contained in:
andrea.villa
2026-03-09 10:06:15 +01:00
parent 043478e7b9
commit f3c41b1b80
2 changed files with 9 additions and 6 deletions
+8 -5
View File
@@ -714,6 +714,14 @@ function OnRapid()
EMT.REFLOC = 0
EMT.MCHFIRST = false
EMT.ZMAX = false
-- lancio precarico
-- se taglio di coda senza residuo da scaricare, emetto M175 per accelerare il carico della barra successiva
if EMT.MCHUSERNOTES and EMT.MCHUSERNOTES:find( 'Cut') then
sOut = '_POSIZ_T(4,,,,,,,,,)' -- Lancio macro per carico anticipato: i valori sono presi dal plc (passati dall'interfaccia)
MyEmtOutput( sOut)
end
-- se alto in Z (non serve l'avvicinamento finale)
if EMT.FLAG == 2 then
-- aggiorno valori come precedenti
@@ -725,11 +733,6 @@ function OnRapid()
MyRestoreAxes()
end
-- lancio pre-carico
-- se taglio di coda senza residuo da scaricare, emetto M175 per accelerare il carico della barra successiva
if EMT.MCHUSERNOTES and EMT.MCHUSERNOTES:find( 'Cut', 1, true) then
-- TODO DA FARE!!! 'POSIZ_T' funzione n. 4
end
end
-- se standard
if EMT.FLAG == 0 or EMT.FLAG == 1 or EMT.FLAG == 2 then
+1 -1
View File
@@ -9,7 +9,7 @@
require( 'EmtGenerator')
EgtEnableDebug( false)
PP_VER = '3.1c1_DEV3'
PP_VER = '3.1c1_DEV4'
MIN_MACH_VER = '2.7l2'
EgtOutLog ( '** Saomad-KAIROS '..PP_VER..' (MinMach '.. MIN_MACH_VER ..') **', 1)