- Posts: 3
- Thank you received: 0
integrating sensoray pci card with linuxcnc
Sorry if my english is off the standard as it is not my first language.
I am building a laser printer using galvo
The two component that I am currently using are as below:
- an class 0 galvo that take in +-10V analog voltage
- sensoray 826 PCI interface card
The idea of having the interface card is to allowed output of +- 10V analog voltage as a position control signal for the galvo and also modulation for the laser.
The problem that I could not get my head around are as below:
1) Is there a way to translate the xy coordinate to a signal value that can be sent/read/wire to an PCI interface card so the interface card know what analog voltage to sent to the galvo.
2) and would I need a hal driver so that linuxcnc know how to pass this value to the PCI interface card?
I had install the given driver from sensoray website. When I run 'lsmod' in terminal I could see the module is running but I am not sure how to make linuxcnc talk or sent a signal to the PCI interface card.
Please advise.
Please Log in to join the conversation.
fit2cnc wrote: I had install the given driver from sensoray website. When I run 'lsmod' in terminal I could see the module is running but I am not sure how to make linuxcnc talk or sent a signal to the PCI interface card..
I would be surprised if the supplied driver was a LinuxCNC realtime driver, though it is not impossible.
Do you absolutely have to use the Sensoray card? There are other options for +/- 10V output that already work.
Do you have any documentation for the card or the driver? It can often be surprisingly easy to write a new HAL driver.
Please Log in to join the conversation.
Do you absolutely have to use the Sensoray card? There are other options for +/- 10V output that already work.
Not limited to that card, since I got this card with me, I want to try what I can before moving to alternative as I am aware there are alternative out there.
I know that this would be a challenging task but I am willing to face it, but at the moment I can't seem to progress any further cos I am not sure how to get linuxcnc to sent signal back and forth with this card.
Do you have any documentation for the card or the driver? It can often be surprisingly easy to write a new HAL driver.
Here's a S826 card Technical Manual can be found on this link: www.sensoray.com/downloads/man_826_hw_3.0.5.pdf
I was worried that it would be difficult task to write a HAL driver.
Where do I start looking into writing HAL driver for this card? :pinch:
Please Log in to join the conversation.
fit2cnc wrote: Where do I start looking into writing HAL driver for this card? :pinch:
The manual you just posted looks like a good start.
The documentation for the hal component generator is here:
linuxcnc.org/docs/html/hal/comp.html
It might be called halcompile on your system, we changed the name.
A HAL driver written in .comp might look a bit like this.
This is very minimalist, and probably won't work, but shows the basics and might be a basis for elaboration (value checking, more setup, add the DIO, support for boards other than board 0, handle error returns, etc etc.
It is probably worth a try just to see what happens.
Please Log in to join the conversation.
andypugh wrote:
The manual you just posted looks like a good start.
The documentation for the hal component generator is here:
linuxcnc.org/docs/html/hal/comp.html
It might be called halcompile on your system, we changed the name.
Thanks andy, that's a good starting point. I am wondering does the linuxcnc dev version matter when I complied the driver and use it in older version of linuxcnc? and does installing linuxcnc-dev in terminal overlap the current linuxcnc I have my pc?
andypugh wrote: This is very minimalist, and probably won't work, but shows the basics and might be a basis for elaboration (value checking, more setup, add the DIO, support for boards other than board 0, handle error returns, etc etc.
It is probably worth a try just to see what happens.
Thanks for the heads up. I know what I need to work on for now. Thanks andy!
Please Log in to join the conversation.
- TechnoGuru
- Offline
- New Member
-
- Posts: 1
- Thank you received: 0
A quick review of the their Linux SDK sources indicates they have paid close attention to real-time issues, so I would expect porting to be straightforward. Between the register map, manual and SDK (includes driver and middleware source) there should be sufficient information to port it.
Please Log in to join the conversation.
