- Posts: 639
- Thank you received: 0
LinuxCNC support for XY2-100 interface using xy2mod and hostmot2 firmware
6 years 2 months ago #179755
by Bari
Replied by Bari on topic LinuxCNC support for XY2-100 interface using xy2mod and hostmot2 firmware
What do you need to know? It's open loop with one analog out for X and another for the Y axis motor. You might just need to adjust scaling since the 7i33 is +- 10V.
Please Log in to join the conversation.
6 years 2 months ago #179804
by vre
Replied by vre on topic LinuxCNC support for XY2-100 interface using xy2mod and hostmot2 firmware
Mine galvos are cambridge technology and have feedback sensor at the back.
Are from an old synrad engraving galvo scanner.
What drivers you use that accept analog input from mesa to drive galvos ?
I suppose these drives get the feedback from the galvos.
servo thread time? Also what kinematics and cam ?
Are from an old synrad engraving galvo scanner.
What drivers you use that accept analog input from mesa to drive galvos ?
I suppose these drives get the feedback from the galvos.
servo thread time? Also what kinematics and cam ?
Please Log in to join the conversation.
6 years 2 months ago #179843
by Bari
Replied by Bari on topic LinuxCNC support for XY2-100 interface using xy2mod and hostmot2 firmware
I order galvo heads complete with motors, frame, amps and lens in either analog input or XY2-100.
There are off the shelf galvo amps with either analog or XY2-100 input but you'll have some tuning to do to get them to behave with the accuracy of a complete assembly.
Building galvo amps from scratch is another project all together. Just for an idea: hackaday.com/2018/02/15/laser-galvo-cont...icrocontrollers-dac/
There are off the shelf galvo amps with either analog or XY2-100 input but you'll have some tuning to do to get them to behave with the accuracy of a complete assembly.
Building galvo amps from scratch is another project all together. Just for an idea: hackaday.com/2018/02/15/laser-galvo-cont...icrocontrollers-dac/
Please Log in to join the conversation.
6 years 2 months ago #179875
by vre
Replied by vre on topic LinuxCNC support for XY2-100 interface using xy2mod and hostmot2 firmware
probably and mine scan head has inside the analog amps
but must figure out first the pins of analog input -10+10v
In next post i will upload shots if someone can help me with that.
What kinematis you use? trivial ? and what is the servo thread time? also which cam software ?
but must figure out first the pins of analog input -10+10v
In next post i will upload shots if someone can help me with that.
What kinematis you use? trivial ? and what is the servo thread time? also which cam software ?
Please Log in to join the conversation.
6 years 2 months ago #179877
by Bari
Replied by Bari on topic LinuxCNC support for XY2-100 interface using xy2mod and hostmot2 firmware
Yes, trivial kinematics.
I run the servo loop as fast as the board combo can run. Older analog servos only run at a few hundred points per second and not at full scale.
We have MasterCAM and NX. There are several low cost and open source CAM applications out there. I've even used the Inkscape plug-ins and www.scorchworks.com/index.html
I run the servo loop as fast as the board combo can run. Older analog servos only run at a few hundred points per second and not at full scale.
We have MasterCAM and NX. There are several low cost and open source CAM applications out there. I've even used the Inkscape plug-ins and www.scorchworks.com/index.html
Please Log in to join the conversation.
- tstaroveski
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
6 years 1 month ago #180513
by tstaroveski
Replied by tstaroveski on topic LinuxCNC support for XY2-100 interface using xy2mod and hostmot2 firmware
Thank you for your feedback.
If I had a choice, I would have ordered analog galvo head and used MESA analog interface as well. However, for this project I didn't have much choice.
Anyway the 7I96 is on it's way. I will try to use it with the new hostmot2 firmware and report back as soon as I start experimenting with it.
If I had a choice, I would have ordered analog galvo head and used MESA analog interface as well. However, for this project I didn't have much choice.
Anyway the 7I96 is on it's way. I will try to use it with the new hostmot2 firmware and report back as soon as I start experimenting with it.
Please Log in to join the conversation.
6 years 1 month ago #180559
by Bari
Replied by Bari on topic LinuxCNC support for XY2-100 interface using xy2mod and hostmot2 firmware
I will likely be using the XY2-100 from this point on since the cost of these heads has dropped dramatically over the past few months.
Please Log in to join the conversation.
- tstaroveski
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
6 years 1 month ago #182243
by tstaroveski
Replied by tstaroveski on topic LinuxCNC support for XY2-100 interface using xy2mod and hostmot2 firmware
Just a quick report,
I managed to get it working and can definitely confirm that XY2-100 is working with LinuxCNC 2.9 / latest hostmot2! Very special thanks to PCW for all his help.
7i96 produces very stable 2MHZ clock, 100kHz sync, as well as x/y motor signals needed to control the galvo head.
Here is a picture of my testbed:
I made two simple tests in order to investigate the behavior of the galvo interface.
In the first test (7i96-xy2mod-test_circle_pos.hal), sine/cosine signals have been fed to the galvo controller directly as the position reference signals (hm2_7i96.0.xy2mod.00.posx-cmd/hm2_7i96.0.xy2mod.00.posy-cmd). This is much simpler compared to the example configuration provided by PCW in his reply . Results were not so great as the mirrors maintain their previous positions until the new reference position is sent (7i96-xy2mod-test_circle_pos.jpg). It was also not possible to get a nice non-distorded circle at siggen frequencies above 15Hz.
In the second test, sine/cosine signals have first been fed to the PID controllers, whose outputs have than been fed to the galvo controller as velocity references (hm2_7i96.0.xy2mod.00.velx-cmd/hm2_7i96.0.xy2mod.00.vely-cmd). PID gains where manually tuned to get minimal following errors. This approach yielded much better results. I was able to get almost perfect circle at siggen frequencies even above 30 HZ.
The only modification that needed to be made the PCW's example (hm2-pidstepper-master-pexy100.hal from 7i96_xy.zip) was to replace the line
with:
Regards,
T
I managed to get it working and can definitely confirm that XY2-100 is working with LinuxCNC 2.9 / latest hostmot2! Very special thanks to PCW for all his help.
7i96 produces very stable 2MHZ clock, 100kHz sync, as well as x/y motor signals needed to control the galvo head.
Here is a picture of my testbed:
Attachment not found
I made two simple tests in order to investigate the behavior of the galvo interface.
In the first test (7i96-xy2mod-test_circle_pos.hal), sine/cosine signals have been fed to the galvo controller directly as the position reference signals (hm2_7i96.0.xy2mod.00.posx-cmd/hm2_7i96.0.xy2mod.00.posy-cmd). This is much simpler compared to the example configuration provided by PCW in his reply . Results were not so great as the mirrors maintain their previous positions until the new reference position is sent (7i96-xy2mod-test_circle_pos.jpg). It was also not possible to get a nice non-distorded circle at siggen frequencies above 15Hz.
Attachment not found
Attachment not found
In the second test, sine/cosine signals have first been fed to the PID controllers, whose outputs have than been fed to the galvo controller as velocity references (hm2_7i96.0.xy2mod.00.velx-cmd/hm2_7i96.0.xy2mod.00.vely-cmd). PID gains where manually tuned to get minimal following errors. This approach yielded much better results. I was able to get almost perfect circle at siggen frequencies even above 30 HZ.
Attachment not found
Attachment not found
The only modification that needed to be made the PCW's example (hm2-pidstepper-master-pexy100.hal from 7i96_xy.zip) was to replace the line
Code:
setp hm2_[HOSTMOT2](BOARD).0.xy2mod.timer-number 1
Code:
setp hm2_7i96.0.xy2mod.read-timer-number 1
setp hm2_7i96.0.xy2mod.write-timer-number 1
Regards,
T
Please Log in to join the conversation.
6 years 1 month ago #182457
by PCW
Replied by PCW on topic LinuxCNC support for XY2-100 interface using xy2mod and hostmot2 firmware
Yes, its expected that velocity mode will be used, since this will result in constant velocity
(linear) interpolation between waypoints. This interpolation runs at the serial update rate (100 KHz)
Actually you can go a step further and have parabolic interpolation by connecting the acceleration pins,
but I don't know if LinuxCNCs acceleration values are properly synchronized.
The separation of read and write times is to allow the write time to be less that a full cycle late
as you have now (by using a separate DPLL timer for write with some positive offset)
Note that if you leave the hm2_7i96.0.xy2mod.write-timer-number pin unset, the writes will happen
as soon as the 7I96 receives the write packet (therefore with minimum delay but more jitter)
This may be a better compromise
(linear) interpolation between waypoints. This interpolation runs at the serial update rate (100 KHz)
Actually you can go a step further and have parabolic interpolation by connecting the acceleration pins,
but I don't know if LinuxCNCs acceleration values are properly synchronized.
The separation of read and write times is to allow the write time to be less that a full cycle late
as you have now (by using a separate DPLL timer for write with some positive offset)
Note that if you leave the hm2_7i96.0.xy2mod.write-timer-number pin unset, the writes will happen
as soon as the 7I96 receives the write packet (therefore with minimum delay but more jitter)
This may be a better compromise
Please Log in to join the conversation.
4 years 3 weeks ago #253787
by vre
Replied by vre on topic LinuxCNC support for XY2-100 interface using xy2mod and hostmot2 firmware
I have a xy2-100 scanner and a 1064nm dpss laser
With mesa 7i80hd and a differential output daugter card
be done a laser engraver like those comercialy sold?
With mesa 7i80hd and a differential output daugter card
be done a laser engraver like those comercialy sold?
Please Log in to join the conversation.
Time to create page: 0.097 seconds
