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

More
29 Jul 2025 06:01 #332507 by meister
@Russell should work, but modbus is very very slow, so not usable for things like servo motors.

@mBender:

you can overwrite all ini parameters in the json config and also add MDI commands:
    "linuxcnc": {
        "gui": "axis",
        "ini": {
            "HALUI": {
                "MDI_COMMAND|Go To Zero": "G0 X0 Y0",
                "MDI_COMMAND||Gripper|0": "M68 E0 Q-100",
                "MDI_COMMAND||Gripper|25": "M68 E0 Q-75",
                "MDI_COMMAND||Gripper|50": "M68 E0 Q0",
                "MDI_COMMAND||Gripper|75": "M68 E0 Q75",
                "MDI_COMMAND||Gripper|100": "M68 E0 Q100"
            },
            "DISPLAY": {
                "MAX_LINEAR_VELOCITY": 60.0,
                "MAX_ANGULAR_VELOCITY": 60.0
            }
        },

you can also add your own .hal file to postgui_call_list.hal (this entry will not be overwritten)

# cat Output/TangNano9K/LinuxCNC/postgui_call_list.hal
source custom_postgui.hal
source my-own.hal


about the laptop/PC, try to reinstall the rio.c component:
sudo halcompile --install riocore/files/rio.c

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

More
29 Jul 2025 06:03 #332508 by meister
you can also set the ini defaults in the setup gui:
Attachments:

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

More
29 Jul 2025 11:22 #332516 by epineh
Yep cool, I am thinking of things like feedrate override, jog speed, rapid override etc nothing "realtime". We have noticed Modbus is slow with general IO, horses for courses I guess.

I've had more electronic parts turn up today so I plan to get busy on the weekend and start testing Riosub over the next few weeks. I've got 4 and 6 axis closed loop controller boards ready to test, both with dual Modbus connections and shift register out, so I can trial multiple combinations... will keep you posted. 

Cheers,
Russell.
The following user(s) said Thank You: meister

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

More
29 Jul 2025 12:48 #332518 by meister
for the overwrite stuff i prefer encdoders:

www.youtube.com/shorts/jnna9jJnXfs

Modbus speed test:
www.youtube.com/shorts/ZcQjW4829R0

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

More
08 Aug 2025 01:12 - 08 Aug 2025 01:17 #333026 by mBender

[code]about the laptop/PC, try to reinstall the rio.c component:

[code]sudo halcompile --install riocore/files/rio.c
[/code][/code]


 

It worked, problem was on the hadrware side. Another USB Hub did the trick.
Last edit: 08 Aug 2025 01:17 by mBender.
The following user(s) said Thank You: meister

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

More
10 Aug 2025 18:14 - 10 Aug 2025 18:15 #333179 by probotix
@mBender
Where you at in Florida? How can I contact you?

JCLPCB delivered my self made PCB board. Testing ongoing. I had to order 5 boards. If anyone is interested in one, I have a few spares. Located in the Florida USA. 

Last edit: 10 Aug 2025 18:15 by probotix.

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

More
11 Aug 2025 09:18 #333205 by mBender
I guess the easiest is find me on Facebook. Mike Bender, I'm in St Lucie County,but can ship everywhere. 

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

More
15 Aug 2025 02:59 - 15 Aug 2025 03:01 #333449 by epineh
Just wondering if the existing tang primer 20K plugin will work for the tang primer 20k Lite board? It is a simpler board than the dev board and has 117 available IO. It's not a great deal more expensive than the nano9k.
Last edit: 15 Aug 2025 03:01 by epineh.

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

More
15 Aug 2025 05:45 #333452 by meister
> Just wondering if the existing tang primer 20K plugin will work for the tang primer 20k Lite board?

works !
The following user(s) said Thank You: epineh

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

More
15 Aug 2025 13:57 - 15 Aug 2025 22:28 #333467 by epineh
I am going to see what we can squeeze out of the Nano9K for now, but its nice to know we can use something with a lot of direct IO in the future if needed. That 20K Lite board is a pretty solid option.

Cheers.
Russell.
Last edit: 15 Aug 2025 22:28 by epineh.

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

Time to create page: 0.171 seconds
Powered by Kunena Forum