- LinuxCNC
- General LinuxCNC Questions
- Precix CNC Router that has the Sensoray 626 pci card and pwm Servos need help
Precix CNC Router that has the Sensoray 626 pci card and pwm Servos need help
- EMFab01
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
16 Dec 2017 03:39 #103156
by EMFab01
Precix CNC Router that has the Sensoray 626 pci card and pwm Servos need help was created by EMFab01
I have a Precix CNC Router that uses the Sensoray 626 pci card with Advanced Motion Controls 12A8E-INV Brush Type PWM Servo Amplifier to drive the motors. The system work with the Precix code that is old. so I'm trying to get Linuxcnc to work on it. I can load the driver for the 626 card and run the 626demo code and I see the limit switches and the encoders. I just don't know where to start to do the interfacing. its all new to me so anything would be helpful.
Thanks
Eric
Thanks
Eric
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17997
- Thank you received: 4842
16 Dec 2017 03:49 #103157
by PCW
Replied by PCW on topic Precix CNC Router that has the Sensoray 626 pci card and pwm Servos need help
Is there register level documentation or driver source available for the PCI card?
Please Log in or Create an account to join the conversation.
- EMFab01
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
16 Dec 2017 04:48 #103158
by EMFab01
Replied by EMFab01 on topic Precix CNC Router that has the Sensoray 626 pci card and pwm Servos need help
yes I have all the info and drivers
Please Log in or Create an account to join the conversation.
- EMFab01
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
16 Dec 2017 06:44 #103161
by EMFab01
Replied by EMFab01 on topic Precix CNC Router that has the Sensoray 626 pci card and pwm Servos need help
Link to the manual
www.sensoray.com/downloads/man_626_1.0.5.pdf
www.sensoray.com/downloads/man_626_1.0.5.pdf
Please Log in or Create an account to join the conversation.
- EMFab01
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
16 Dec 2017 22:48 #103176
by EMFab01
Replied by EMFab01 on topic Precix CNC Router that has the Sensoray 626 pci card and pwm Servos need help
This is all new to me on the Linuxcnc so is there a document to know how the program interacts with the hardware?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4864
17 Dec 2017 02:55 #103185
by andypugh
Replied by andypugh on topic Precix CNC Router that has the Sensoray 626 pci card and pwm Servos need help
What do you need the card to do? It looks like digital input/output at 1kHz would be trivial. But other stuff would need more work.
Please Log in or Create an account to join the conversation.
- EMFab01
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
17 Dec 2017 08:02 #103192
by EMFab01
Replied by EMFab01 on topic Precix CNC Router that has the Sensoray 626 pci card and pwm Servos need help
The cnc router works and I have used the 626 demo program to find out the inputs for the encoders and the limit switch's. I just really don't know how to do the programming from the linuxcnc to the pci card.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4864
17 Dec 2017 11:46 #103202
by andypugh
Replied by andypugh on topic Precix CNC Router that has the Sensoray 626 pci card and pwm Servos need help
You need a HAL driver.
This is one that I wrote for a vaguely similar card:
github.com/LinuxCNC/linuxcnc/blob/master.../drivers/pcl720.comp
If you look through it (ignore the "reset" function for now) You will see a header block that defines the HAL pins, and then, written in C, a "read" and a "write" function that convert HAL signals into register values abd vice/versa and then send/get them with inb() and outb() instructions.
You would need something very similar, but would need a bit more complexity to set up the PWM signals (which I assume are generated on the board?)
This is one that I wrote for a vaguely similar card:
github.com/LinuxCNC/linuxcnc/blob/master.../drivers/pcl720.comp
If you look through it (ignore the "reset" function for now) You will see a header block that defines the HAL pins, and then, written in C, a "read" and a "write" function that convert HAL signals into register values abd vice/versa and then send/get them with inb() and outb() instructions.
You would need something very similar, but would need a bit more complexity to set up the PWM signals (which I assume are generated on the board?)
The following user(s) said Thank You: EMFab01
Please Log in or Create an account to join the conversation.
- mcheffe
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
21 Dec 2017 05:37 #103419
by mcheffe
Replied by mcheffe on topic Precix CNC Router that has the Sensoray 626 pci card and pwm Servos need help
I took a look at the pcl720.comp file to try and see how to adapt this to the Sensoray 626 card mentioned by EMFab01. This .comp file appears to be a mix of C code and other declarations used by Linuxcnc to figure out how to talk to the hardware. Is there some documentation somewhere that explains the syntax used in the .comp file? Specifically, the definition of the pins vs usage of the pins in the C read/write functions?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4864
21 Dec 2017 10:04 #103425
by andypugh
Replied by andypugh on topic Precix CNC Router that has the Sensoray 626 pci card and pwm Servos need help
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- Precix CNC Router that has the Sensoray 626 pci card and pwm Servos need help
Time to create page: 0.140 seconds