How to make lathe from rotary axis

More
7 years 11 months ago #120157 by aleksamc
I have 4 axis machine. A - rotary axis with stepper motor.

I need to turn on continious rotation of this axis without G-code coordinates as lathe.
I need to generate step signals to stepper drive infinetly (preferebly using M-code). Monitoring current coordinate of axis A should stay untouched (not counts) would be very nice.

I saw in docs that stepgen has velocity mode (v). How to configure it?
loadrt stepgen.5 step_type=0 ctrl_type=v // like this?


Is some body know, how to make it?
Please help me with this.

Please Log in to join the conversation.

More
7 years 11 months ago #120205 by cmorley
One way to do this is to have two INI one for A as an axis one A for spindle.
If you want to switch back an forth in one setup that's tougher.
Linuxcnc has no simple way to ignore movement of an axis.
It can be done - IIRC it involves HAL trickery to fool linuxcnc.

Chris M

Please Log in to join the conversation.

More
7 years 11 months ago #120256 by andypugh
One possibility, as you appear to be using software step-generation, would be to combine the output of the normal A-axis stepgen with the output of a velocity-mode stepgen.
Code:
loadrt stepgen step_type=0 ctrl_type=ppppv loadrt or2 addf or2.0 base-thread net a-pos-step stepgen.3.step => or2.0.in0 net a-vel-step stepgen.4.step => or2.0.in0 net a-both-step or2.0.out => parport.0.pin-99-out net axis.3.motor-pos-cmd => stapgen.3.position-cmd net motion.spindle-speed-out-rps-abs => stepgen.4.velocity-cmd

Would this be the only spindle, or do you already have motion.spindle.... operating a tool spindle? If that is the case then you would have to command the A-axis spindle with M68 commands (or switch to the development branch of LinuxCNC which supports multiple spindles)

Please Log in to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum