- Posts: 33
- Thank you received: 10
LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
- viewsat
- Offline
- Junior Member
-
Less
More
3 months 1 day ago #348212
by viewsat
Replied by viewsat on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I'm using a Tang Nano 9k FPGA. How do I configure it to output a PWM signal to the spindle?
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 806
- Thank you received: 502
3 months 1 day ago #348213
by meister
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
there is an example:
./bin/rio-flow riocore/configs/TangNano9K/config.json
./bin/rio-flow riocore/configs/TangNano9K/config.json
The following user(s) said Thank You: viewsat
Please Log in or Create an account to join the conversation.
- babinda01
- Offline
- Junior Member
-
Less
More
- Posts: 29
- Thank you received: 2
3 months 1 day ago #348239
by babinda01
Replied by babinda01 on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Hi Guys. I have used RIOcore on a Tang Nano 9k (TangBOB board) a couple of times. I am now wanting to try out Ethercat. I was wondering what my options are for doing this. I want to use a RP5 with the Tang connected via an SPI connection to the GPIO pins on the RP5. My first question is where do I connect my Ethercat Drives? from the RP5 or from the Wiznet module connected to the Tang. I would dearly love it if all my configurations for Ethercat can be done within RIOcore.
Cheers
Andrew
Cheers
Andrew
Please Log in or Create an account to join the conversation.
- viewsat
- Offline
- Junior Member
-
Less
More
- Posts: 33
- Thank you received: 10
3 months 1 day ago #348255
by viewsat
Replied by viewsat on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
I use ./bin/rio-flow riocore/configs/TangNano9K/config.json
The automatically generated ini and HAL files cannot output a 1kHz PWM spindle signal. Do I need to edit the HAL and ini files myself to output the spindle PWM signal?
The automatically generated ini and HAL files cannot output a 1kHz PWM spindle signal. Do I need to edit the HAL and ini files myself to output the spindle PWM signal?
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 806
- Thank you received: 502
3 months 1 day ago #348260
by meister
Hi Andrew,
EtherCAT must be connected directly to the RPi5. Rio runs independently of it; it can only adopt part of the configuration (and even then, only to a limited extent).
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
Hi Guys. I have used RIOcore on a Tang Nano 9k (TangBOB board) a couple of times. I am now wanting to try out Ethercat. I was wondering what my options are for doing this. I want to use a RP5 with the Tang connected via an SPI connection to the GPIO pins on the RP5. My first question is where do I connect my Ethercat Drives? from the RP5 or from the Wiznet module connected to the Tang. I would dearly love it if all my configurations for Ethercat can be done within RIOcore.
Cheers
Andrew
Hi Andrew,
EtherCAT must be connected directly to the RPi5. Rio runs independently of it; it can only adopt part of the configuration (and even then, only to a limited extent).
Please Log in or Create an account to join the conversation.
- meister
- Offline
- Platinum Member
-
Less
More
- Posts: 806
- Thank you received: 502
3 months 1 day ago #348262
by meister
Which interface are you using, and where do you want the PWM output to be?
To use the spindle in LinuxCNC, you still need to configure it in the “Signals” tab.
dty/net = spindle.0.speed-out
enable/net = spindle.0.on
@all WARNING: Serial/USB does work, but it's really just for testing;
I wouldn't use it in a production environment.
Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
What does your setup look like?I use ./bin/rio-flow riocore/configs/TangNano9K/config.json
The automatically generated ini and HAL files cannot output a 1kHz PWM spindle signal. Do I need to edit the HAL and ini files myself to output the spindle PWM signal?
Which interface are you using, and where do you want the PWM output to be?
To use the spindle in LinuxCNC, you still need to configure it in the “Signals” tab.
dty/net = spindle.0.speed-out
enable/net = spindle.0.on
@all WARNING: Serial/USB does work, but it's really just for testing;
I wouldn't use it in a production environment.
The following user(s) said Thank You: viewsat
Please Log in or Create an account to join the conversation.
Time to create page: 0.155 seconds