lathe C axis code sample? Centroid < answered >

_______________________________________________________














LOGIN below to POST your questions and comments on AjaxCNC products.

Moderator: cnckeith

Post Reply
frijoli
Posts: 342
Joined: Tue Sep 12, 2017 10:03 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
MPU11 & GPIO4D -w/ 3rd Party Drives: No
DC3IOB: No
CNC11: No
CPU10 or CPU7: No
System Serial Number: none yet
Location: Outside Winston-Salem, NC

lathe C axis code sample? Centroid < answered >

Post by frijoli » Wed Jan 03, 2018 10:11 pm

Are there any samples of C axis code fore Centroid controls. I am finding lots of examples that don't work, but none from actual Centroid machines. Centroid doesn't accept G17-G19 so I am confused on how Centroid intends it to be done.
There is nothing in the manual showing programming of wrapped tool paths nor face tool paths.

I did manage to write a post processor, in which I generated a program through Fusion 360 and generated a tool path that I believe will work.
Unfortunately it runs REALLY slow when using the c axis. I know why it's slow, but I don't know how to correct it.
So can anyone point me to some code?

Clay
Outside Winston-Salem, NC

cnckeith
Posts: 516
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
MPU11 & GPIO4D -w/ 3rd Party Drives: Yes
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
System Serial Number: none
Contact:

Re: lathe C axis code sample? Centroid

Post by cnckeith » Thu Jan 04, 2018 12:23 am

clay, the reason its slow is the feedrate on the c axis program line is that the F command is in degrees per minute for a rotary axis.

so for example...

G1 Z2C3600 F2 that means the C axis is going to go 10 revolutions at 2 degrees per minute while the Z axis is interpolated to move to 2.0000 from the position it is at to 2.0000 in the time it takes for the C axis to rotate 10 times at 2 degrees per minute. (very slow)

Gary Campbell
Posts: 61
Joined: Sat Nov 18, 2017 2:32 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
MPU11 & GPIO4D -w/ 3rd Party Drives: No
DC3IOB: No
CNC11: No
CPU10 or CPU7: No
System Serial Number: C8FD19D3C3E1-1109170238
Location: Marquette, MI

Re: lathe C axis code sample? Centroid

Post by Gary Campbell » Thu Jan 04, 2018 1:01 am

Clay...
I have no idea how you get it into a Fusion postP, nor the syntax for math function in the Centroid controller, but what I have used in the past to get a realistic feedrate (matching XY) for a rotary axis is:

115 * ({desired surface feedrate} / {diameter})
GCnC Control
CNC Control & Retrofits
https://www.youtube.com/user/Islaww1/videos

frijoli
Posts: 342
Joined: Tue Sep 12, 2017 10:03 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
MPU11 & GPIO4D -w/ 3rd Party Drives: No
DC3IOB: No
CNC11: No
CPU10 or CPU7: No
System Serial Number: none yet
Location: Outside Winston-Salem, NC

Re: lathe C axis code sample? Centroid

Post by frijoli » Thu Jan 04, 2018 7:43 am

Gary Campbell wrote:
Thu Jan 04, 2018 1:01 am
Clay...
I have no idea how you get it into a Fusion postP, nor the syntax for math function in the Centroid controller, but what I have used in the past to get a realistic feedrate (matching XY) for a rotary axis is:

115 * ({desired surface feedrate} / {diameter})
Thanks Gary. What does the 115 represent? Also, how does that work when switching from rotary to straight lines? I assume you are programming this line by line as opposed to canned cycles?

Clay
Outside Winston-Salem, NC

Gary Campbell
Posts: 61
Joined: Sat Nov 18, 2017 2:32 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
MPU11 & GPIO4D -w/ 3rd Party Drives: No
DC3IOB: No
CNC11: No
CPU10 or CPU7: No
System Serial Number: C8FD19D3C3E1-1109170238
Location: Marquette, MI

Re: lathe C axis code sample? Centroid

Post by Gary Campbell » Thu Jan 04, 2018 9:45 am

Clay...
Round numbers for 114.59 or 360 / pi
GCnC Control
CNC Control & Retrofits
https://www.youtube.com/user/Islaww1/videos

cnc_smith
Posts: 2
Joined: Mon Nov 20, 2017 10:13 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
MPU11 & GPIO4D -w/ 3rd Party Drives: No
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: No
System Serial Number: none

Re: lathe C axis code sample? Centroid

Post by cnc_smith » Thu Jan 04, 2018 11:07 am

Clay,

I have attached a sample g-code program for C-axis for the Centroid lathe. This has the feed in degrees per minute. When X or Z are moving without a C-axis move on the same line of G code the feed rate (F) is in inches per minute. This program uses the M51 and M50 to turn C-axis on and off and the M23 and M25 to turn the live tooling on and off. ( If you are using different M codes for these functions you will have to change this program to those M codes to graph and run this program). This is the same part that is shown on the Centroid website. http://www.centroidcnc.com/cnc_c_axis_lathe.html
there are photos of the part and go down to the bottom and there is a video of the part being machined.

To use a third party post processor you'll need to set the CNC Controller type for the feed to Feed in degrees/minute.
C_AXIS_EXAMPLE_1.txt
I changed the file extension from .cnc to .txt to attach the file. Centroid will run this program with the .txt extension.
(16.27 KiB) Downloaded 9 times
caxis-tooling.jpg

frijoli
Posts: 342
Joined: Tue Sep 12, 2017 10:03 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
MPU11 & GPIO4D -w/ 3rd Party Drives: No
DC3IOB: No
CNC11: No
CPU10 or CPU7: No
System Serial Number: none yet
Location: Outside Winston-Salem, NC

Re: lathe C axis code sample? Centroid

Post by frijoli » Thu Jan 04, 2018 11:53 am

cnc_smith wrote:
Thu Jan 04, 2018 11:07 am
Clay,

I have attached a sample g-code program for C-axis for the Centroid lathe. This has the feed in degrees per minute. When X or Z are moving without a C-axis move on the same line of G code the feed rate (F) is in inches per minute. This program uses the M51 and M50 to turn C-axis on and off and the M23 and M25 to turn the live tooling on and off. ( If you are using different M codes for these functions you will have to change this program to those M codes to graph and run this program). This is the same part that is shown on the Centroid website. http://www.centroidcnc.com/cnc_c_axis_lathe.html
there are photos of the part and go down to the bottom and there is a video of the part being machined.

To use a third party post processor you'll need to set the CNC Controller type for the feed to Feed in degrees/minute.

C_AXIS_EXAMPLE_1.txt

caxis-tooling.jpg
Outstanding, Thank you!!

Clay :D
Outside Winston-Salem, NC

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest