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.

Time to create page: 0.174 seconds
Powered by Kunena Forum