- Aggiunta variabile per macchina

- Corretta condizione in OnSimulMoveStart
This commit is contained in:
andrea.villa
2025-05-13 13:36:02 +02:00
parent d5704d97c0
commit c52e7acedc
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -46,6 +46,7 @@ Debug=2
28=PLC_Messages4,302:24.0:2,c,plc 28=PLC_Messages4,302:24.0:2,c,plc
29=PLC_Messages5,302:26.0:2,c,plc 29=PLC_Messages5,302:26.0:2,c,plc
30=PLC_Messages6,302:28.0:2,c,plc 30=PLC_Messages6,302:28.0:2,c,plc
31=W_Carico,301:8.0:2,c,plc
[Languages] [Languages]
Enable=0 Enable=0
+1 -1
View File
@@ -650,7 +650,7 @@ function OnSimulMoveStart()
VerifyX2Stroke( EMT.A2) VerifyX2Stroke( EMT.A2)
-- se inizio lavorazione -- se inizio lavorazione
if EMT.MCHFIRST then if EMT.MCHFIRST then
if EMT.HEAD == 'H3' and abs( EgtGetAxisPos( 'CS')) > 0.1 and not EMT.R1p or abs( EMT.R1 - EMT.R1p) > 15 then if EMT.HEAD == 'H3' and abs( EgtGetAxisPos( 'CS')) > 0.1 and ( not EMT.R1p or abs( EMT.R1 - EMT.R1p) > 15) then
SimulMoveAxis( 'A', ParkA, MCH_SIM_STEP.COLLROT) SimulMoveAxis( 'A', ParkA, MCH_SIM_STEP.COLLROT)
SimulMoveAxis( 'C', EMT.R1, MCH_SIM_STEP.COLLROT) SimulMoveAxis( 'C', EMT.R1, MCH_SIM_STEP.COLLROT)
end end