Hello Guest it is April 16, 2024, 07:40:47 AM

Author Topic: Open door as pause  (Read 8564 times)

0 Members and 1 Guest are viewing this topic.

Open door as pause
« on: September 11, 2008, 07:12:55 AM »
Hello to all.

I have a complete closed machine, were if I open its door, the program should act like a pause: turning off the rotation of the spindle, shutdown the coolant. This allows the user to inspect the work. After the door is closed, the program continues doing what it was doing (turns the spindle on, allows a accelaration time, then continues)
I do not know if this is possible. I think it is, but also some security issues are present. Anybody did something like this ? It should be common.

My second question is how can I save my current machine coordenates, tool number and tool offset being used, so that when I open Mach again, everthing will be as when I closed it.

Thank you in advance,
Filipe

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Open door as pause
« Reply #1 on: September 11, 2008, 11:20:19 AM »
Its possible but may depend on how your spindle works, when you press Feedhold and then Stop and press start again does your spindle start?
 Hood
Re: Open door as pause
« Reply #2 on: September 11, 2008, 11:47:22 AM »
Thanks Hood.

I made a simple tap:

M03 S400
G01 X500 F10

When I press feedhold, the spindle maintains rotating, but X stop, if I pressed cycle start again, X moves, from the point it has stopped. It is how I would like, expect the spindle does not stop - very important. Appears that the spindle is "not connected" to the button.
What can I do ?

Thank you

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Open door as pause
« Reply #3 on: September 11, 2008, 01:26:56 PM »
What I was wanting was you to press feedhold then press  Stop once it had come to a halt with the feedhold and then finally press start again. The Stop should shut off the spindle but I am unsure whether your spindle will start again and thats what I was wondering. If it does then its easy to do, if it doesnt then its not so easy.
Hood
« Last Edit: September 11, 2008, 01:28:42 PM by Hood »

Offline fdos

*
  •  326 326
    • View Profile
Re: Open door as pause
« Reply #4 on: September 11, 2008, 03:40:49 PM »
You could easily create an interlock to do what you want, using just a relay with it's contacts in series with the spindle start output in Mach   Coil to be operated by the door switch.

Same relay with enough poles could put mach into Feedhold.

Probably better to do that than rely on software alone.


Wayne....
Re: Open door as pause
« Reply #5 on: September 12, 2008, 02:26:46 AM »
Hood:
When I press start again, the spindle will not work, only the axis will move, as you were guessing.

fdos:
That is a nice ideia. But that needs to change my wiring, but probably is safer. I have no clue is how to trigger feedhold if the switch changes.

If I rely only in software, I could do a series of actions if some triger is put on, can't I ? In this case I would not need to change my wiring configuration.
something like:

Door was open -> send an input to mach
is spindle on? stop spindle
feedhold

Door was closed -> send an input to mach
is spindle off? start spindle
delay 3 seconds until spindle reachs speed
take off feedhold

I do not know is how to connect an input, to trigger an action, but it should be easy to do, I think.

About my other question, to save the position and tool number when exiting mach, any ideias ?

Thank you.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Open door as pause
« Reply #6 on: September 12, 2008, 02:50:19 AM »
Saving position and tool number is easy enough, just set DRO as persistant (Config then General Config) However remember that you always need to home when you start Mach of you could be out of position as the DRO may show one thing but because the motors have moved slightly it could be in a different position.
 As Wayne said cutting the power physically to the motor is the safe way to do things and I would suggest thats the way you go as for the rest you would need to use a macropump or a brain.
Hood
Re: Open door as pause
« Reply #7 on: September 12, 2008, 04:37:37 AM »
Thanks Hood.

My main issue is to preserve the tool that was last used. The toolchanger will not move, so I will be sure to have the same toolnumber. I hope that DRO will also work as persistant for the toolnumbers.
I will look the macropump or brain (?!) as you sugest.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Open door as pause
« Reply #8 on: September 12, 2008, 05:17:57 AM »
Yes the persistant DRO setting will remember the tool last in use. Not sure however if the offsets for that tool will be preserved so make sure they are before you kill some tooling ;) I think they are on Mill but on turn they are definitely not.
 If you were to use a mcropump you would have your switch coming into mach on an Input such as Input 4, your macropump would then do whatever you want when this is active. I however do see anotrher problem as you are obviously wanting it to start again when you shut the door, this will require a bit of thought as you will have to make sure it only styarts if you have the feedhold active otherwise everytime your door was shut it would be wanting to start. I am not the best at VB but think should be fairly straightforward,  give it a go yourself and see what you come up with, if you need help just shout.
Hood
Re: Open door as pause
« Reply #9 on: September 12, 2008, 08:08:17 AM »
I am working on it (well I am making the door). I will try brains.
About the tool - it was very important to save tool offset, and yes it is for turn.
Thanks Hood.