Author Topic: Delay for Vacuum  (Read 20258 times)

Offline chuckeroo

  • CNC Jedi
  • *****
  • Posts: 589
    • View Profile
Delay for Vacuum
« on: November 08, 2022, 02:10:29 am »
I need to add about 10 seconds or so delay before shutting down the Vacuum system. Something added in the footer?

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2680
    • View Profile
Re: Delay for Vacuum
« Reply #1 on: November 09, 2022, 08:55:30 am »
I am turning it on/off manually. Works like a charm :)

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1894
    • View Profile
Re: Delay for Vacuum
« Reply #2 on: November 09, 2022, 11:18:33 am »
You can add the delay in the footer.

Dave

Offline chuckeroo

  • CNC Jedi
  • *****
  • Posts: 589
    • View Profile
Re: Delay for Vacuum
« Reply #3 on: November 09, 2022, 12:51:15 pm »
Thanks for the help. I need to give this a try. So G04 Represents Dwell and P10 A representation of timed dwell M9 is a representation as to what is being commanded?
« Last Edit: November 09, 2022, 17:11:38 pm by chuckeroo »

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1894
    • View Profile
Re: Delay for Vacuum
« Reply #4 on: November 09, 2022, 20:06:15 pm »
M5    --->stop spindle
G04  --->command a Dwell
P10  --->wait for 10 seconds   (In Mach3 general settings you can check a box for dwell in either milliseconds or seconds)
M9   --->turn off mist and\or flood outputs  (in the spindle settings you can program delay before activation as well)
M30 --->rewind to start of program

So M7\M8 to turn on outputs  M9 to cancel or stop them.

( Made using CamBam - http://www.cambam.co.uk )
( test 11/9/2022 10:11:51 PM )
( T0 : 0.0 )
G21 G90 G64 G40
G0 Z3.0
( T0 : 0.0 )
T0 M6
( Profile1)
G17
M3 S1000
G0 X0.5 Y0.0
G0 Z1.0
G1 F300.0 Z-1.0
G1 F800.0 X61.0
G1 Y46.25
G1 X0.5
G1 Y0.0
G0 Z3.0         raise to clearance plane   
M5 G04 P10 M9      stop spindle-->wait for 10 seconds--->then stop mist\flood outputs or vacuum ect.
M30         rewind to start of program

Dave

Offline chuckeroo

  • CNC Jedi
  • *****
  • Posts: 589
    • View Profile
Re: Delay for Vacuum
« Reply #5 on: November 11, 2022, 14:31:39 pm »
Thanks . It's nice to know the procedure in detail.  Hmmm this has got me thinking about including a park position in the same manner.

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1894
    • View Profile
Re: Delay for Vacuum
« Reply #6 on: November 12, 2022, 03:34:26 am »
You'll have to tell me in a little more detail what you want to do.
If you want to park the tool in a convenient place to change the tool
then you need to put some Gcode in the tool change section of the PP.
Depending on your needs parking can be done in Mach3 or the PP.
Dave

Offline chuckeroo

  • CNC Jedi
  • *****
  • Posts: 589
    • View Profile
Re: Delay for Vacuum
« Reply #7 on: November 13, 2022, 17:05:57 pm »
Seems like x and y positions must be represented in the footer also? Again Thanks for the help! Sooner or later I will get it just  like I need.

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1894
    • View Profile
Re: Delay for Vacuum
« Reply #8 on: November 14, 2022, 02:54:48 am »
Chuck
A word of caution.
If you put the Gcode, something like G53 X.position  Y.position Z.position
or G28 in the tool change portion of the post processor then if you then want to use Gcode
from another cam program say for example “fusion” in the future then you have to make or
modify fusion’s or whatever cam programs you use, post processor.

If you put the Gcode for the tool change position in the Mach3 tool change macro then the
Gcode from cambam or any other cam program just has to output, to change tool six
for example, “T6: M6”.

 However, if you just want to home the spindle during a manual tool change
and only ever intend to use cambam for your Gcode generator and you have limit
switches and you have homed the machine then you can put the Gcode in the cambam
post processor tool change section. G28 see pic

If mach3 is not configured to ignore tool changes then the spindle will raise to the
clearance plane stop rotating, go to the home position and wait for you to change the tool,
This positions the tool at the home position however, this may not be the most
convenient place to change the tool, maybe you want the spindle to move to the front
of the machine in the middle of the Y axis travel.

So, you want to park the spindle in some specified location ‘parking is not homing’
even though you can ‘park at the home position’ for use with linear tool changers or
manual tool changes where the home position is not where you want to do the tool change
use G53 which uses the machine co-ordinate system or G30.

Dave








Offline chuckeroo

  • CNC Jedi
  • *****
  • Posts: 589
    • View Profile
Re: Delay for Vacuum
« Reply #9 on: November 14, 2022, 13:28:15 pm »
As far as the park position the router needs to travel to Y+ which will allow me to remove the project from the bed and set up for the next project. I use Cambam and nothing else for the time being. By the way I had to change M9 to M8 before I had success with keeping the Vacuum running for the additional 10 seconds after the Router shut off. Thanks for the input.
« Last Edit: November 15, 2022, 00:28:47 am by chuckeroo »