Can't get lathe to Feed

More
5 years 2 months ago #217149 by rider-83
Replied by rider-83 on topic Can't get lathe to Feed
I should very much like to contact the person who has successfully converted this Boxford machine to work with LinuxCNC. It would save me a whole world of frustration.

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #217150 by PCW
Replied by PCW on topic Can't get lathe to Feed
# set the HAL encoder to 100 pulses per revolution.
setp encoder.3.position-scale 100

#set the HAL encoder count mode
setp encoder.0.counter-mode 1

# connect the HAL encoder outputs to LinuxCNC.
net spindle-position encoder.0.position-interpolated => spindle.0.revs
net spindle-velocity encoder.0.velocity => spindle.0.speed-in
net spindle-index-enable encoder.0.index-enable <=> spindle.0.index-enable

#Connect HAL Encoder to Parallel Port
net pulse-index-combined parport.1.pin-10-in encoder.0.phase-A encoder.0.phase-Z


A couple mistakes here

1. You cannot use a combined index-Z/A unless you have 1 count per turn
(index must be 1 count/turn)

2. You are using encoder.0.velocity (which is scaled in RPS) rather than encoder.0.velocity-rpm

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #217218 by rider-83
Replied by rider-83 on topic Can't get lathe to Feed
I'm not sure what my solution is here:

1. You cannot use a combined index-Z/A unless you have 1 count per turn
(index must be 1 count/turn)

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #217229 by rider-83
Replied by rider-83 on topic Can't get lathe to Feed
Just out of interest, is it possible to use a sensor wheel with only 'one' slot and set the scale to '1'. I'm only asking out of curiosity

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #217232 by PCW
Replied by PCW on topic Can't get lathe to Feed

I'm not sure what my solution is here:

1. You cannot use a combined index-Z/A unless you have 1 count per turn
(index must be 1 count/turn)
 
Free up a  parallel port input and add an index sensor would be one way.
 

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #217233 by PCW
Replied by PCW on topic Can't get lathe to Feed

Just out of interest, is it possible to use a sensor wheel with only 'one' slot and set the scale to '1'. I'm only asking out of curiosity
 
Yes, of course this cannot compensate for speed variations during the turn so works better at higher speeds and constant loads

Please Log in or Create an account to join the conversation.

Time to create page: 0.270 seconds
Powered by Kunena Forum