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.