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

More
16 Nov 2024 16:42 #314601 by mBender

Hi, I'm not to familiar with the background of your issues (from a quick glance there's a hundred posts to decipher, it's overwhelming), but have you posted a concise and consolidated schematic, wiring installation and pictures of your entire set-up here or anywhere else?

Without that I highly doubt anyone (here at least) will be able to remotely assist. Although the noise issue you seem to be having has nothing to do with RIO let alone Linux CNC.

Ruling out RIO and Lcnc is easy, outputs can easily be probed while running a simple gcode program.
 

Yeah, you are probably right. But I think even then remote troubleshooting is pretty difficult. I may open up another thread in the forum. But right now I need a break and look for something else. Still need to get Modbus working for my spindle. Will be starting with that soon.

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

More
17 Nov 2024 03:21 #314639 by mBender
I changed the Y Axis motors back to the Nema 23 with the DM332T driver. 3200 Microsteps/rpm and I can go up to 6000mm/min without an issue.
Handwheel xhc-whb04b-6 is working as well.

Now I am focusing on getting Modbus and the spindle to work. This is the last thing I need to run the mill with the Tang. Can someone confirm that this wiring is correct for the Max485?
 
Attachments:

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

More
17 Nov 2024 04:37 - 17 Nov 2024 05:13 #314643 by Mecanix
StackExchange and EEVBlog are both fantastic venues for brainstorming and validating electrical/circuit ideas and designs, you'd find accurate answers to your questions in a finger snap and be done already. I highly doubt a Lcnc forum will be of any help. Great place for software, configs, dev, and industrial motion control hardware though, mostly.
Last edit: 17 Nov 2024 05:13 by Mecanix.
The following user(s) said Thank You: mBender

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

More
17 Nov 2024 04:55 - 17 Nov 2024 05:14 #314644 by Mecanix
[deleted] potentially misleading, no hands on exp. sorry ab that. 
Last edit: 17 Nov 2024 05:14 by Mecanix.

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

More
18 Nov 2024 07:28 #314721 by meister

That reminds me, is there a way to configure minimum delay time between a DIR change and a movement command? some steppers are more picky about that. I also need to flip the action of the EN pin, my steppers are enable-low and it's currently outputting high when enabled.
 


you can config modifier's to each pin, there are functions like invert, debounce, ...

 

to add an delay between step and dir, you can add a debounce modifier to the step pin, than you have a delayed step signal


 
Attachments:
The following user(s) said Thank You: digiex_chris

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

More
19 Nov 2024 04:13 #314822 by mBender
I need someone pointing me in the right direction to get my spindle running.

I can either try to get classic ladder to work. For whatever reason, it will not work with Rio.

This is the code rio creates in the rio.hal file.
loadrt classicladder_rt
addf classicladder.0.refresh servo-thread

If I start LinuxCNC, it is not in Modbus Master mode. So I changed the configuration. This is what works on the same machine.
loadrt classicladder_rt numS32out=100
addf classicladder.0.refresh servo-thread
loadusr classicladder --modmaster vfd.clp

When I start LinuxCNC I get the following error:
Shared memory conflict or RT component not loaded!
ERROR CLASSICLADDER-   Ladder memory allocation error

I tried to remove the numS32out=100, but no success. I can load the program manually with the ladder editor, but it is still not in modmaster mode and won't work.

I could also continue to work on the Modbus integration. I know which registers to read and write from my VFD, but need some starting help to translate this:

 

Into this:
 
 
Attachments:

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

More
19 Nov 2024 15:10 - 19 Nov 2024 15:27 #314852 by digiex_chris
I suspect you will likely get more helpful help in the classicladder section, I don't see this as an issue specifically with riocore, particularly with the error indicating memory issues in the classicladder components, rather than the riocore driver. At the very least, there likely is more classicladder experts watching that section than here.

www.forum.linuxcnc.org/25-classicladder

The only thing I can think of is the order the gui loads in vs the classicladder user mode stuff matters. I've seen some people use -w and -W to make the loading wait until things are complete as well. I needed to do that for one of my custom (non-classicladder) programs, needed to have it wait for the hal stuff to be complete before continuing to load the hal file.

linuxcnc.org/docs/stable/html/ladder/cla..._non_realtime_module

The example configs in the linux cnc repo have been quite helpful for me personally, there might be some hints in there for your use case as well
github.com/LinuxCNC/linuxcnc/blob/master...dder/demo_sim_cl.hal
Last edit: 19 Nov 2024 15:27 by digiex_chris.

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

Time to create page: 0.407 seconds
Powered by Kunena Forum