Hello Guest it is December 30, 2024, 12:33:02 PM

Author Topic: g31  (Read 2685 times)

0 Members and 1 Guest are viewing this topic.

Offline jve

*
  •  128 128
g31
« on: June 22, 2012, 08:46:51 AM »
is it possible mach3 trigger an output when i have a g31 and when g31 is ready the output will go off

Offline BR549

*
  •  6,965 6,965
Re: g31
« Reply #1 on: June 22, 2012, 02:05:19 PM »
This should get you started, (;-) TP



     'M31 macro
ActivateSignal(output1 )
If GetOemLed(825) Then
MsgBox"Probe already active,Reset and Retry"
End
Else
Code"G31 Z-10 F30"
While Ismoving()
Wend
End If


If NOT GetOemLed(825) Then
MsgBox"Probe failed to fire"
End
Else
DeactivateSignal(output1)
End If
End

                                                                                                                                          
« Last Edit: June 22, 2012, 02:21:51 PM by BR549 »

Offline jve

*
  •  128 128
Re: g31
« Reply #2 on: June 23, 2012, 01:06:28 AM »
i try this at home and it works now i have to go to the machine to check i have to say more than thankyou i wasted 3days working on this banging my head to the wall
regards
jekran