Mach3 -> Camtronics -> Parallel P Replacement

More
23 Dec 2020 00:47 - 23 Dec 2020 00:49 #192904 by tommylight
Encoder->7i76e
Red->TB3 Pin 6
White->TB3 Pin 7
Green->TB3 Pin 10
Black->TB3 Pin 9
Last edit: 23 Dec 2020 00:49 by tommylight.
The following user(s) said Thank You: rdeeming

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

More
24 Dec 2020 23:16 #193152 by rdeeming
I can not seem to dig up a good example of getting the hal configured for the spindle speed.

I am referencing this document for guidance on the 7i76e and the spindle.

I am referencing this section of document for guidance but having trouble bridging the gap between it and the 7i76e.

Is there a working hal configuration somewhere that would be more specific to the 7i76e and an encoder connected to TB3 A+ B+ used for threading operations?

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

More
24 Dec 2020 23:42 #193153 by tommylight
The section you linked to explicitly mentions this:
The StepConf Wizard can perform the connections for you if you select Encoder Phase A and Encoder Index as inputs.
So you do need an encoder with an index output, usually mentioned as Z, the versions with C some will work some will not, older Yaskawa encoders have A B and C but no index.
Have a look, somewhere there must be a hal file, although it will not help as much as you think, it is much better to make your own config using Pncconf as it does produce a fully working config for 7i76E

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

More
24 Mar 2021 22:39 #203553 by rdeeming
I think I am to a spot where I could use some help getting spindle speed working for threading operations.

Attached is my current hal and ini config files along with a screen shot of what I am seeing in the GUI.

I assume when things are right my GUI DRO Vel will show the actual spindle speed in (RPM?).

I bought a cheap tach to measure the actual spindle speed.

Setting the manual spindle speed control dial on the lathe speed control to ~30.0Hz, I am getting ~592 RPM at that setting.

I played around with the ENCODER_SCALE setting to get where I am at.

The screen shot of the hal meter shows the spindle-vet-fb-rps bouncing around 591.

A little math issue RPM to RPS but I am not sure why I am not seeing some value for spindle-vet-fb-rpm.

Any help is always appreciated.


rdeeming@cnc:~/linuxcnc/configs/Patriot2011-backlash$ grep -i ENCODER Patriot2011.ini
ENCODER_SCALE = 40.2
rdeeming@cnc:~/linuxcnc/configs/Patriot2011-backlash$ grep -i spindle Patriot2011.hal | egrep "vel|rev|ENC"
net spindle-vel-cmd-rpm => pid.s.command
net spindle-vel-fb-rpm => pid.s.feedback
setp [HMOT](CARD0).encoder.00.scale [SPINDLE_0]ENCODER_SCALE
net spindle-revs <= [HMOT](CARD0).encoder.00.position
net spindle-vel-fb-rps <= [HMOT](CARD0).encoder.00.velocity
net spindle-vel-cmd-rps <= spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm <= spindle.0.speed-out
net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-ccw <= spindle.0.reverse
net spindle-revs => spindle.0.revs
net spindle-vel-fb-rps => spindle.0.speed-in
net spindle-manual-ccw halui.spindle.0.reverse
Attachments:

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

More
25 Mar 2021 17:32 - 25 Mar 2021 21:33 #203628 by rdeeming
Got things a bit closer to the quest to do threading with the lathe.

Attached is the latest screen shot with RPMs showing.

Off to figure out how to get BobCad post processor to create gcode that linuxCNC appreciates using for thread operations.
Attachments:
Last edit: 25 Mar 2021 21:33 by rdeeming. Reason: sloppy typing

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

More
27 Mar 2021 21:46 #203841 by andypugh
Note that LinuxCNC does not use the spindle.0.speed-in pin for threading, it slaves the Z axis to spindle.0.revs

You will not be able to thread until you link the spindle.0.index-enable pin to the encoder index-enable.

Rather than persuade Bob CAD to thread for you, consider using G76 in the MDI window. It's a single line of G-code.
The only wrinkle is that you need to position the tool in the right place relative to the work first, as many of the parameters are relative to the starting position.
The following user(s) said Thank You: rdeeming, arvidb

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

More
31 Mar 2021 17:22 #204242 by rdeeming
Ran a test cutting 3/4" bar 6061-T6511 to have 3/4 16NF thread on 1" long.
I can't call it a success.... Ok the result is actually horrific.

With the tool offset .125" away from the outer edge and end of the bar.
G76 Z-1.125 P.063 I-.125 J.005 K.065 Q29 H1

It looks like I am not quite there getting the revolutions.
Looking at spindle-revs, marking a point I turned the spindle 20 revs and yes in fact it is considerably short.

When using Mach3 I had a single tigger (a magnet) attached to the lathe shaft recording one rotation.

Now using LinuxCNC with an encoder what kind of trouble have I created using an encoder that is spinning off the lathe shaft relying on no slipping and perfect timing.
Attachments:

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

More
31 Mar 2021 17:53 #204249 by andypugh

Now using LinuxCNC with an encoder what kind of trouble have I created using an encoder that is spinning off the lathe shaft relying on no slipping and perfect timing.


You might have been better off keeping the single pulse, LinuxCNC can work with that (about as well as Mach, ie not very)

Your current arrangement would probably work if you used an index pulse from the spindle rather than from the encoder.

But best would be to swap the friction-wheel for a toothed-belt.
(This might be a good application for a 3-d printed toothed belt)

Is there a spacer on the end of the spindle that could be replaced by a timing pulley?

Here is one I made earlier

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

More
31 Mar 2021 18:49 - 31 Mar 2021 18:49 #204257 by rdeeming
I'd like to keep the back part of the lathe shaft open to turn long stock and not have to cut it all the time.

To do that I need to find a pulley for the shaft that is ~2.25" in diameter. Then I can cut it like you did there and sleeve the lock rings that are on the end of the shaft.

So far google is not digging up pulleys that large with something like an 8mm belt.

I'll keep looking around.
Last edit: 31 Mar 2021 18:49 by rdeeming.

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

More
01 Apr 2021 00:04 #204335 by andypugh
www.bearingboys.co.uk/3M-Section-Timing-...iming-Pulley-21189-p

Might be a bit tight on material under the teeth.

But this 5mm one is pretty comfortable.
www.bearingboys.co.uk/5M-Section-Timing-...iming-Pulley-21224-p

I made my own , as I have the right gear hob for T5 belt.
The following user(s) said Thank You: rdeeming

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

Time to create page: 0.386 seconds
Powered by Kunena Forum