- Posts: 19311
- Thank you received: 4655
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
Yes, start by modifying the FF0 term. You might be able to do this "live" from the machine-calibration menu item.The spindle right now has a super slow ramp up. so I need to look at the pid?
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.
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.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
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.
I only see x,y,z calibration menus. Is possible to get both spindle calibrations pid screens up?You might be able to do this "live" from the machine-calibration menu item.
That is because you are only enabling the SPINX1 in velocity-mode. That is why you need the or2 component.[/quote]/quote]The M19 mode is not working yet
Understood. I type slow so I didn't see your response in time
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
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.
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?
Please Log in or Create an account to join the conversation.