- 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)
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 507
- Thank you received: 320
19 Dec 2024 14:54 #316985
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
little warning !
the debouncer has been replaced in the dev branch,
if you are using it and have specified certain delay values, then check this for the next update.
now, the delay is in milliseconds, which makes the whole thing easier to configure.
the default is set to 2.5ms
the debouncer has been replaced in the dev branch,
if you are using it and have specified certain delay values, then check this for the next update.
now, the delay is in milliseconds, which makes the whole thing easier to configure.
the default is set to 2.5ms
The following user(s) said Thank You: tommylight, digiex_chris
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 507
- Thank you received: 320
19 Dec 2024 18:29 #316999
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Please Log in or Create an account to join the conversation.
- mBender
- Offline
- Premium Member
-
Less
More
- Posts: 113
- Thank you received: 11
19 Dec 2024 18:53 #317001
by mBender
Replied by mBender on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I stared to use the Github Wiki. If that's the way of moving forward with the documentation, I am happy to help. Here is a simple example. github.com/xsnoopy/riocore/wiki/BitIn
Only thing hire is missing one good in depth help file!
![]()
Anyone can open a PR with updated documentation!
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 507
- Thank you received: 320
19 Dec 2024 19:31 #317006
by meister
so they are always up to date and the text is also visable in rio-setup.
A kind of tips&tricks page would be cool for a wiki or installation instructions, for example
If someone wants to describe the plugins better, you can do that in plugin.py, e.g. here:
github.com/multigcs/riocore/blob/dev/rio...ns/bitcopy/plugin.py
than you can update the readme.md with:
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
the problem with your test page is that the plugin readme's are all generated from the source code,
Only thing hire is missing one good in depth help file!
![]()
Anyone can open a PR with updated documentation!
I stared to use the Github Wiki. If that's the way of moving forward with the documentation, I am happy to help. Here is a simple example. github.com/xsnoopy/riocore/wiki/BitIn
so they are always up to date and the text is also visable in rio-setup.
A kind of tips&tricks page would be cool for a wiki or installation instructions, for example
If someone wants to describe the plugins better, you can do that in plugin.py, e.g. here:
github.com/multigcs/riocore/blob/dev/rio...ns/bitcopy/plugin.py
than you can update the readme.md with:
make readmes
Please Log in or Create an account to join the conversation.
- mBender
- Offline
- Premium Member
-
Less
More
- Posts: 113
- Thank you received: 11
20 Dec 2024 00:54 #317019
by mBender
Replied by mBender on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Ah, ok. I guess the first thing for the wiki was identified. How to help with documentation.

Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 507
- Thank you received: 320
20 Dec 2024 17:30 #317049
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- epineh
- Offline
- Senior Member
-
Less
More
- Posts: 41
- Thank you received: 12
21 Dec 2024 00:26 #317069
by epineh
Replied by epineh on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Hi all, thanks for the help trying to solve my compile issues, in the end I used the docker method, definitely recommend this for people like myself, not too bright but can lift heavy things

Please Log in or Create an account to join the conversation.
- epineh
- Offline
- Senior Member
-
Less
More
- Posts: 41
- Thank you received: 12
22 Dec 2024 09:10 #317130
by epineh
Replied by epineh on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
So I've found something interesting, I have configured a machine, done bench testing, everything seems good.
Only issue is the estop, it seems to only trigger on the transition from input high to input low. My estop is wired how I would say is standard, normally closed contact, if the wire is cut then estop will trigger. I also tried the reverse situation, so high input is estop condition, but it will allow me to start the machine in an estop condition, until I clear the estop then activate it again. I probably haven't explained this well but the machine shouldn't startup with a hardware estop active. Actually now I think about it setting up a hardware estop when I was using a MESA card disabled the software estop button and relied on hardware estop, only the software enable button worked. Has anyone else encountered this ?
Only issue is the estop, it seems to only trigger on the transition from input high to input low. My estop is wired how I would say is standard, normally closed contact, if the wire is cut then estop will trigger. I also tried the reverse situation, so high input is estop condition, but it will allow me to start the machine in an estop condition, until I clear the estop then activate it again. I probably haven't explained this well but the machine shouldn't startup with a hardware estop active. Actually now I think about it setting up a hardware estop when I was using a MESA card disabled the software estop button and relied on hardware estop, only the software enable button worked. Has anyone else encountered this ?
Please Log in or Create an account to join the conversation.
- Zayoo
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 10
22 Dec 2024 16:47 - 22 Dec 2024 18:20 #317146
by Zayoo
Replied by Zayoo on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Create a bitout plugin, name it estop, add a pin number, and turn the onerror modifier on for that pin. This pin will control your additional safety relay, whose N.O. contact will be in series with the machine's safety line.
In rio.hal, add the following line:If everything is configured correctly, bord is energized and LinuxCNC started, relay should remain OFF until you unlatch estop.
The machine shuld only be able to turn on while LinuxCNC is running and communication between the board and LinuxCNC is functional.
In rio.hal, add the following line:
setp rio.estop.bit TRUE
The machine shuld only be able to turn on while LinuxCNC is running and communication between the board and LinuxCNC is functional.
Last edit: 22 Dec 2024 18:20 by Zayoo.
The following user(s) said Thank You: epineh
Please Log in or Create an account to join the conversation.
- MichaSch96
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
23 Dec 2024 13:42 #317195
by MichaSch96
Replied by MichaSch96 on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Hello, I'm new to LinuxCNC and found your awsome project.
I'm retrofitting an old Deckel FP3 CNC which already has Haidenhain glass scales. Since their already there I wanted to use them of course. For drives I'm using EtherCAT ones, but the Sine/Cosine Encoder interfaces from Beckhoff are very expensive.
So I would like to interpolate the sine/cosine signals of the scales to incremental quad encoders with some custom electronics. I've seen, that there are plugins for quad encoders. Do you think it is possible to use your RealtimeIO core with the encoder plugins to get the values of the scales into LinuxCNC?
Do you see, that there's an issue with RealtimeIO and EtherCAT in parallel? (For EtherCAT I'll use the NIC of the PC chipset. For RIO I wanted to use the W5500 Ethernet module with an USB-Ethernet adapter to the PC.
Thanks for your support!
I'm retrofitting an old Deckel FP3 CNC which already has Haidenhain glass scales. Since their already there I wanted to use them of course. For drives I'm using EtherCAT ones, but the Sine/Cosine Encoder interfaces from Beckhoff are very expensive.
So I would like to interpolate the sine/cosine signals of the scales to incremental quad encoders with some custom electronics. I've seen, that there are plugins for quad encoders. Do you think it is possible to use your RealtimeIO core with the encoder plugins to get the values of the scales into LinuxCNC?
Do you see, that there's an issue with RealtimeIO and EtherCAT in parallel? (For EtherCAT I'll use the NIC of the PC chipset. For RIO I wanted to use the W5500 Ethernet module with an USB-Ethernet adapter to the PC.
Thanks for your support!
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.249 seconds