What's new
What's new

C axis With Centroid Acorn

scatgo

Plastic
Joined
Dec 3, 2023
In do have some experience with X Y Z programing on a milling machine but i know nothing about C Axis Programing. Centroid has a video of the type of work i need to do and a sample program. I was hoping someone could help me decipher the sample program so I can learn how to deal with this. I would guess that all the programming would start at zero degrees. And C- would rotate the spindle clockwise and C+ would rotate the spindle counterclockwise. But if you look at the program all C axis move are C-????

I just found this information..........10.22 M51 – C-axis Enable (Optional)M51 is the command to enable the C-axis and is locked as a software option. When C-axis is enabled, the C-axis labelwill be present on the DRO, and encoder information for the C-axis is used to determine the position of the C-axis. Inorder for the M51 command to work, the 3rd- or 4th-axis label must be set to ‘C’ with the associated parameter (93 for3rd-axis and 94 for 4th-axis) set for C-axis operation. In practical applications, the default behavior for the M51command is modified using a custom mfunc51.mac program to ensure that the spindle has stopped before the C-axisis enabled.Example: mfunc51.mac:G97 ; Turn off CSS (constant surface speedM3 S0 ; Turn off spindleM101 /9 ; Wait for zero speed signal form inverter on INP9M94 /9 ; Switch to torque modeM51 ; Perform the default actions for C axis enableM151 ; Unwind C-axis positionNote in the above examples for M50 and M51 where the M95/9 (turn off INP41) and M94/9 (turn on INP41) commandsare used, it is assumed that the PLC program, conditioned upon the state of INP41, has been modified to output theappropriate hardware signals required to switch between speed and torque mode

https://www.centroidcnc.com/cnc_c_axis_lathe.html:

G20 ; INCH
G28 ; TOOL CHANGE POSITION
G97 G98 ; Cancel Constant Surface Speed and Feed per Minute
; This set up was the a gang style lathe.
; Tool 1 is a 1/4" end mill in a Live tool holder.
; Live tooling has the 1/4" end held horizontal to the X axis plane.
T0101 ; CHANGE TO TOOL 1 WITH OFFSET 1 for 1/4" ENDMILL
M51 ; TURN C AXIS ON
M23 ;Turn Live tooling ON
G0 G54 X1.5 M8
G0 Z-2.0035
C-75.068
G0 X1.25
G98 G1 X.95 Z-1.8975 C-87.222 F1396.21
Z-1.1904 C-168.251 F2000.
Z-1.1769 C-170.046
Z-1.1657 C-172.04
Z-1.1571 C-174.196
Z-1.1513 C-176.47
Z-1.1483 C-178.815
C-181.185
Z-1.1513 C-183.531
Z-1.1571 C-185.805
Z-1.1657 C-187.961
Z-1.1769 C-189.955
Z-1.1904 C-191.746
Z-1.8975 C-272.778
Z-1.9131 C-274.326 F1911.47
Z-1.9305 C-275.607 F1571.38
Z-1.9493 C-276.592 F1200.22
Z-1.9692 C-277.259 F810.25
Z-1.9897 C-277.597 F408.11
Z-2.0103 F25.
Z-2.0308 C-277.259 F408.1
Z-2.0507 C-276.592 F810.25
Z-2.0695 C-275.607 F1200.21
Z-2.0869 C-274.326 F1571.37
Z-2.1025 C-272.774 F1916.53
Z-2.8096 C-191.749 F2000.
Z-2.8231 C-189.955
Z-2.8343 C-187.961
Z-2.8429 C-185.805
Z-2.8487 C-183.531
Z-2.8517 C-181.185
C-178.815
Z-2.8487 C-176.47
Z-2.8429 C-174.196
Z-2.8343 C-172.04
Z-2.8231 C-170.046
Z-2.8096 C-168.255
Z-2.1025 C-87.222
Z-2.0869 C-85.675 F1910.84
Z-2.0695 C-84.394 F1571.38
Z-2.0507 C-83.409 F1200.22
Z-2.0308 C-82.742 F810.25
Z-2.0103 C-82.404 F408.11
Z-1.9897 F25.
Z-1.9692 C-82.742 F408.11
Z-1.9493 C-83.409 F810.25
Z-1.9305 C-84.394 F1200.21
Z-1.9131 C-85.675 F1571.37
Z-1.8975 C-87.227 F1916.53
Z-2.0035 C-75.068 F2000.
X1.2 F7.
X.9 Z-1.8975 C-87.222 F1414.39
Z-1.1904 C-168.251 F2000.
Z-1.1769 C-170.046
Z-1.1657 C-172.04
Z-1.1571 C-174.196
Z-1.1513 C-176.47
Z-1.1483 C-178.815
C-181.185
Z-1.1513 C-183.531
Z-1.1571 C-185.805
Z-1.1657 C-187.961
Z-1.1769 C-189.955
Z-1.1904 C-191.746
Z-1.8975 C-272.778
Z-1.9131 C-274.326 F1952.08
Z-1.9305 C-275.607 F1593.71
Z-1.9493 C-276.592 F1210.08
Z-1.9692 C-277.259 F813.26
Z-1.9897 C-277.597 F408.49
Z-2.0103 F25.
Z-2.0308 C-277.259 F408.49
Z-2.0507 C-276.592 F813.26
Z-2.0695 C-275.607 F1210.08
Z-2.0869 C-274.326 F1593.7
Z-2.1025 C-272.774 F1957.48
Z-2.8096 C-191.749 F2000.
Z-2.8231 C-189.955
Z-2.8343 C-187.961
Z-2.8429 C-185.805
Z-2.8487 C-183.531
Z-2.8517 C-181.185
C-178.815
Z-2.8487 C-176.47
Z-2.8429 C-174.196
Z-2.8343 C-172.04
Z-2.8231 C-170.046
Z-2.8096 C-168.255
Z-2.1025 C-87.222
Z-2.0869 C-85.675 F1951.42
Z-2.0695 C-84.394 F1593.71
Z-2.0507 C-83.409 F1210.08
Z-2.0308 C-82.742 F813.26
Z-2.0103 C-82.404 F408.49
Z-1.9897 F25.
Z-1.9692 C-82.742 F408.49
Z-1.9493 C-83.409 F813.26
Z-1.9305 C-84.394 F1210.08
Z-1.9131 C-85.675 F1593.7
Z-1.8975 C-87.227 F1957.48
Z-2.0035 C-75.068 F2000.
X1.15 F7.
X.85 Z-1.8975 C-87.222 F1432.39
Z-1.1904 C-168.251 F2000.
Z-1.1769 C-170.046
Z-1.1657 C-172.04
Z-1.1571 C-174.196
Z-1.1513 C-176.47
Z-1.1483 C-178.815
C-181.185
Z-1.1513 C-183.531
Z-1.1571 C-185.805
Z-1.1657 C-187.961
Z-1.1769 C-189.955
Z-1.1904 C-191.746
Z-1.8975 C-272.778
Z-1.9131 C-274.326 F1992.99
Z-1.9305 C-275.607 F1615.74
Z-1.9493 C-276.592 F1219.64
Z-1.9692 C-277.259 F816.14
Z-1.9897 C-277.597 F408.85
Z-2.0103 F25.
Z-2.0308 C-277.259 F408.85
Z-2.0507 C-276.592 F816.14
Z-2.0695 C-275.607 F1219.64
Z-2.0869 C-274.326 F1615.73
Z-2.1025 C-272.774 F1998.73
Z-2.8096 C-191.749 F2000.
Z-2.8231 C-189.955
Z-2.8343 C-187.961
Z-2.8429 C-185.805
Z-2.8487 C-183.531
Z-2.8517 C-181.185
C-178.815
Z-2.8487 C-176.47
Z-2.8429 C-174.196
Z-2.8343 C-172.04
Z-2.8231 C-170.046
Z-2.8096 C-168.255
Z-2.1025 C-87.222
Z-2.0869 C-85.675 F1992.28
Z-2.0695 C-84.394 F1615.74
Z-2.0507 C-83.409 F1219.64
Z-2.0308 C-82.742 F816.14
Z-2.0103 C-82.404 F408.85
Z-1.9897 F25.
Z-1.9692 C-82.742 F408.85
Z-1.9493 C-83.409 F816.14
Z-1.9305 C-84.394 F1219.64
Z-1.9131 C-85.675 F1615.73
Z-1.8975 C-87.227 F1998.73
Z-2.0035 C-75.068 F2000.
X1.1 F7.
X.8 Z-1.8975 C-87.222 F1450.18
Z-1.1904 C-168.251 F2000.
Z-1.1769 C-170.046
Z-1.1657 C-172.04
Z-1.1571 C-174.196
Z-1.1513 C-176.47
Z-1.1483 C-178.815
C-181.185
Z-1.1513 C-183.531
Z-1.1571 C-185.805
Z-1.1657 C-187.961
Z-1.1769 C-189.955
Z-1.1904 C-191.746
Z-1.8975 C-272.778
Z-1.9131 C-274.326
Z-1.9305 C-275.607 F1637.36
Z-1.9493 C-276.592 F1228.86
Z-1.9692 C-277.259 F818.89
Z-1.9897 C-277.597 F409.2
Z-2.0103 F25.
Z-2.0308 C-277.259 F409.2
Z-2.0507 C-276.592 F818.89
Z-2.0695 C-275.607 F1228.86
Z-2.0869 C-274.326 F1637.36
Z-2.1025 C-272.774 F2000.
Z-2.8096 C-191.749
Z-2.8231 C-189.955
Z-2.8343 C-187.961
Z-2.8429 C-185.805
Z-2.8487 C-183.531
Z-2.8517 C-181.185
C-178.815
Z-2.8487 C-176.47
Z-2.8429 C-174.196
Z-2.8343 C-172.04
Z-2.8231 C-170.046
Z-2.8096 C-168.255
Z-2.1025 C-87.222
Z-2.0869 C-85.675
Z-2.0695 C-84.394 F1637.36
Z-2.0507 C-83.409 F1228.86
Z-2.0308 C-82.742 F818.89
Z-2.0103 C-82.404 F409.2
Z-1.9897 F25.
Z-1.9692 C-82.742 F409.2
Z-1.9493 C-83.409 F818.89
Z-1.9305 C-84.394 F1228.86
Z-1.9131 C-85.675 F1637.36
Z-1.8975 C-87.227 F2000.
G0 X1.5 C-87.222
Z-2.3605 C-179.979
X1.2
G1 X.95 F7.
Z-2.0238 C-218.653 F2000.
Z-2.0004 C-221.408
Z-1.9998 C-221.482
Z-1.9816 C-219.525
Z-1.6411 C-180.293
Z-1.639 C-180.039
Z-1.9756 C-141.43
Z-1.9995 C-138.596
Z-2.0002 C-138.515
Z-2.0174 C-140.358
Z-2.3605 C-179.979
X.9 F7.
Z-2.0238 C-218.653 F2000.
Z-2.0004 C-221.408
Z-1.9998 C-221.482
Z-1.9816 C-219.525
Z-1.6411 C-180.293
Z-1.639 C-180.039
Z-1.9756 C-141.43
Z-1.9995 C-138.596
Z-2.0002 C-138.515
Z-2.0174 C-140.358
Z-2.3605 C-179.979
X.85 F7.
Z-2.0238 C-218.653 F2000.
Z-2.0004 C-221.408
Z-1.9998 C-221.482
Z-1.9816 C-219.525
Z-1.6411 C-180.293
Z-1.639 C-180.039
Z-1.9756 C-141.43
Z-1.9995 C-138.596
Z-2.0002 C-138.515
Z-2.0174 C-140.358
Z-2.3605 C-179.979
X.8 F7.
Z-2.0238 C-218.653 F2000.
Z-2.0004 C-221.408
Z-1.9998 C-221.482
Z-1.9816 C-219.525
Z-1.6411 C-180.293
Z-1.639 C-180.039
Z-1.9756 C-141.43
Z-1.9995 C-138.596
Z-2.0002 C-138.515
Z-2.0174 C-140.358
Z-2.3605 C-179.979
G0 X1.5
Z-2.163 C-179.948
X1.2
G1 X.95 F7.
Z-1.999 C-198.78 F2000.
Z-1.8366 C-180.069
Z-2.0009 C-161.227
Z-2.163 C-179.948
X.9 F7.
Z-1.999 C-198.78 F2000.
Z-1.8366 C-180.069
Z-2.0009 C-161.227
Z-2.163 C-179.948
X.85 F7.
Z-1.999 C-198.78 F2000.
Z-1.8366 C-180.069
Z-2.0009 C-161.227
Z-2.163 C-179.948
X.8 F7.
Z-1.999 C-198.78 F2000.
Z-1.8366 C-180.069
Z-2.0009 C-161.227
Z-2.163 C-179.948
G0 X1.5
Z-2.0177 C-76.689
X1.25
G1 X.95 Z-1.9116 C-88.843 F1396.21
Z-1.2045 C-169.871 F2000.
Z-1.1918 C-171.58
Z-1.1815 C-173.497
Z-1.174 C-175.573
Z-1.1694 C-177.759
Z-1.1679 C-180.
Z-1.1694 C-182.241
Z-1.174 C-184.427
Z-1.1815 C-186.504
Z-1.1918 C-188.421
Z-1.2045 C-190.13
Z-1.9116 C-271.157
Z-1.9265 C-272.618 F1901.68
Z-1.9432 C-273.793 F1517.18
Z-1.9614 C-274.653 F1104.22
Z-1.9804 C-275.178 F670.56
Z-2. C-275.354 F224.84
Z-2.0196 C-275.178
Z-2.0386 C-274.653 F670.56
Z-2.0568 C-273.793 F1104.22
Z-2.0735 C-272.618 F1517.18
Z-2.0884 C-271.158 F1900.01
Z-2.7955 C-190.129 F2000.
Z-2.8082 C-188.421
Z-2.8185 C-186.504
Z-2.826 C-184.427
Z-2.8306 C-182.241
Z-2.8321 C-180.
Z-2.8306 C-177.759
Z-2.826 C-175.573
Z-2.8185 C-173.497
Z-2.8082 C-171.58
Z-2.7955 C-169.871
Z-2.0884 C-88.843
Z-2.0735 C-87.383 F1901.02
Z-2.0568 C-86.208 F1517.18
Z-2.0386 C-85.348 F1104.22
Z-2.0196 C-84.823 F670.56
Z-2. C-84.647 F224.84
Z-1.9804 C-84.823
Z-1.9614 C-85.348 F670.56
Z-1.9432 C-86.208 F1104.22
Z-1.9265 C-87.383 F1517.18
Z-1.9116 C-88.843 F1900.01
Z-2.0177 C-76.689 F2000.
X1.2 F7.
X.9 Z-1.9116 C-88.843 F1414.39
Z-1.2045 C-169.871 F2000.
Z-1.1918 C-171.58
Z-1.1815 C-173.497
Z-1.174 C-175.573
Z-1.1694 C-177.759
Z-1.1679 C-180.
Z-1.1694 C-182.241
Z-1.174 C-184.427
Z-1.1815 C-186.504
Z-1.1918 C-188.421
Z-1.2045 C-190.13
Z-1.9116 C-271.157
Z-1.9265 C-272.618 F1941.66
Z-1.9432 C-273.793 F1537.25
Z-1.9614 C-274.653 F1111.89
Z-1.9804 C-275.178 F672.26
Z-2. C-275.354 F224.9
Z-2.0196 C-275.178
Z-2.0386 C-274.653 F672.26
Z-2.0568 C-273.793 F1111.88
Z-2.0735 C-272.618 F1537.25
Z-2.0884 C-271.158 F1939.88
Z-2.7955 C-190.129 F2000.
Z-2.8082 C-188.421
Z-2.8185 C-186.504
Z-2.826 C-184.427
Z-2.8306 C-182.241
Z-2.8321 C-180.
Z-2.8306 C-177.759
Z-2.826 C-175.573
Z-2.8185 C-173.497
Z-2.8082 C-171.58
Z-2.7955 C-169.871
Z-2.0884 C-88.843
 
Last edited:
Can you formulate a specific question that describes what you need to know? The G-code listing appears pretty conventional so I can't tell what you don't understand about it.

The other description you show is about configuring the Centroid PLC before you even think about loading up G code so that is for the control integrator/installer.
 
G98 G1 X.95 Z-1.8975 C-87.222 F1396.21
The feedrate is for the C-axis, in degree per minute.
The X and Z feedrates are suitably adjusted by the control, to reach the specified point at the same time, along all axes.
 
The feedrate is for the C-axis, in degree per minute.
The X and Z feedrates are suitably adjusted by the control, to reach the specified point at the same time, along all axes.
OK now we are getting somewhere. But if you watch the video of the dimond shape grove being machined why dont we see any z+ or c+ in the sample program?
 
Can you formulate a specific question that describes what you need to know? The G-code listing appears pretty conventional so I can't tell what you don't understand about it.

The other description you show is about configuring the Centroid PLC before you even think about loading up G code so that is for the control integrator/installer.
I cant see why every c move is - and every z is - If you watch the vide of the diamond shape being cut the spindle rotates both ways and the z axis moves - and+.
 
Last edited:
I don't have time to look at a video but it appears you're in absolute coordinate mode so there is definitely some back and forth in that code. If you go from a larger negative to a smaller negative you are reversing course.
 
The feedrate is for the C-axis, in degree per minute.
The X and Z feedrates are suitably adjusted by the control, to reach the specified point at the same time, along all axes.
G98 G1 X.95 Z-1.8975 C-87.222 F1396.21
Z-1.1904 C-168.251 F2000.
Z-1.1769 C-170.046
Z-1.1657 C-172.04
Z-1.1571 C-174.196
Z-1.1513 C-176.47
Z-1.1483 C-178.815
C-181.185
Z-1.1513 C-183.531
Z-1.1571 C-185.805
Z-1.1657 C-187.961
Z-1.1769 C-189.955
Z-1.1904 C-191.746
Z-1.8975 C-272.778

I just dont see how all xz and c movements are Minus. If you watch the video You will see plenty of z+ moves and many c cw and counter clockwise moves.
 
Last edited:
As explained earlier, these are absolute moves, a move from Z -2 to Z -1 is an incremental move of Z +1. Likewise a move from C -150 to C -140 is an incremental move of C +10. That is why you see changes in direction. Look up absolute vs incremental moves (G90, G91).
 








 
Back
Top