FernV / NativeCAM

NativeCAM for LinuxCNC embeds in axis or gmoccapy interfaces
GNU General Public License v2.0
45 stars 29 forks source link

New Spiral Pocketing Code #4

Open gmoccapy opened 6 years ago

gmoccapy commented 6 years ago

Hallo Fern,

may be you are able to integrate my gcode to make a spiral pocket. It may begin from a radius a little bigger than the tool radius and is able also to enlage a pocket with a pilot bore.

This way to make a spiral is not so havy load for the mill. I made several tests with my sup, but I would prefer to use it out of NCam.

I have also a subroutine spiral from out to in, I use that quiete often, wenn I want a remainig shaft on a plate, I have not found any way to do that with NCam, as there is no way to leave an iland on the part, I can send you the gcode sub if you like.

Regards Norbert (gmoccapy)

` ; Spiral from in to out ; from Norbert Schechner

G17 G21 G40 G43H0 G54 G64P0.005 G80 G90 G94 G97 M5 M9

T8 M6 G43 S 3600 M3

= [125/2]

= [130/2]

= 6.02

= 88.0

; #5410 = Tool Diameter

= 6.0 ; Step Over of Tool

= 5.0 ; Max Cut Depth

= 20.0

= 0.0

= -15.0

= 7500

= 250

; Check parameter first, i.e. negative StepOver will lead to infinite loop o101 if [ # LE # ] (DEBUG, end radius <= start radius) M2 o101 endif

o102 if [ # LT [ #5410 / 2 ] ] (DEBUG, Start Radius to small or no tool in spindle ?) M2 o102 endif

o103 if [ # LE 0 ] (DEBUG, StepOver <= 0, Must be a positive number ?) M2 o103 endif

o104 if [ # LE 0 ] (DEBUG, CutDepth <= 0, Must be a positive number ?) M2 o104 endif

o105 if [ # LE 0 or # LE 0 ] (DEBUG, Feed values <= 0, Must be a positive numbers ?) M2 o105 endif

o106 if [ # LT # ] (DEBUG, Save Z can not be smaller than Final Z value!) M2 o106 endif

o107 if [ # GE # ] (DEBUG, Final Z can not be smaller than Start Z value!) M2 o107 endif

G0 X[ # ] Y[ # ] Z [ # ]

= #

o100 while [ # GT # ]

= [ # - # ]

o111 if [ [ # ] LE # ]

= #

o111 endif

= #

G40

G0 X[ # + [# * -1 ] ] Y[ # ] G0 Z [ # + # ]

F [ # ]

G41 G3 X[ # + # ] Y[ # ] Z [ # ] I[ # ] J0

F [ # ]

O112 while [ # + # LT # ]

= [ # + # ]

  G3 X[ #<Start_X> ] Y[ #<Start_Y> + #<Current_Radius> ]  R[ #<Current_Radius> ]
  G3 X[ #<Start_X> + #<Current_Radius> ] Y[ #<Start_Y> ] R [ #<Current_Radius> * -1 ]

O112 endwhile

G3 X[ # ] Y[ # + # ] R[ # ] G3 X[ # ]Y[ # + # ] I0 J[ # * -1]

G3 X[ # - #] ] Y[ # + [ # - # ] ] Z[ # + # ] R[ # ]

o100 endwhile

G0 X[ # ] Y[ # ] Z [ # ]

M2 `

FernV commented 6 years ago

Thanks Norbert,

I will surely add this to NCam and any gcode you think that is of interest. As long as we can make it with params and it has universal usage, it is worth the effort to add it.

Actually I have to either find another deb hosting service or pay for a plan at packagecloud.io. I received a notice this morning that the account has been disabled because it has exceeded the maximum allowed overage and to login and upgrade the plan or increase the maximum overage. Paying a monthly fee would do but I spent a lot of time developing this and wonder if I should also pay to share it. I understand the point of packagecloud.io but since my company has nothing to do with computers of even machining, I can not make it pay for the hosting service, I would have to pay from my own pocket.

I created a deb directory on my computer and use reprepro but so far something does not work. I think I could synchronize with dropbox or push to github ( I already did it at https://github.com/FernV/github.io) Example : I install v 0.1.7 v 0.1.8 is available at file:/home/fernand/Developpement/git/github.io/ with sources.list deb file:/home/fernand/Developpement/git/github.io/ wheezy main it will tell me that v 0.1.8 is available and will update but after I push to github and with deb https://github.com/FernV/github.io/tree/master/ wheezy main it will only tell me that v 0.1.7 is available

What do you think ?

Do not forget to send your gcode Fern

gmoccapy commented 6 years ago

Hallo Fern,

I looked at your deb code at github. Could it be, that the path in the packates must not be:

pool/main/n/nativecam/nativecam_0.1.8_all.deb

but

../../../../../pool/main/n/nativecam/nativecam_0.1.8_all.deb

How much would be the fare for packagecloud.io, may be we all users can make a donation? Also it might be possible to speek with the guy who is mantaining the linuxcnc buildbot system to give an advice how to realize a cost free solution.

I will open a new issue for the out spriral solution, just give me a day or two, so I can document the code a little more.

Norbert

FernV commented 6 years ago

Trying with dropbox, the message seems to mean there is no Release.gpg key file. I think this is the problem.

https://packagecloud.io/app/FernV/NativeCAM/gpg#gpg-apt

When home, I will remove the key and try again

Fern