linuxcnc with Hilscher cifx 50e-re/rtem

More
17 Aug 2018 09:41 #116197 by myz
I have a Hilscher card cifx 50E-RE/RTEM, I want to use it on linuxcnc, but I don't know what I need to do. I want to pass the servo command information to the servo motor through this card, but I don't know what information I need to get from the motion control library, although I can get a lot of information. Can anyone tell me? Thank you!

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

More
21 Aug 2018 22:14 #116429 by andypugh
Is it a PCI card?

You would need to write a HAL driver. This isn't actually all that difficult, especially if you copy an existing driver.

One very simple driver that I wrote can be found here, it is for an ISA card so isn't something you can copy directly, but shows that fundamentally the drivers just read memory-mapped data from the card and convert it to values on HAL pins.
It is written in the .comp pre-processing format to be compiled by Halcompile. It is possible that you can do the same with your card.

github.com/LinuxCNC/linuxcnc/blob/master.../drivers/pcl720.comp

I think that the Motenc driver was written before halcompile was developed.

github.com/LinuxCNC/linuxcnc/blob/master...drivers/hal_motenc.c

Is a reasonable example of a pCI driver.

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

More
22 Aug 2018 02:30 #116441 by myz
thanks a lot!

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

Time to create page: 0.090 seconds
Powered by Kunena Forum