Spinx1 to 7i85

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

OT-CNC wrote: The gpio.018.out , I just added it to the net velocity-mode line and the spinx enables now. The invert pin stuff is all good, and it enables now. I get rotation now but only CW dir, regardless of M03 or M04.


if you look at the original code there was this:
# net spindle-fwd abs.0.is-positive parport.0.pin-NN-out
# net spindle-rev abs.0.is-negative parport.0.pin-NN-out

You need to connect those to the direction pins of the Spinx1

The spindle right now has a super slow ramp up. so I need to look at the pid?

Yes, start by modifying the FF0 term. You might be able to do this "live" from the machine-calibration menu item.
Once FF0 gives you the right speed, then look at the Igain.

[/quote]The M19 mode is not working yet[/quote]
That is because you are only enabling the SPINX1 in velocity-mode. That is why you need the or2 component.

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

More
10 years 11 months ago #66060 by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85

if you look at the original code there was this:
# net spindle-fwd abs.0.is-positive parport.0.pin-NN-out
# net spindle-rev abs.0.is-negative parport.0.pin-NN-out

I'm trying to pick the cw/ccw from your earlier code: setp hm2_5i25.0.pwgen.00.output-type 1 and the line below setp hm2_5i25.0.gpio.002.invert_output 1. I was trying to add the gpio.002 to the net spindle-fwd/rev but it errors out.
net spindle-rev abs.0.is-negative hm2_5i25.0.gpio.002.out-true, whats the proper ending for both?
Or is it better to have 2 pins linked? The way we had it, cw is always on.

You might be able to do this "live" from the machine-calibration menu item.

I only see x,y,z calibration menus. Is possible to get both spindle calibrations pid screens up?

/quote]The M19 mode is not working yet

That is because you are only enabling the SPINX1 in velocity-mode. That is why you need the or2 component.[/quote]

Understood. I type slow so I didn't see your response in time

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

More
10 years 11 months ago #66066 by andypugh
Replied by andypugh on topic Spinx1 to 7i85
Thinking further, I have been giving somewhat bad advice, I suspect.

There is another very long thread about the Spinx1 (parallel port config) and I keep mixing the two up.

Because you are using a Mesa card there is already a direction pin on the pwmgen. You should use this to drive the SPINX1 direction input.

The reason it isn't working is the abs function. Get rid of that, net the spindle-cmd directly to the pwmgen, and negative values will set the direction output of the pwmgen.

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

More
10 years 11 months ago #66076 by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
Thanks Andy. I will get rid of the abs function tomorrow.

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

More
10 years 11 months ago #66112 by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
Getting closer! CW/CCW works Somehow my spindle wants to ramp up to full rpm, regardless of S values set, same with m19. My RPS scale number is 60.
I tried changing encoder value to neg in case it's a runaway. No change.
Encoder hal cofig shows the values for counting, vel, rawlatch, rawcounts, position, position-latched (0) and count latched (0).
Anything else missing before I get back to PID??

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

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

OT-CNC wrote: Getting closer! CW/CCW works Somehow my spindle wants to ramp up to full rpm, regardless of S values set, same with m19. My RPS scale number is 60.


Have a look at PID command, feedback and error when that is happening.

This is probably a PID runaway of some sort. Does the encoder read positive and negative velocities correctly?
Last edit: 10 years 11 months ago by andypugh.

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

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