NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Using LinuxCNC G Code Duplicating parts without duplicating tool changes

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Duplicating parts without duplicating tool changes

Duplicating parts without duplicating tool changes 20 Jan 2012 08:45 #16983

  • Robo-Dan
  • Robo-Dan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 1
  • Karma: 2
Hi guys,

I'm new to this forum but I'm at my wits end. I just recently switched from Mach3 to EMC2 because Mach3 doesn't support looping (while, do while, etc). I'm trying to run a business on the side creating parts that have up to 8 tool changes each. I can make single parts at a time, but the tool changes make it unfeasible in order to run 50-100 parts at a time (8x = 400 to 800 tool changes :ohmy: ).

Has anybody previously developed a sub routine in order to do this? I haven't been able to find one. I'm currently using Solidcam and they have a Transform->Translate->Matrix feature that works, but my post processor doesn't spit out the Gcode into a format that EMC2 is compatible with. I've been manipulating the post processor in order to try and make it work for almost a solid full time week now.. I'm running out of hair on my head fast! Somebody please help me. I BEG OF YOU!
The administrator has disabled public write access.

Re:Duplicating parts without duplicating tool changes 20 Jan 2012 09:03 #16985

  • Rick G
  • Rick G's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1069
  • Thank you received: 15
  • Karma: 80
Hello,

Does this give you some ideas?

www.linuxcnc.org/index.php/english/compo...iew&catid=40&id=7914

Rick G
The administrator has disabled public write access.

Re:Duplicating parts without duplicating tool changes 20 Jan 2012 10:15 #16987

  • Robo-Dan
  • Robo-Dan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 1
  • Karma: 2
Thanks for the quick reply Rick! I had a look at that subroutine and although it doesn't take into account tool changes it did however spark an idea!!! I tried it out on my post processor and isolated that my current problem is that I create an O-word (O501) with every operation and it freezes EMC2 whenever I use more than one operation! So my question is.... how do I reset or over-write the O-word with multiple operations? The section of my post processor that I need to modify is shown.


@loop /// this is called at the start of every operation
local integer var_num

var_num = loop_level + 20
{nb, '#', var_num, ' = 0'}
{nb, '#<loop_level> = ', loop_level}
{nb, '#<loop_count> = ', loop_count}
{nb, 'O501 WHILE [#', var_num, ' LT ', loop_count, ']'} <
in gcode this comes out as O501 WHILE[#21 LT 2] ///where #21=0
endp

;

@end_loop ///this is called at the end of every operation
local integer var_num

var_num = loop_level + 20
{nb '#', var_num, ' = [#', var_num, ' + 1]'}
{nb 'G'home_number}
{nb 'O501 ENDWHILE'}
*************************************** <
what do i add here in order to Over-write/reset the O-word?

endp

;
The administrator has disabled public write access.

Re:Duplicating parts without duplicating tool changes 20 Jan 2012 11:26 #16988

  • Robo-Dan
  • Robo-Dan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 1
  • Karma: 2
Found a fix. It seems as though EMC2 was freezing because it didn't know what to do with multiples of the same oword in the file originally. I created a global variable within the post processor 'oword', initialized it to 501 at the beginning of the program. Then inside the loop call, referenced oword in place of 501 and at the end of loop call, incremented oword.

Now once I fix the minor details as to why my coordinates are off for my duplicates, I will post the update post processor. Thanks again for the reply Rick!
The administrator has disabled public write access.

Re:Duplicating parts without duplicating tool changes 04 May 2012 00:05 #19800

  • raduzze
  • raduzze's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hi Robo-Dan, I'm also new on this forum and in also in topic of machining. I would like to ask you for help with my post procesor from solidcam to emc2 (linuxcnc). I am using linuxcnc 2.5, solidcam 2011. Is it possible to send me your gpp to solidcam? Every day I am teaching a new things step by step, but postprocesor is for me still a little bit faraway. My cnc mill is now XYZ, later I would like to mount 4th axis and maybe...?
Thank you very much.
The administrator has disabled public write access.

Re:Duplicating parts without duplicating tool changes 05 May 2012 10:03 #19843

  • Robo-Dan
  • Robo-Dan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 1
  • Karma: 2
Hi Raduzze,

Sorry for the late reply. I have attached a copy of my modified .gpp file. The site will won't let me upload the .gpp file extension, so just download the attached .txt file and rename the extension to .gpp. Good luck. This attachment is hidden for guests. Please log in or register to see it.
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
Last Edit: 05 May 2012 10:05 by Robo-Dan.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 1.032 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.