Compare commits

...

3 Commits

Author SHA1 Message Date
andrea.villa 996185e332 Sistemata emissione comandi finali 2026-04-22 08:26:50 +02:00
daniele.nicoli ec0e8b479a Aggiunto start e wait del movimento pinze se EMT.LASTOISBRAKE = true 2026-04-22 08:19:00 +02:00
andrea.villa c06e5c334e Corretta scrittura attivazione freno 2026-04-01 17:19:27 +02:00
2 changed files with 13 additions and 5 deletions
+12 -4
View File
@@ -311,6 +311,7 @@ function OnDispositionEnd()
end
end
if #EMT.MDCHAR > 0 then
EMT.LASTOISBRAKE = nil
local nMoveType = EgtIf( EMT.CHY_ON, 3, 2)
EmitMoveStartChars( nMoveType)
-- se dopo c'è scarico spezzone devo mettere attesa termine esecuzione
@@ -319,6 +320,7 @@ function OnDispositionEnd()
else
EmitMoveWaitChars( nMoveType, true)
end
-- emissione conclusione pezzo precedente (se non in modalità test)
if not TEST_USE and EMT.PRODID then
local sEnd= 'M113 P1='..tostring( EMT.PRODID)..' P2='..tostring( EMT.PATTID)..' P3='..tostring( EMT.CUTID)..' P4=2'
@@ -3136,13 +3138,19 @@ end
---------------------------------------------------------------------
-- Emette i movimenti di esecuzione movimenti trave e alzata o discesa del piano ferma pezzo
function EmitStopBeam( MoData)
EmitMoveStartChars(2)
EmitMoveWaitChars(2)
if MoData.StopBeamStat then
local sUnloadSide = EgtIf( MoData.Load, 'P1=', 'P2=')
sOut = 'M125 ' .. sUnloadSide .. EgtNumToString( MoData.StopBeamStat, 0)
if MoData.Load then
EmitMoveStartChars( 3)
EmitMoveWaitChars( 3)
sOut = 'M125 P1=' .. EgtNumToString( MoData.StopBeamStat, 0)
else
EmitMoveStartChars( 2)
EmitMoveWaitChars( 2)
sOut = 'M125 P2=' .. EgtNumToString( MoData.StopBeamStat, 0)
end
end
MyOutput( sOut)
EMT.LASTOISBRAKE = true
end
---------------------------------------------------------------------
+1 -1
View File
@@ -5,7 +5,7 @@
require( 'EmtGenerator')
EgtEnableDebug( false)
PP_VER = '3.1a2_DEV18'
PP_VER = '3.1a2_DEV20'
PP_NVER = '3.1.1.2'
MIN_MACH_VER = '2.7d2'
MACH_NAME = EgtGetCurrMachineName()