Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: riporeno on March 04, 2010, 02:40:29 AM
-
hi to everybody.
I am a new consumer.
I am Italian and I write with the translator. :-[
You won't understand well perhaps
I don't succeed in resolving a problem.
I should manage a signal of imput and to do so that when the signal is 0, (low) mach goes to emergency.
This signal serves for checking that the pomp of rafreddamento of the spindle
coop working.
Then I would have need that once gives the command M3,mach holds me under control the imput#1
In the case that this signal changes of state, mach has to go to stop and to stop the car.
This control should happen only when it is active M3.
Do you think can be done? ::)
I don't know if I have made sense of, however thanks
hi
moreno
-
Hi, Moreno,
I moved this post here to the "General Mach Discussion" area so that someone would find it easier and hopefully be able to help you :)
Dave
-
If I understand right you should be able to do that via a macropump. What you would need to do is look at the Spindle LED and the input you want and if the LED is active but the Input is not then you call a reset.
Something like this should work
If GetOemLED(11) And Not IsActive(Input2) Then
DoOemButton(1021)
MsgBox("Spindle has faulted")
End If
If you prefer just to have the Stop button used then change the OEM button to 1003
Hood
-
thanks Hood for the fast answer. :o
in the next days I will make the tests with the cnc
what I have just finished to build.
When I will test the cnc I will make you know how it works.
regards :)
-
No problem, just put that in a text file and save it to the macro folder of the profile you are using and name it MacroPump.m1s
You will also need to enable the MacroPump on the General Config page and restart Mach.
Hood
-
ok I have understood.
I have simulated the macro and it works very well.
A doubt rises me..
the spindle departs together with the pomp.
the sensor of pressure of the pomp is not fast,
the signal doesn't arrive fast on the imput and mach it goes to emergency.
can a break of some second be put before performing the control of the imput?
hi
-
Not sure I fully understand but maybe this is what you are wanting?
If GetOemLED(11) And Not IsActive(Input2) Then
Sleep (2000)
If GetOemLED(11) And Not IsActive(Input2) Then
DoOemButton(1021)
MsgBox("Spindle has faulted")
End If
End If
If you need to change the time it is the Sleep(2000) you should change, milli seconds so 2,000 is 2 seconds.
Hood
-
thanks Hood
compliments for your abilities.
unfortunately I now start to understand as the macros they work ::)
moreno
-
;D
have fun
Hood
-
Hello everyone.
This macro pump works very well.
you can check another input (input 3) writing in this macro? ::)
Thank you for your help.
moreno
-
basically I would like the macro controls 2 inputs (input 2 imput3)
do you think this is possible?
thanks
-
hello to all
I solved thanks.
regards
moreno