Author Topic: Insert pause G4Pxx at gcode  (Read 12554 times)

Offline lima

  • Ewok
  • *
  • Posts: 32
    • View Profile
Insert pause G4Pxx at gcode
« on: June 20, 2020, 18:28:07 pm »
Hello everyone
I would like to know if it is possible to insert the pause g4pxx in the output of the gcode, in order not to do it manually which you wind up risk of forgetting.
Tank you

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9090
    • View Profile
Re: Insert pause G4Pxx at gcode
« Reply #1 on: June 20, 2020, 18:33:34 pm »
Insert the G4 Pxx right after the spindle-on command (M3 Sxxxx) in your post-processor.
(That's presuming after 'spindle-on' is the place where you wish the pause to be.  If not, insert it where you wish.)

I just had to do that recently to accommodate a machine that doesn't speed up the spindle quickly.

Just edit your post with any common text editor, and be sure to save it and test it after the change!

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7597
    • View Profile
    • Cambam V1.0 French Doc
Re: Insert pause G4Pxx at gcode
« Reply #2 on: June 20, 2020, 18:39:12 pm »
Hello

Quote
Just edit your post with any common text editor, and be sure to save it and test it after the change!

No needs to use a text editor, the whole post processor can be edited directly in CamBam ;)

++
David


Offline lima

  • Ewok
  • *
  • Posts: 32
    • View Profile
Re: Insert pause G4Pxx at gcode
« Reply #3 on: June 20, 2020, 19:34:54 pm »
Thanks guys, unfortunately I have not done any postprocessor, with grbl the default works correctly and I have never done anything, currently and recently I modified the gcode by hand, but now I really need not to risk it.
I'm also trying the manual tool change with G4 pause, tomorrow can I publish my cb here for some advice if I do it correctly and safely?

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9090
    • View Profile
Re: Insert pause G4Pxx at gcode
« Reply #4 on: June 20, 2020, 19:41:23 pm »
Lima,
Even the 'default' IS a post-processor.  If you look in the CB folders, you'll find it in the 'post-processors' folder below that.

Just edit it (either through CB or text editor), and be sure to save it under a new name, so you don't mess-up the default.

Then, change the post-processor description in your CB file to match the new name, and be sure to go to 'tools', and reload post-processors, in order to make it active.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline lima

  • Ewok
  • *
  • Posts: 32
    • View Profile
Re: Insert pause G4Pxx at gcode
« Reply #5 on: June 20, 2020, 20:14:27 pm »
I meant that I never needed to change anything, tomorrow I try to make the change and public, thanks.

Offline lima

  • Ewok
  • *
  • Posts: 32
    • View Profile
Re: Insert pause G4Pxx at gcode
« Reply #6 on: June 21, 2020, 10:15:11 am »

I added the pause to the postprocessor at M3, yesterday I added the tool change to the n4 3mm 2flute default mm, can you see if it is a correct procedure? I added G4 after M5 to have time to pause via ugs softwere and do the manual change. I have tested and I think it is ok. thanks for everything

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9090
    • View Profile
Re: Insert pause G4Pxx at gcode
« Reply #7 on: June 21, 2020, 11:00:14 am »
Lima,
You have shown us your CamBam file, not the post-processor.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline lima

  • Ewok
  • *
  • Posts: 32
    • View Profile
Re: Insert pause G4Pxx at gcode
« Reply #8 on: June 21, 2020, 13:09:14 pm »
I don't know to extract cbpp, i put photos

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9090
    • View Profile
Re: Insert pause G4Pxx at gcode
« Reply #9 on: June 21, 2020, 13:47:37 pm »
The post-processors are stored in the "post" sub-folder of the CamBam system folder.  They are simple text files, and may be sent, attached, etc., like any other text file.

That said, does it really take 15 seconds for your spindle to come up to speed, and 20 to stop?  Those seem like really long times.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline lima

  • Ewok
  • *
  • Posts: 32
    • View Profile
Re: Insert pause G4Pxx at gcode
« Reply #10 on: June 21, 2020, 15:33:50 pm »

ok here is the cbpp attached.
yes I had 15 seconds of starting and 5 of stopping, 20 seconds after m5 are to give me time to pause ugs.
now I have set 5 seconds to start and 4 to stop.

can you tell me if the procedure is correct for manual tool change? or is it better other system?
g90 g0z50 safe zone
g0x-20y30 tool change area
m5
g4p20 time to manually pause ugs and change tool
g0z22 probe height
g38.2
g92z21.15
g4p10 time to remove probe before spindle start
g90
thank for all

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9090
    • View Profile
Re: Insert pause G4Pxx at gcode
« Reply #11 on: June 21, 2020, 16:03:42 pm »
Usually, the 'manual or automatic' tool change setting is set up in the controller, not in the CAM package.

An M5 followed by a 'T#' command should invoke a manual change, if you've set it up correctly in the controller.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7597
    • View Profile
    • Cambam V1.0 French Doc
Re: Insert pause G4Pxx at gcode
« Reply #12 on: June 21, 2020, 16:12:48 pm »
Hello

Quote
An M5 followed by a 'T#' command should invoke a manual change, if you've set it up correctly in the controller.

GRBL do not handle toolchange and do not understand T# M6 ... except if you use the GRBL machine plugin that is able to simulate the M6 ;)

http://www.atelier-des-fougeres.fr/Cambam/Aide/Plugins/GRBLmachine.html

to search for the PP file, use the menu Tools/browse system folder, and you'll find the post folder of the current CamBam system.

++
David
« Last Edit: June 21, 2020, 16:17:05 pm by dh42 »

Offline lima

  • Ewok
  • *
  • Posts: 32
    • View Profile
Re: Insert pause G4Pxx at gcode
« Reply #13 on: June 21, 2020, 17:02:11 pm »
Perhaps it had been overlooked that there was talk of grbl.
I uploaded the pp in the last message, grbl is limited on several aspects but at the hobby level it is ok to learn at low cost, thank you all for being always present.
The topic can be considered resolved, thanks.