Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
calling a motion program from a cplc or c program
#1
I can't figure out how to call a motion program from a c program. I'm trying to cyclically run a motion program and then rest for a period. Is there an easy way to do this.
Reply
#2
The easiest way is to use the "Command" function in the gplib.h library. You can do it with a literal -- e.g.

Command("&1b1r");

or assemble a string variable.
Reply
#3
Thanks, I did find that. The "Command" function is hard to find in any documentation. I found it in a document on Manually Scheduling Threads in Power PMAC.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)