LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

More
01 Sep 2026 11:22 #349172 by Oxbown
Thanks @meister , now works! 
Two more things:
-1: would be grateful if we could make a preconfig for that kind of board.

-2: In case of host disconnection...Can I force a value?. For example, if some of the signals are high, if I close the Linuxcnc, I want to force all signals low.

 Thank you.

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

More
01 Sep 2026 11:59 #349174 by meister
cool :)

1: you mean a mbus_device template ? yes i will check it

2: Do you mean the Modbus outputs? Yes, there is something there, but I’ll need to check it again as I’ve rewritten the Modbus plugins. (Error values)
Basically, it’s just the Modbus message but without the address and without the CSUM.
This is then sent when the FPGA detects an error (disconnect / timeout).

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

More
03 Sep 2026 11:12 #349277 by Oxbown
@meister I tested your last dev commit, and the N4D3E16 template only works with the outputs; the inputs don't work.
Thank you so much for your work!

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

More
03 Sep 2026 11:40 #349279 by meister
ok, i have order one, than i can fix and test it the right way :)
maybe next monday

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

More
03 Sep 2026 12:11 #349281 by meister
try again, found a bug

and now you can try to set the Error_Values to
6 0 112 0 0

this should switch all outputs to off on connection errors (PC<->FPGA)

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

More
26 Sep 2026 05:19 - 26 Sep 2026 05:20 #349887 by viewsat
Hello, does the N4D3E16 test work correctly? I'd also like to order one to try it out.
Last edit: 26 Sep 2026 05:20 by viewsat.
The following user(s) said Thank You: meister

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

More
26 Sep 2026 10:23 #349890 by meister
The following user(s) said Thank You: viewsat

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

More
29 Oct 2026 09:13 #350532 by MirkoCNC
Hello Meister

Since a week, I have been trying to set up a rotary axis A with a TangBob. It works at snail speed, but not at higher speed. I am always confronted with joint follow error of the axis.
I need the axis in a winder setup to wind bobbins. Hence A must rotate "endless" depending on the windings I want to achieve. I need to achieve at least 1000 rpm. There is no problem with a linear axis.
I have used rio-flow-gui to set up an open loop stepper type angular, 1600 micro steps. Scale in and scale out are set to 1600. Whatever I do with the ini parameters to achieve higher speeds it fails on the joint follow error.
As I do not understand the internal mechanics of the actual feedback that should confirm the requested speed, I am lost. Furthermore, I do not understand the fole of the PID, which should have no meaning for an open loop set up.
I also cannot find any example of my application to help me out.
Hence, I hope you can help me out to set up a rotary axis at 1000 rpm to overcome that joint follower error (in simulation mode and with the hardware (currently only with the Tangboard only - no ChinaBob attached).
Thanks a lot in advance.

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

More
29 Oct 2026 09:27 #350534 by meister
Hi Mirko,

The external step generators are controlled by velocity commands, so they require a PID controller to convert the position into velocity commands.

To start with, set the error parameter for the rotary axis to 20 and the min-error to 2:

Flow -> StepDir plugin -> Joint -> General -> *error

I hope that sorts out the follow error for now.

You can also lower the acceleration parameter.
Most default settings are for linear axes and will not work well with rotary axes.

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

More
30 Oct 2026 06:43 #350554 by MirkoCNC
Thanks a lot for your immediate help! That has solved the problem and I can go ahead with the rest of the project.
By the way, I have changed a bit the PID parameters, which has improved the situation, but did not solved it.
FF1 = 1
FF=0.02
MAXOUTPUT=30000
(1000 rpm and high acceleration of 5500 works now)

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

Time to create page: 0.265 seconds
Powered by Kunena Forum