Dear Sir,
I have a DMC-4060 Motion Controller and i wish to map the encoder readings to the mouse pointer. What is the method that can be used to retrieve the encoder readings to be processed by a external program ? Is it possible to get the those encoder readings into the serial port(UART)? If you have any suggestions to do this task in a efficient way, please let me know.
Thank You.
MattK on 04/08/2015 - 11:24
Hi Kevin,
If using a serial connection, the best way is to interrogate encoder position data from the DMC-4060. From your host program you can issue MG "_TPm", where m is the axis of interest, at regular intervals.
If connecting over Ethernet, you also have access to the data record. The data record is a UDP packet sent up to the host PC at regular intervals (Set using the DR command) that contains all the information most applications require. This includes I/O status, axis status etc.
Using the data record is much more efficient than polling with MG unless you plan to keep a relatively low polling rate.