Spinx1 to 7i85
- OT-CNC
- Offline
- Platinum Member
Less
More
- Posts: 623
- Thank you received: 75
24 Nov 2015 16:44 - 24 Nov 2015 16:46 #65738
by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
I have been busy setting parameters on my vfd. It's a Mitsubishi A700 with encoder feedback card.
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?
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?
Last edit: 24 Nov 2015 16:46 by OT-CNC.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23559
- Thank you received: 4858
24 Nov 2015 16:49 #65739
by andypugh
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
Replied by andypugh on topic Spinx1 to 7i85
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 or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
Less
More
- Posts: 623
- Thank you received: 75
25 Nov 2015 15:11 #65779
by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
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.
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?
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 or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23559
- Thank you received: 4858
25 Nov 2015 16:49 #65784
by andypugh
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
Replied by andypugh on topic Spinx1 to 7i85
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 or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
Less
More
- Posts: 623
- Thank you received: 75
25 Nov 2015 17:23 - 25 Nov 2015 17:25 #65786
by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
Cool. I got the simulation to work. I just commented out line 33.
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
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
Last edit: 25 Nov 2015 17:25 by OT-CNC. Reason: linked hal
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23559
- Thank you received: 4858
25 Nov 2015 17:31 - 25 Nov 2015 17:32 #65787
by andypugh
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+
Replied by andypugh on topic Spinx1 to 7i85
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+
Last edit: 25 Nov 2015 17:32 by andypugh.
Please Log in or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
Less
More
- Posts: 623
- Thank you received: 75
25 Nov 2015 18:01 #65788
by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
That's a pretty serious project you got going on there and making your own patterns! Will these be cast in aluminum or iron?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23559
- Thank you received: 4858
25 Nov 2015 18:26 #65789
by andypugh
Replied by andypugh on topic Spinx1 to 7i85
Iron, I am using a commercial foundry.Will these be cast in aluminum or iron?
Please Log in or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
Less
More
- Posts: 623
- Thank you received: 75
25 Nov 2015 19:43 #65791
by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
I'm editing the hal for my machine, and the splash screen keeps teasing me. It almost loads.
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?
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 or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
Less
More
- Posts: 623
- Thank you received: 75
25 Nov 2015 20:28 #65795
by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
actually, it errors out earlier:
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
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 or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.076 seconds