Mesa 7i96 spindle encoder on Lathe

More
25 Jul 2019 23:37 #140590 by pmconsulting
Hi Hakan,

I've changed the .hal file lines to:
# ---Encoder feedback signals/setup---

setp    hm2_7i96.0.encoder.00.counter-mode 0
setp    hm2_7i96.0.encoder.00.filter 1
setp    hm2_7i96.0.encoder.00.index-invert 1
setp    hm2_7i96.0.encoder.00.index-mask 0
setp    hm2_7i96.0.encoder.00.index-mask-invert 0
setp    hm2_7i96.0.encoder.00.scale  4000

net velocity-rpm => hm2_[HOSTMOT2](BOARD).0.encoder.00.velocity-rpm

net spindle-revs               [HOSTMOT2](BOARD).encoder.0.position
net spindle-revs               motion.spindle.0.revs

net spindle-index-enable       [HOSTMOT2](BOARD).encoder.0.index-enable
net spindle-index-enable       motion.spindle.0.index-enable

Currently getting error: Pin '7i96.encoder.0.position' does not exist.

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

More
25 Jul 2019 23:46 #140591 by pmconsulting
changed the error line to:
net spindle-revs hm2_7i96.0.encoder.00.position

That took care of that error. Next error is on the next line:
net spindle-revs motion.spindle.0.revs

Error is: Pin 'motion.spindle.0.revs' does not exist.

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

More
25 Jul 2019 23:55 - 26 Jul 2019 00:12 #140592 by PCW
As I said in an earlier post its best to get the actual pin names from the manual
or via halcmd show pin.

I _think_ the current name is spindle.0.revs _BUT_ there is no need to guess

man motion
or
halcmd show pin *spindle*

will give a definitive answer
Last edit: 26 Jul 2019 00:12 by PCW.

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

More
25 Jul 2019 23:59 - 26 Jul 2019 00:01 #140594 by pmconsulting
This works to launch Axis without an error:
net spindle-revs               hm2_7i96.0.encoder.00.position
net spindle-revs               spindle.0.revs

net spindle-index-enable       hm2_7i96.0.encoder.00.index-enable
net spindle-index-enable       spindle.0.index-enable

And hot damn! My spindle speed displays correctly!

Member racedirector pointed out that you can remove the 'motion.' part from Hakan's lines to make it work. Here's his post: forum.linuxcnc.org/24-hal-components/353...rward-does-not-exist
Last edit: 26 Jul 2019 00:01 by pmconsulting.

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

More
26 Jul 2019 00:09 #140596 by Hakan
I thought that is what I said, but there you go.

Now do som threads :)

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

More
26 Jul 2019 17:47 #140664 by pmconsulting
You did, Hakan. I’m just foggy from all of this!

My next challenge is to figure out how to make actual threads. The Fusion360 linuxcnc-turning post configuration apparently does not support synchronized threading.

I’m looking for advice for how to go about actually doing some threading without having to manually write g-code. I did see a post config for a dongle that derives a sync signal from the z stepper output, but have found nothing for 7i96 synced threads.

Any ideas?

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

More
26 Jul 2019 18:16 - 26 Jul 2019 18:19 #140668 by PCW
Spindle synchronized motion is a built in feature of LinuxCNC
It is independent of the interface hardware (as long as the hardware
can interface to a spindle encoder)

Spindle synchronized threading is done with the G76 GCode

Are you sure F360 does not support G76 with their LinuxCNC post?
The F360 forum mentions G76 in relation to the LinuxCNC post
Last edit: 26 Jul 2019 18:19 by PCW.

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

More
26 Jul 2019 18:43 - 26 Jul 2019 18:47 #140672 by pmconsulting
I've been web sniffing since making a simple cylinder with threads and generating gcode. Opening the file in Linuxcnc presents an error: 'P code missing for G76 command'. This happens regardless of whether I check the "use cycles" box in the CAM setup.

Hunting around for that error seems to indicate that the linux-turning file that Fusion 360 uses to generate the G-code does not yet support synchronized spindle threading.

I'm wondering if there isn't a canned routine I could use, or some type of template file. I've installed andypugh's LinuxCNC Features (github.com/cnc-club/linuxcnc-features) as that seems to be what I need. Still need to study the instructions to make sure I have it installed & configured correctly. But again - I'm not sure if these tools support sync'd threading on the lathe either.

You really need to relax and enjoy the hunt for solutions to CNC! I've solved far more things than I have left, though. Keeps me going!
Last edit: 26 Jul 2019 18:47 by pmconsulting.

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

More
26 Jul 2019 18:51 - 26 Jul 2019 19:15 #140674 by PCW
So it sounds like F360s LinuxCNC post is close but still broken
Maybe someone here has a patch for the post or a filter that fixes F360s Gcode
EDIT
This appear to be a F360 post for LinuxCNC lathes:

github.com/vilts/linuxcnc-f360
Last edit: 26 Jul 2019 19:15 by PCW.

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

More
28 Jul 2019 21:20 #140840 by andypugh

I've installed andypugh's LinuxCNC Features (github.com/cnc-club/linuxcnc-features) as that seems to be what I need.


That's not mine :-)

LinuxCNC-features became "NativeCAM" so installing that is probably a good idea.

Hand-coding a G76 is not too hard, you can do it in the MDI window, it is only one line.

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

Moderators: PCWjmelson
Time to create page: 0.095 seconds
Powered by Kunena Forum