Advanced Search

Search Results (Searched for: )

  • richcolvin
  • richcolvin's Avatar
20 Mar 2025 16:54
C Axis as Second Spindle was created by richcolvin

C Axis as Second Spindle

Category: General LinuxCNC Questions

I am looking for guidance on how to setup the C axis as a second spindle.  This is for a rose engine lathe (otbok.info/index.php?n=Main.RoseEngineLathe) where we need to use:
  1. the Spindle to rotate the piece, and
  2. the C axis to rotate the rosettes used to impart the design
We turn these quite slowly, certainly less than 10 RPM, and at times speeds approaching 3 or 4 minutes per revolution.  Thusly we are using stepper motors for both axes.

The end goal is to drive the spindle and the C axis simultaneously, but specifying a relationship percentage for their rotational speeds.  For example, 
RPM of the C-axis = x% of RPM of the Spindle
Is there some documentation I can read which describes 
  1. How to setup LinuxCNC to treat the C-axis as a secondary spindle, and
  2. The G-code I would use.
Apologies if this is already been asked and answered:  I searched the forum and could not find it.
  • Tntmold
  • Tntmold
20 Mar 2025 15:10 - 20 Mar 2025 15:55
Replied by Tntmold on topic General Questions about using ethercat

General Questions about using ethercat

Category: EtherCAT

Thanks for your help, I used the output from lcec_configgen and replaced all the BLANK halType entries as S32 or U32, but now I get other errors, am I missing information in the xml file?:


phil@SodickA:~/linuxcnc/configs/sim.axis$ linuxcnc lathe.ini
LINUXCNC - 2.9.3
Machine configuration directory is '/home/phil/linuxcnc/configs/sim.axis'
Machine configuration file is 'lathe.ini'
Starting LinuxCNC...
libnml/buffer/shmem.cc 320: Shared memory buffers toolCmd and toolCmd may conflict. (key=1004(0x3EC))
libnml/buffer/shmem.cc 320: Shared memory buffers toolSts and toolSts may conflict. (key=1005(0x3ED))
libnml/buffer/shmem.cc 320: Shared memory buffers emcError and emcError may conflict. (key=1003(0x3EB))
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(LIB): /usr/share/linuxcnc/hallib/basic_sim.tcl
setup_kins: cmd=loadrt trivkins coordinates=xz
Found file(REL): ./ethercat.hal
LCEC: Invalid appTimePeriod of 0 for master 0 (should be 1000000).
LCEC: Invalid appTimePeriod of 0 for master 0 (should be 1000000).

link (updating variable file): No such file or directory
note: MAXV     max: 3.333 units/sec 200.000 units/min
note: LJOG     max: 3.333 units/sec 200.000 units/min
note: LJOG default: 1.000 units/sec 60.000 units/min
note: jog_order='ZX'
note: jog_invert={'X'}
task: main loop took 0.038776 seconds
task: main loop took 0.019003 seconds
Shutting down and cleaning up LinuxCNC...
task: 32479 cycles, min=0.000007, max=0.038776, avg=0.001059, 2 latency excursions (> 10x expected cycle time of 0.001000s)
Note: Using POSIX realtime
 
Displaying 18076 - 18077 out of 18077 results.
Time to create page: 1.469 seconds
Powered by Kunena Forum