Dwell after M3

More
02 Dec 2021 17:19 #228204 by _big_
Dwell after M3 was created by _big_
Takes a few seconds for my quill to spin up after M3/M4.   

Could probably monkey with the VFD and make it better, but it generally seems to me I should be able to specify some delay after commanding a speed change to the spindle.

Tried to add a G4 through CamBam, but couldn't get that to work right.

Then I thought, generally, machine specific delays shouldn't be specified from the CAM program.   This delay should really be part of the machine controller.

I looked a bit and couldn't find anything in LinuxCNC.   My guess its there and I missed it.   Anybody have some clues for me??

Thanks.

Please Log in or Create an account to join the conversation.

More
02 Dec 2021 17:43 #228208 by shortcircuit48
Replied by shortcircuit48 on topic Dwell after M3
G4 P5 gives a 5sec delay, and works for me.

Please Log in or Create an account to join the conversation.

More
02 Dec 2021 18:22 #228212 by _big_
Replied by _big_ on topic Dwell after M3
I could easily do that if I were editing the G code by hand.

I desire to take the output of CamBam and use it without editing.

In CamBam, is if I go into the machine postprocessor and add G4 P5 to the G3 definition, CamBam produces something like
G3
G4 P5
S1000

Which I don't think will do what I desire. Tried this several different ways and couldn't get the S1000 before the G4 P5. But maybe it will? I haven't tried it on the machine.
The following user(s) said Thank You: shortcircuit48

Please Log in or Create an account to join the conversation.

More
02 Dec 2021 18:37 #228213 by chris@cnc
Replied by chris@cnc on topic Dwell after M3
If you send your postprocessor i can take a look. Second option, setup spindle ramp in hal. But edit the PP should be easier.

Please Log in or Create an account to join the conversation.

More
02 Dec 2021 19:00 #228216 by _big_
Replied by _big_ on topic Dwell after M3
I'm using the nominal LinuxCNC.cbpp.   It's not very big and I'll just append the text to the end of this.

In this LinuxCNC.cbpp, there is no definition for G3.   I guess CamBam picks it up from some default.

<?xml version="1.0" encoding="utf-8"?>
<PostProcessor xmlns:xsi="www.w3.org/2001/XMLSchema-instance" xmlns:xsd="www.w3.org/2001/XMLSchema" Version="0.9.8.0">
  <PostFile>{$comment} Made using CamBam - www.cambam.co.uk {$endcomment}
{$header}
{$mops}
{$footer}
</PostFile>
  <Header>{$comment} {$cbfile.name} {$date} {$endcomment}
{$comment} Post processor: LinuxCNC {$endcomment}
{$tooltable}
{$cbfile.header}
{$units} {$distancemode} {$velocitymode} {$cuttercomp(off)}
{$arccentermode} 
{$toolchange(first)}
{$clearance}</Header>
  <Footer>{$clearance}
{$spindle(off)}
{$cbfile.footer}
{$endrewind}
</Footer>
  <MOP>{$comment} {$mop.name} {$endcomment}
{$toolchange}
{$velocitymode} {$workplane}
{$mop.header}
{$spindle} {$s}
{$blocks}
{$mop.footer}
</MOP>
  <Drill>{$g81} {$_x} {$_y} {$_z} {$r} {$_f}</Drill>
  <DrillDwell>{$g82} {$_x} {$_y} {$_z} {$p} {$r} {$_f}</DrillDwell>
  <DrillPeck>{$g83} {$_x} {$_y} {$_z} {$q} {$r} {$_f}</DrillPeck>
  <NumberFormat>0.0####</NumberFormat>
  <MinimumArcLength>0.0001</MinimumArcLength>
  <ArcCenterIncremental>G91.1</ArcCenterIncremental>
  <ArcCenterAbsolute>G90.1</ArcCenterAbsolute>
</PostProcessor>

Please Log in or Create an account to join the conversation.

More
02 Dec 2021 20:01 #228220 by andypugh
Replied by andypugh on topic Dwell after M3

Could probably monkey with the VFD and make it better, but it generally seems to me I should be able to specify some delay after commanding a speed change to the spindle.


This is what "spindle-at-speed" is for. It will allow G0 moves once the spindle is started, but will pause the first g1 move until the spindle-at-speed pin is set to true. 

You can get this signal either from the VFD, or from the spindle encoder. Or, with a bit of HAL, you can fake it with a simple delay triggered by spindle-on. 

linuxcnc.org/docs/2.8/html/man/man9/moti....html#SPINDLE%20PINS
 

Please Log in or Create an account to join the conversation.

More
02 Dec 2021 20:16 #228221 by chris@cnc
Replied by chris@cnc on topic Dwell after M3
I found something here 
cambamcnc.com/forum/index.php?PHPSESSID=...18q6s31&topic=9266.0
There should some menu to enter G4 P5 and in PP line "{$spindle} {$s}" delete "{$s}" 
But this kind of PP i see first time.

Please Log in or Create an account to join the conversation.

More
02 Dec 2021 20:45 - 02 Dec 2021 20:47 #228222 by chris@cnc
Replied by chris@cnc on topic Dwell after M3
for Andy's suggestion, here are some examples.
linuxcnc.org/docs/html/examples/spindle.html
Last edit: 02 Dec 2021 20:47 by chris@cnc.

Please Log in or Create an account to join the conversation.

Time to create page: 0.196 seconds
Powered by Kunena Forum