Spinx1 to 7i85

More
10 years 11 months ago - 10 years 11 months ago #65188 by andypugh
Replied by andypugh on topic Spinx1 to 7i85

OT-CNC wrote: The only thing wrong now is the pwm is reversed?


That's bizarre. One possibility is that you have it wired incorrectly, so it is active-low.

[strike]If you are _sure_ that the wiring is correct (and the scope will answer that question) then you can invert the output pin

setp hm2_5i25.0.gpio.NNN.invert-output 1[/strike]

This is all my fault. For some reason I earlier told you to invert the output.

setp hm2_5i25.0.gpio.017.invert_output 0
Last edit: 10 years 11 months ago by andypugh.

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

More
10 years 11 months ago #65189 by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
Code:
setp hm2_5i25.0.gpio.017.invert_output 0

I will try that but wasn't that just for the enable? How does that change the pwm signal?

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

More
10 years 11 months ago #65190 by andypugh
Replied by andypugh on topic Spinx1 to 7i85

OT-CNC wrote: I will try that but wasn't that just for the enable? How does that change the pwm signal?


Ah, was it?

In that case, no, that isn't what you want.

Look in the dmesg output, find out what pin the PWM is on, then invert that one the same way.
The following user(s) said Thank You: OT-CNC

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

More
10 years 11 months ago - 10 years 11 months ago #65191 by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
Awwsome! That did the trick! :woohoo:

I will have more questions I'm sure as my goal is to get closed loop spindle to work but that's for later....

Thank you Andy and PCW for your help!
Last edit: 10 years 11 months ago by OT-CNC. Reason: left out pcw!!!

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

More
10 years 11 months ago - 10 years 11 months ago #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?
Last edit: 10 years 11 months ago by OT-CNC.

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

More
10 years 11 months ago #65739 by andypugh
Replied by andypugh on topic Spinx1 to 7i85

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 or Create an account to join the conversation.

Moderators: PCW, jmelson
Time to create page: 0.061 seconds
Powered by Kunena Forum