- Posts: 40
- Thank you received: 0
LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
- digiex_chris
- Offline
- Senior Member
-
Less
More
1 year 11 months ago #314452
by digiex_chris
Replied by digiex_chris on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I played with PID myself some, and moving away from P250 I0 D0 just made things worse for me, the deadband was what I needed, but I was also hunting for a 4rth digit of following accuracy. Glad things are working better!
That reminds me, is there a way to configure minimum delay time between a DIR change and a movement command? some steppers are more picky about that. I also need to flip the action of the EN pin, my steppers are enable-low and it's currently outputting high when enabled.
That reminds me, is there a way to configure minimum delay time between a DIR change and a movement command? some steppers are more picky about that. I also need to flip the action of the EN pin, my steppers are enable-low and it's currently outputting high when enabled.
Please Log in to join the conversation.
1 year 11 months ago #314457
by mBender
I am running Steppers without Feedback. I wonder how the PID works in that case. If you don't have feedback, how can the PID work. My theory, the Position is commanded and the Steppgenerator reports the "theoretical" position back. Not knowing it the motor made the step or not.
When I played around with it, I lowered the values quite a bit and got a following error. Seems like to confirm my theory above. I did not notice a change from the default PID P 300 to like 30, but the following error came with P 5 or less.
I was hoping that the way my motors stall would be an overrun of the P Max value, but increasing that did not help either. I have to do more testing. It still might not be a problem of RIO, since my other motors are running just fine.
Replied by mBender on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
What kind of set up do you have? Do you have Stepper Motors with Feedback, without feedback or Servo Motors?I played with PID myself some, and moving away from P250 I0 D0 just made things worse for me, the deadband was what I needed, but I was also hunting for a 4rth digit of following accuracy. Glad things are working better!
I am running Steppers without Feedback. I wonder how the PID works in that case. If you don't have feedback, how can the PID work. My theory, the Position is commanded and the Steppgenerator reports the "theoretical" position back. Not knowing it the motor made the step or not.
When I played around with it, I lowered the values quite a bit and got a following error. Seems like to confirm my theory above. I did not notice a change from the default PID P 300 to like 30, but the following error came with P 5 or less.
I was hoping that the way my motors stall would be an overrun of the P Max value, but increasing that did not help either. I have to do more testing. It still might not be a problem of RIO, since my other motors are running just fine.
Please Log in to join the conversation.
1 year 11 months ago #314504
by mBender
Replied by mBender on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Another night with some progress. I am almost certain that my Y Axis problem is not the Tang or Rio.
I changed motors, drives, wires and pins and the stalling still happens. Then I thought measuring Direction and Step at the same time. And I believe I found the error. I measured the output of the Tang which is almost perfect. A tiny bit of noise, but really not a lot. When I measure Step and Dir at the drives Dir has a lot noise! See pictures below. I have the step and dir per motor in a single 2 conductor cable. I changed that and put the 2x dir in one cable and the left the step each in a separate cable. No change. I think I have so much noise that the driver probably thinks to change direction.
Anyone an idea how to reduce the noise? Channel B (red) is direction.
I changed motors, drives, wires and pins and the stalling still happens. Then I thought measuring Direction and Step at the same time. And I believe I found the error. I measured the output of the Tang which is almost perfect. A tiny bit of noise, but really not a lot. When I measure Step and Dir at the drives Dir has a lot noise! See pictures below. I have the step and dir per motor in a single 2 conductor cable. I changed that and put the 2x dir in one cable and the left the step each in a separate cable. No change. I think I have so much noise that the driver probably thinks to change direction.
Anyone an idea how to reduce the noise? Channel B (red) is direction.
Attachment not found
Attachment not found
Please Log in to join the conversation.
1 year 11 months ago #314521
by Mecanix
Replied by Mecanix on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Yo what's up Cult RIO & Awesome Fabricators! I hope Chief Technology Officer Oliver and his Lcnc crew are all doing fine?
Pardon my disappearance from my last updates, had to swing cross border to deal with pressing family issues (nothing health or negative related, only good stuff). The better news is when I came back I immediately rushed to the garage to see my gears and V O I L A , the RIO kit was shinning a led haha.
Everything werks spins moves scream slice chew cut chips its amazing to be back, it's just all full of f n dust everywhere though HELP lol
Thought to stop by and say Hello! Peace All ✌
Pardon my disappearance from my last updates, had to swing cross border to deal with pressing family issues (nothing health or negative related, only good stuff). The better news is when I came back I immediately rushed to the garage to see my gears and V O I L A , the RIO kit was shinning a led haha.
Everything werks spins moves scream slice chew cut chips its amazing to be back, it's just all full of f n dust everywhere though HELP lol
Thought to stop by and say Hello! Peace All ✌
Please Log in to join the conversation.
1 year 11 months ago #314523
by Mecanix
Replied by Mecanix on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Did I missed anything? New Dev? New tricks!? Is RIO finally able to read minds and make a part start to finish on its own yet? Or I still need to CAD, CAM, Gcode fix this, gcode fix that, gear in tooling, fixture stuff, dial feedrate, make coffee, dial more, make more coffee?
Link up, Oliver. If you think I've missed anything important since 90 days shoot me in the correct direction please, I'll have spare time during the weekend to spy on The Best Cult around!
Link up, Oliver. If you think I've missed anything important since 90 days shoot me in the correct direction please, I'll have spare time during the weekend to spy on The Best Cult around!
Please Log in to join the conversation.
1 year 11 months ago #314527
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Wellcome back Mecanix 
there are two new cool boards:
github.com/digiexchris/rio-solidwater-shield
github.com/festlv/rioctrl-hw
and little bugfixes in the software
@all
gitano from the german forum 'https://www.cnc-aus-holz.at'has put together a cool logo
what do you think of it ?
there are two new cool boards:
github.com/digiexchris/rio-solidwater-shield
github.com/festlv/rioctrl-hw
and little bugfixes in the software
@all
gitano from the german forum 'https://www.cnc-aus-holz.at'has put together a cool logo
Attachment not found
what do you think of it ?
Please Log in to join the conversation.
1 year 11 months ago #314569
by Mecanix
Replied by Mecanix on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I'll have a go at a fresh pull, or git checkout your updated work. I'm so worried to over-write anything though, not because I doubt any of you beyond incredible talent and knowledge, but because the existing version I've rooted for is flawless. Spi W5500 + gowin that is. I actually made quite a few parts before leaving, Nothing to regret having jumped in!!
Always good to keep updated and in the loop anyway, so I'll do that. You sound good man, good vibes, Keep it up!
Gitano's creativity is great. Doesn't look Cult'ish enough though, he needs a tattoo + blink one of his eye and it's sorted
Always good to keep updated and in the loop anyway, so I'll do that. You sound good man, good vibes, Keep it up!
Gitano's creativity is great. Doesn't look Cult'ish enough though, he needs a tattoo + blink one of his eye and it's sorted
Please Log in to join the conversation.
1 year 11 months ago #314583
by mBender
Replied by mBender on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I finally gave up. I have spend hours and hours trying to find out why my motor stall. I even contacted the manufacture of the drives and motors with no success. I replaced all wires,motors, drives, added ferrite cores,.... There is almost nothing I have not tested.
I am convinced it has nothing to do with the Rio software. But the tang vs parallel port makes the difference. The signal after the BOB comes out with less noise when I run it from the parallel port as when I have the tang connected. I don't know why and I don't know why my DM332T don't make an issue either way, but the Microkinetics does.
I will order a new drive, but that opens up a new can of worms and I may upgrade directly to servo drives...
I am convinced it has nothing to do with the Rio software. But the tang vs parallel port makes the difference. The signal after the BOB comes out with less noise when I run it from the parallel port as when I have the tang connected. I don't know why and I don't know why my DM332T don't make an issue either way, but the Microkinetics does.
I will order a new drive, but that opens up a new can of worms and I may upgrade directly to servo drives...
Please Log in to join the conversation.
1 year 11 months ago #314591
by Mecanix
Replied by Mecanix on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Hi, I'm not to familiar with the background of your issues (from a quick glance there's a hundred posts to decipher, it's overwhelming), but have you posted a concise and consolidated schematic, wiring installation and pictures of your entire set-up here or anywhere else?
Without that I highly doubt anyone (here at least) will be able to remotely assist. Although the noise issue you seem to be having has nothing to do with RIO let alone Linux CNC.
Ruling out RIO and Lcnc is easy, outputs can easily be probed while running a simple gcode program.
Without that I highly doubt anyone (here at least) will be able to remotely assist. Although the noise issue you seem to be having has nothing to do with RIO let alone Linux CNC.
Ruling out RIO and Lcnc is easy, outputs can easily be probed while running a simple gcode program.
Please Log in to join the conversation.
1 year 11 months ago #314592
by Mecanix
Replied by Mecanix on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
If I'd have to do it all over again I'd start with that incredibly simple yet super powerful starter kit.
github.com/multigcs/rio-tangbob
So damn simple, and simplicity RULES. Not much can go wrong here.
So damn simple, and simplicity RULES. Not much can go wrong here.
Please Log in to join the conversation.
Time to create page: 0.218 seconds
