Delta Tau Forums
how to write a servo program - Printable Version

+- Delta Tau Forums (http://forums.deltatau.com)
+-- Forum: Delta Tau Data Systems (http://forums.deltatau.com/forumdisplay.php?fid=1)
+--- Forum: Turbo PMAC (http://forums.deltatau.com/forumdisplay.php?fid=6)
+--- Thread: how to write a servo program (/showthread.php?tid=2510)



how to write a servo program - buaame414 - 08-09-2017

Hello, I write a servo program in Turbo PMAC , which can not automatically run after downloading , how to solve?

OPEN SERVO
CLEAR
p1=p1+1
CLOSE


RE: how to write a servo program - Gregs - 08-09-2017

There needs to be a motor with with Ixx00=1, Ixx59=1 or 3, and Ixx60 > 0. Then, to enable the servo routine, enable motor xx. Remember that anything that disables that motor will disable the servo program. See the section "Executing the Open Servo Program" in the Turbo User manual.


RE: how to write a servo program - buaame414 - 08-09-2017

Thank you, but I don't know which motor to choose, can you give me an example of a servo program that can be executed?


RE: how to write a servo program - mbalentine - 08-14-2017

(08-09-2017, 07:53 PM)buaame414 Wrote: Thank you, but I don't know which motor to choose, can you give me an example of a servo program that can be executed?

For clarification:
Are you using the standard PMAC servo control algorithm, and just wanting to test run a simple motion program to confirm that the motion program is executing?
- or -
Are you replacing the standard Delta Tau servo algorithm with your own custom algorithm written in C and cross compiled for PMAC?


RE: how to write a servo program - Gregs - 08-14-2017

Just choose any unused motor number. Also, it might be a good idea to set Ixx24 so that other motors are not disabled on a fault. And, by the way, Ixx60 does not have to be > 0, unless you want to slow the execution rate.


RE: how to write a servo program - buaame414 - 08-14-2017

thank you, I have solve it already.