Learn CAD/CAM or Gcode

More
08 Feb 2013 23:59 #29790 by BigJohnT
Replied by BigJohnT on topic Learn CAD/CAM or Gcode

Golly...glad you gents understood what you were talking about in those last few posts...~! :blink:

>>> Sterl


That does come with time... load the last example I posted in a sim and run one line at a time and you should see the flow of the repeat's and how they work.

John

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

More
09 Feb 2013 00:19 #29791 by Sterling
Replied by Sterling on topic Learn CAD/CAM or Gcode
I don't have a simulator program. I suppose I could just load it and run it in the LinuxCNC program, but bring the Z axis way up and remove the bit so it does not touch...

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

More
09 Feb 2013 00:28 #29792 by BigJohnT
Replied by BigJohnT on topic Learn CAD/CAM or Gcode

I don't have a simulator program. I suppose I could just load it and run it in the LinuxCNC program, but bring the Z axis way up and remove the bit so it does not touch...


From the CNC menu pick Linuxcnc then in the sample configs pick sim axis or something similar to that and it will put a sim in your configs directory and an icon on your desktop. If you configure the limits and speed and accelerations like your machine you can run code in the sim to test with before running in your machine.

John

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

More
09 Feb 2013 00:49 - 09 Feb 2013 00:51 #29793 by Sterling
Replied by Sterling on topic Learn CAD/CAM or Gcode
Ok, done Thanx... (I think I did it right)
When I loaded the program it gave me an error
Near line 2:
Bad character '\357' used

Well, I don't see that anywhere. I figure it was this=
#1 = 0 (x position)

...so I copied and saved the text starting from
G2

But now when I load it I get the folloing error:
Named parameter #<hole-to-hole> not defined

Sorry if I'm taxing your patience, but I'm kinda lost here...!

>>> Sterl
Last edit: 09 Feb 2013 00:51 by Sterling.

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

More
09 Feb 2013 00:49 #29794 by BigJohnT
Replied by BigJohnT on topic Learn CAD/CAM or Gcode
Here is an example that drills 5 holes, while it might seem complex for 5 holes it will have less lines of code and less chance for a mistake than using G0 and G1 to drill holes with. Run that in your sim when you get it setup and mess with the settings and hole locations so you understand how it works. If I'm drilling more than 1 hole I use G81 or G83.
; preamble using G61 exact stop for drilling
G20 G17 G40 G49 G61 G80 G90 G94

; move to a safe Z position
G0 Z0.5

; start spindle and set feed rate
S1500 M3 F50

; G81 drilling cycle
; G90 absolute distance mode
; G99 use the G81 retract position
; G81 drill cycle XY first hole Z depth 
; R retract position before moving to next hole
G90 G99 G81 X0.0 Y0.0 Z-0.5 R0.1
; drill 5 more holes at the XY locations
; if no change in Y then it is not necessary to put it on the line
X0.5
X1.0
X1.5
X2.0
;turn off canned cycles
G80
; turn off the spindle
M5
; end program
M2

John

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

More
18 Mar 2013 00:38 #31514 by Sterling
Replied by Sterling on topic Learn CAD/CAM or Gcode
Howdy gents...
Just wanted to post an update and say Thank You~!!
I could not have made it this far this soon without the feedback you've given me!! I was seriously worried that I had bitten off more than I can chew!
So, I do have a few designs tested and completed, and now I am moving ahead. Slowly, but surely! (I finally resorted to making 'graph paper' on a computer, and placed my image over that as a new layer, and then used the coordinates for the drill-points. I'm sure there is a more efficient way, but it is the only way I could do this and understand what I was doing!)

-However-
Before I give myself a big pat on the back and consider myself a moderate success, I want to install a couple programs.
Most notably a True Type Font program and the 'Arcbuddy' program that Big John wrote.
I've never used or installed a program in Linux before, so wish me luck! (these are obviously not simple executable files I can just 'click' on to install...) B)

Thanx again~!

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

More
18 Mar 2013 00:53 #31516 by andypugh
Replied by andypugh on topic Learn CAD/CAM or Gcode

(I finally resorted to making 'graph paper' on a computer, and placed my image over that as a new layer, and then used the coordinates for the drill-points. I'm sure there is a more efficient way, but it is the only way I could do this and understand what I was doing!)


Well, the general-purpose cribbage-board driller here:
www.linuxcnc.org/index.php/english/forum...gcode?start=30#29787
Would probably be good for conventional rectangular boards.

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

Moderators: Skullworks
Time to create page: 0.126 seconds
Powered by Kunena Forum