Skip to main content
Submitted by Robin on Tue, 12/06/2011 - 12:01

Hi, I have a DMC 4040 controller and 4 linear motors. Now we need to figure out the distance of the motor moves. Is there any code in Galil can do that?

Comments 9

Galil_DJR on 12/06/2011 - 12:59

Can you explain what you are looking for in more detail?

TP contains the current motor position in encoder counts. It should be all you need to calculate distances.

Robin on 12/08/2011 - 07:58

That is probably what we need. Could you give me a code about that please?

Robin on 12/12/2011 - 07:51

Thanks. It works. But can I use the controller to output a series data recorded the motor position every second?

Galil_AndyH on 12/12/2011 - 08:50

Yup:
Download and execute the following program.

#main
TP
WT1000
JP#main

Robin on 12/12/2011 - 11:04

I am so sorry to bother you with silly question, but could you explain the meaning of each line please? And where can I find the output files? Thanks.

Robin on 12/13/2011 - 08:01

I have a problem. My motors are controlled by a LabView code, when I run the motors, the code you posted can only work once at a time. It couldn't be executed continuously. Is there anyway I can fix it? Or it is impossible to control the motors with two different languages. Thank.