CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 12, 2019, 19:31:51 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Not So Much a Bug As An Alternate Iteration  (Read 491 times)
Bob La Londe
CNC Jedi
*****
Offline Offline

Posts: 3816


^ 8.5 pounds on my own hand poured bait.


View Profile WWW
« on: October 27, 2019, 22:11:27 pm »

I had pointed out in the past that when you perform a tool change CamBam assumes the machine is exactly where it was before the tool change.  This can sometimes result in ruined work pieces and destroyed cutters.  I fixed the problem with the Mach 3 based machines by saving the current coordinates at the beginning of the tool change macros and returning to them at the end of the tool change macro.  On my PathPilot controlled machine I just perform tool changes with a Z clearance move, so X&Y do not change.  Since that machine has a quick change spindle and all the tool lengths are stored in the tool table I do not need to move it to touch off again. 

I pretty much thought I had that issue worked out.  Until today. 

I was using G54 and G55 to machine two parts at once.  The header for each MOP has the appropriate offset command.  I've done this before.  Its handier than nesting because I can locate the work piece in each vise with each work offset.  I don't have to know where the stock is going to be when I write the code.  I just locate the stock when I load it in the vises.  Works great.  Until you have back to back features in different work offsets that have a concurrent end & start coordinate.   It just goes to the coordinate that changed, and remains at the one that didn't.  Since there is no tool change (kind of the point) and its actually going to a different machine coordinate it can ruin, not one but two work pieces. 

I hear you.  I hear you.  How is Cam Bam supposed to know you switched the offset.  Regardless its still a problem.  3hrs into a job today it bit me on the very last operation.  Cutting a pair of simple slots in each work piece.  Fortunately I had just walked up to the machine in time to see it slice the first work piece and was able to stop it before it sliced the second.  I hand coded a fix into the MOP headers, but there's got to be a better way. 

This lends itself to a feature request... 
Logged

Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5676



View Profile WWW
« Reply #1 on: October 28, 2019, 00:55:17 am »

Hello

Quote
I hear you.  I hear you.  How is Cam Bam supposed to know you switched the offset.

Cambam can't, but maybe a post treatment of the Gcode with an external routine launched by the post pro can search any G54 to G59 statement in the Gcode and add a suitable code sequence when encountered ... but I don't understand exactly what code you needs ? a move to clearance plane ? or to a defined machine coord position ? ... or other .. ?

++
David

 
Logged
Bob La Londe
CNC Jedi
*****
Offline Offline

Posts: 3816


^ 8.5 pounds on my own hand poured bait.


View Profile WWW
« Reply #2 on: October 28, 2019, 14:14:06 pm »

This is a process where I don't think a post treatment could know what to do.  It would be slightly different each time it was implemented.  Realistically CamBam would need to put out a clearance height XY move each time a MOP started.  Actually if CamBam did that it would reduce or eliminate the original problem I documented with tool changes as well. 
Logged

Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5676



View Profile WWW
« Reply #3 on: October 28, 2019, 23:23:49 pm »

Re

No way to use macro like $mop.first.x or $mop.clearanceplane in the header with the G5x ?

ex:

G55
G0 {$mop.clearanceplane}
G0 X{$mop.first.x} Y{$mop.first.y}

++
David

Logged
Bob La Londe
CNC Jedi
*****
Offline Offline

Posts: 3816


^ 8.5 pounds on my own hand poured bait.


View Profile WWW
« Reply #4 on: October 29, 2019, 00:00:25 am »

Maybe.  I'll have to try that and see how it performs. 
Logged

Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.09 seconds with 19 queries.

Copyright © 2018 HexRay Ltd. | Sitemap