Can't get lathe to Feed
06 Aug 2021 18:11 #217067
by rider-83
Replied by rider-83 on topic Can't get lathe to Feed
In my HAL file (as referenced above) those statements are present.
If I set my scale to 50 still no feed movements in G1
If I swap G95 to G94, still no movements in G1.
What am I doing wrong ?
If I set my scale to 50 still no feed movements in G1
If I swap G95 to G94, still no movements in G1.
What am I doing wrong ?
Please Log in or Create an account to join the conversation.
06 Aug 2021 20:00 #217082
by andypugh
Replied by andypugh on topic Can't get lathe to Feed
I suspect that spindle-at-speed is being too picky. It seems to be set up to accept 1% error, which is probably far too tight.
Change
To
Also open a halmeter (eg from the "machine" menu in Axis) and watch the signal "spindle-at-speed" and the pin "spindle.0.at-speed"
Change
# set the spindle speed inputs to agree if within 1%
setp near.0.scale 1.01
To
# set the spindle speed inputs to agree if within 1%
setp near.0.scale 1.333
Also open a halmeter (eg from the "machine" menu in Axis) and watch the signal "spindle-at-speed" and the pin "spindle.0.at-speed"
Please Log in or Create an account to join the conversation.
07 Aug 2021 09:40 - 07 Aug 2021 10:32 #217111
by rider-83
Replied by rider-83 on topic Can't get lathe to Feed
OK, scale is now 1.333
RPM SET TO 500, and M3
Still no feed.
HALMeter shows:
spindle-at-speed =FALSE
spindle.0.at-speed = FALSE
pulse-index-combined = swaps FALSE/TRUE
spindle-velocity = 8
spindle-cmd-rpm = 500
spindle-cmd = 0
RPM SET TO 500, and M3
Still no feed.
HALMeter shows:
spindle-at-speed =FALSE
spindle.0.at-speed = FALSE
pulse-index-combined = swaps FALSE/TRUE
spindle-velocity = 8
spindle-cmd-rpm = 500
spindle-cmd = 0
Last edit: 07 Aug 2021 10:32 by rider-83.
Please Log in or Create an account to join the conversation.
07 Aug 2021 14:00 #217119
by rider-83
Replied by rider-83 on topic Can't get lathe to Feed
In an attempt to try and understand,Ive tried a few things:
Should 'spindle-velocity' display (via halmeter) the true RPM?
If so, if I change the scale from 100 to 1.6, then my rpm matches that of the displayed rpm on the drive.
Then if I swap 'net spindle-cmd => near.0.in2' to 'net spindle-cmd-rpm => near.0.in2' then 'spindle.0.at-speed' goes TRUE.
But, still no feed movements,
I'm not saying this is the correct thing to do, but just an effort to track my problem
Should 'spindle-velocity' display (via halmeter) the true RPM?
If so, if I change the scale from 100 to 1.6, then my rpm matches that of the displayed rpm on the drive.
Then if I swap 'net spindle-cmd => near.0.in2' to 'net spindle-cmd-rpm => near.0.in2' then 'spindle.0.at-speed' goes TRUE.
But, still no feed movements,
I'm not saying this is the correct thing to do, but just an effort to track my problem
Please Log in or Create an account to join the conversation.
07 Aug 2021 18:42 #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.
07 Aug 2021 18:56 #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
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.
08 Aug 2021 12:49 #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)
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.
08 Aug 2021 13:49 #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.
08 Aug 2021 14:21 #217232
by PCW
Replied by PCW on topic Can't get lathe to Feed
Free up a parallel port input and add an index sensor would be one way.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.
08 Aug 2021 14:22 #217233
by PCW
Replied by PCW on topic Can't get lathe to Feed
Yes, of course this cannot compensate for speed variations during the turn so works better at higher speeds and constant loadsJust 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.
Time to create page: 0.108 seconds