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

More
3 years 2 months ago #278273 by meister
first step to integrate the Hunayang VFD into RIO :)

youtube.com/shorts/cMVN13VCYEs

only a test to check the modbus protocol , not sure if i should use a microcontroller between FPGA and the VFD or implementing the modbus direct into the FPGA.
The following user(s) said Thank You: eduardo20

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

More
3 years 2 months ago #278288 by MaxEkb77

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

More
3 years 2 months ago #278292 by meister
yes, but only to understand the protocol and for testing the max485

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

More
3 years 2 months ago #278457 by meister
The following user(s) said Thank You: tommylight

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

More
3 years 2 months ago - 3 years 2 months ago #279528 by fest
I am now designing a single-axis prototype for interfacing +/-10V servo drive and RS422 encoder for Colorlight i5 devboard (basically to verify hardware building blocks before making a modular multi-axis one). 

One feature I noticed is lacking is some kind of watchdog that expects an update (patting) from linuxcnc and disables an output if not updated every 10-100ms. Something similar to this is often used in controllers that are commanded by PC, as a safeguard for PC/OS/linuxcnc crash. Hardware would then drive the outputs to a safe state (i.e. disabled motors and spindle).
Another possible implementation to safeguard against FPGA malfunction (be it gateware issue, a poor contact in clock signal or just user deciding to reflash FPGA with motors running) is to have FPGA generate a low frequency PWM when update is received, and hardware monitoring that there is an activity on the pin (IIRC there are watchdog ICs for this purpose), instead of just low or high signal coming from FPGA.


I'll probably take a shot at implementing this once I'm happy with the single axis prototype.


Edit: I realized such a feature can be implemented in a higher level (and sure, it already is implemented) without special support in driver/hardware controller.
Last edit: 3 years 2 months ago by fest.

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

More
3 years 2 months ago #279549 by meister
hi,
a kind of watchdog is implemented,
it monitors for new SPI signals and disables the enable output of the steppers. There is also an LED output that is switched in case of an error.

A special hardware watchdog is not available but I would be happy to support you in implementing such a function.
The following user(s) said Thank You: fest

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

Time to create page: 0.127 seconds
Powered by Kunena Forum