mesa 5i20 and DAC

More
16 years 8 months ago - 16 years 8 months ago #1956 by stormpetrel
Hi All

I would like to convert a Maho MH400P from a broken Heidenhain TNC125 to EMC.
I have already bought the Mesa 5i20 and I'm currently designing an interface board to connect the 5I20 to my milling machine.

The Maho motor driver is controlled with a +/- 10V analog signal and I would like my home-brew board to produce it. There are all the components necessary on the board to do the job (microntroller, 16bit DAC, filters...), I just need to send my digital value through the 5I20 to the DAC.

The best way would consist in using 10 pins of the 5I20 configured as outputs. 8 of them will be used as a data bus to send the output value in byte format, 1 pin will indicate if the data byte is the MSB or the LSB and the last byte will indicate to the microcontroller that new data are available on the data bus.


The sequence would look likes:

//at each servo period

put LSB on databus
put MSB/LSB pin to 1
put data_available pin to 1
wait x us
put data_available pin to 0
wait y us
put MSB on databus
put MSB/LSB pin to 0
put data_available pin to 1
wait x us
put data_available pin to 0
done


Is it possible to do so with EMC? Would it be something easy to do?


Thank you in advance for your reply.
Last edit: 16 years 8 months ago by BigJohnT. Reason: change to u so post shows up

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

More
16 years 8 months ago - 16 years 8 months ago #2021 by PCW
Replied by PCW on topic Re:mesa 5i20 and DAC
That fairly awkward to do, especially with the delays. Also if you have many axis, this will use a lot of pins (unless you share the databus) If you really want to use parallel DACs, probably a specific FPGA configuration with a output state machine would be needed. This _may_ be supportable by a new HostMot2 module I'm working on (twiddler), that embeds a simple I/O processor in the FPGA and presents a simple set of 32 bit interface registers to HostMot2.
Last edit: 16 years 8 months ago by PCW. Reason: premature empostulation

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

More
16 years 8 months ago - 16 years 8 months ago #2024 by stormpetrel
Replied by stormpetrel on topic Re:mesa 5i20 and DAC
Thank you for your reply PCW!!!!
The Maho MH400P is a point to point milling machine. There is one common drive used with the 3 axis. The active axis is selected with electrically switched clutches. Consequently just 1 DAC is needed. I'm not sure the delay will be an issue. It's just a question of few us (10us max) to send the data to the DAC through the micro-controller and anyway, the bandwidth of the DAC would be the limiting factor (20kHz @16 bits).

Twiddler looks promising!!! Any idea about when it will be available?
Last edit: 16 years 8 months ago by BigJohnT. Reason: change micro symbol to u so message would show

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

More
16 years 8 months ago - 16 years 8 months ago #2027 by PCW
Replied by PCW on topic Re:mesa 5i20 and DAC
Oh OK, just one axis. The problem with short delays is that without
hardware support they would have to be done in the driver
(and busy-waiting in the driver is frowned upon as it wastes CPU)

I expect to work on twiddler after I finish the resolver module (which is a fair amount of work)
There may be some other solutions to do what you want. I'll give it some thought.
Last edit: 16 years 8 months ago by PCW. Reason: message appeared

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

More
16 years 8 months ago #2050 by stormpetrel
Replied by stormpetrel on topic Re:mesa 5i20 and DAC
It's good to know that it is or will be possible to do this.
As I urgently need to replace my broken Heidenhain controller (the milling machine can't work in manual mode without it), I will finish my micro-controlled board first and use it but without EMC. Once done, I could start playing with EMC and try to solve the DAC problem).

Thank you for your replies. They were really useful to me!

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

More
16 years 5 months ago #2903 by PCW
Replied by PCW on topic Re:mesa 5i20 and DAC
I have the twiddler module done so I could make a test configuration if you still want to try it.
I would need the timing, desired pinout, and DAC data format you want.
Also theres no driver support for the twiddler module but this can be worked around by using the
raw-write capability of HostMot2.

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

Moderators: PCW, jmelson
Time to create page: 0.360 seconds
Powered by Kunena Forum