- Posts: 617
- Thank you received: 0
Spinx1 to 7i85
Couldn't figure out why the spindle would drop out below 5hz. Turned out to be a min speed setting within the drive. Now I have it set to .01hz. Now it's running well at slow rpms.
The drive has a ton of options for control. Such as being able to switch from velocity to position control via external input.
I experimented with that, just to see if I can do spindle orient using internal position command. That works and is pretty cool.
What I want to do next is use linuxcnc for closed loop lathe spindle and C axis control. I realize that in practice, I will probably need to add a brake to the spindle as my 5hp setup is on the low end of things probably even for 5c indexing.
So I need a little education on how to proceed with this in linuxcnc. I'd like to keep the spinx for control.
So far, I have failed at configuring even the basic closed loop spindle as somehow the spindle at speed thing is not working. The Z just pauses when testing a threading file.
I followed the examples in the integrator manual under spindle feedback. The near component errored out. Do I even follow that path or are the hm2 configurations different?
I need a clean hal file example for the basic closed loop to work with Mesa hardware.
Also, I have looked at the vismach files. Should I dive into those instead and edit everything for lathe use?
Please Log in to join the conversation.
OT-CNC wrote: Also, I have looked at the vismach files. Should I dive into those instead and edit everything for lathe use?
The file here:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...756e24039816;hb=HEAD
Should work equally well with lathe or mill.
It is an implementation of:
wiki.linuxcnc.org/cgi-bin/wiki.pl?SpindleOrient
Please Log in to join the conversation.
This is a simulation, so I assume nothing needs to be connected or pins assigned? Where did I go wrong? Also, the 5i25 is in this pc. I assume that does not affect the simulation?
Please Log in to join the conversation.
OT-CNC wrote: I place the folder containing all the vismach files into the my configuration directory. I start linuxcnc and look for the gray or index config, both error out at hal:33 Pin 'orient.0.is-oriented does not exist.
That pin will exist in the next 2.7 release. (I thought it was due in 2.8, until I checked)
Alternatively, there is a workaround in the 2.7 HAL file here:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...da74c7c58a8d88630dd0
Please Log in to join the conversation.
I'm on 2.7.1, I see the linked hal is for 2.7.2. Do I need to upgrade before trying to make this work?
Amazing capability here. I wish I was at your level of understanding. I almost want to tackle a lathe sim. No problem for me making the solid model but beyond that not at this point :ohmy:
Please Log in to join the conversation.
OT-CNC wrote: I almost want to tackle a lathe sim. No problem for me making the solid model but beyond that not at this point
A lathe might be fun, and I already have a solid model of a lathe:
The docs for Vismach are here:
linuxcnc.org/docs/2.7/html/gui/vismach.html
The alternative spindle-HAL ought to work with any LinuxCNC version 2.6+
Please Log in to join the conversation.
Please Log in to join the conversation.
Iron, I am using a commercial foundry.OT-CNC wrote: Will these be cast in aluminum or iron?
Please Log in to join the conversation.
I know I'm not connecting things correctly.
It errors out around here:
net spindle-pos pid.1.feedback orient.0.position
net spindle-vel pid.0.feedback hm2_5i25.0.encoder.03.velocity
spindle.hal:37: Pin 'pid.0.feedback" does not exist
if I continue with #, next line errors out. What do I have to change?
Please Log in to join the conversation.
loadrt pid num-chan=2
I bumped up the number of channels to 4 and no good.
The error is hal:13:exit value: 1
insmod for pid failed, returned -1
Please Log in to join the conversation.
