linuxcnc with Hilscher cifx 50e-re/rtem
- myz
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 0
17 Aug 2018 09:41 #116197
by myz
linuxcnc with Hilscher cifx 50e-re/rtem was created 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.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4865
21 Aug 2018 22:14 #116429
by andypugh
Replied by andypugh on topic linuxcnc with Hilscher cifx 50e-re/rtem
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.
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.
- myz
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 0
22 Aug 2018 02:30 #116441
by myz
Replied by myz on topic linuxcnc with Hilscher cifx 50e-re/rtem
thanks a lot!
Please Log in or Create an account to join the conversation.
Time to create page: 0.045 seconds