Hello Guest it is July 20, 2019, 06:12:15 AM

Author Topic: safety spindle  (Read 4814 times)

0 Members and 1 Guest are viewing this topic.

safety spindle
« 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

Offline budman68

*
  • *
  •  2,360 2,360
    • View Profile
Re: safety spindle
« Reply #1 on: March 04, 2010, 03:47:05 PM »
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
----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: safety spindle
« Reply #2 on: March 04, 2010, 04:22:06 PM »
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
Re: safety spindle
« Reply #3 on: March 04, 2010, 05:51:20 PM »
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  :)

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: safety spindle
« Reply #4 on: March 04, 2010, 05:55:18 PM »
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
Re: safety spindle
« Reply #5 on: March 04, 2010, 06:27:52 PM »
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

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: safety spindle
« Reply #6 on: March 04, 2010, 06:35:08 PM »
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
Re: safety spindle
« Reply #7 on: March 04, 2010, 06:47:34 PM »
thanks Hood 
 
compliments for your abilities. 
 
unfortunately I now start to understand as the macros they work   ::)
 
moreno

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: safety spindle
« Reply #8 on: March 04, 2010, 06:49:07 PM »
;D

have fun

Hood
Re: safety spindle
« Reply #9 on: June 27, 2014, 08:46:15 AM »
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