- Hardware & Machines
- Computers and Hardware
- LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
- Oxbown
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 2
01 Sep 2026 11:22 #349172
by Oxbown
Replied by Oxbown on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
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.
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.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 806
- Thank you received: 502
01 Sep 2026 11:59 #349174
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
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).
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.
- Oxbown
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 2
03 Sep 2026 11:12 #349277
by Oxbown
Replied by Oxbown on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
@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!
Thank you so much for your work!
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 806
- Thank you received: 502
03 Sep 2026 11:40 #349279
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
ok, i have order one, than i can fix and test it the right way 
maybe next monday
maybe next monday
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 806
- Thank you received: 502
03 Sep 2026 12:11 #349281
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
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)
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.
- viewsat
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 10
26 Sep 2026 05:19 - 26 Sep 2026 05:20 #349887
by viewsat
Replied by viewsat on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
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.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 806
- Thank you received: 502
26 Sep 2026 10:23 #349890
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Mine works
The following user(s) said Thank You: viewsat
Please Log in or Create an account to join the conversation.
- MirkoCNC
- Offline
- Junior Member
-
Less
More
- Posts: 21
- Thank you received: 2
29 Oct 2026 09:13 #350532
by MirkoCNC
Replied by MirkoCNC on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
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.
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.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 806
- Thank you received: 502
29 Oct 2026 09:27 #350534
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
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.
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.
- MirkoCNC
- Offline
- Junior Member
-
Less
More
- Posts: 21
- Thank you received: 2
30 Oct 2026 06:43 #350554
by MirkoCNC
Replied by MirkoCNC on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
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)
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.
- Hardware & Machines
- Computers and Hardware
- LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Time to create page: 0.265 seconds