Jump to content
OMRON Forums

User Servo Algorithm


Amar
 Share

Recommended Posts

Dear Sir,

 

I have only PPMAC CPU only.

I am trying to run user servo algorithm. I have assigned below function on servo interrupt for one motor using servo setup utility. In below function i have assigned value to global variable.

But its not working. Its not changing value of global variable. I think this function is not invoking on servo interrupt.

 

double user_pid_ctrl( struct MotorData *Mptr)

{

double *p;

p = pushm;

MyGlobal = 10;

return 0;

}

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You must associate a motor to the function and then enable it in the IDE. See the section "ASSOCIATING MOTORS WITH USER-WRITTEN SERVO AND PHASE ALGORITHMS" in the IDE manual (pg 220):

"http://forums.deltatau.com/filedepot/download.php?f=Power PMAC/Manuals/Power PMAC IDE.pdf"

Link to comment
Share on other sites

You must associate a motor to the function and then enable it in the IDE. See the section "ASSOCIATING MOTORS WITH USER-WRITTEN SERVO AND PHASE ALGORITHMS" in the IDE manual (pg 220):

"http://forums.deltatau.com/filedepot/download.php?f=Power PMAC/Manuals/Power PMAC IDE.pdf"

 

I have already done this. But still i am missing something like setup parameter for motor or anything else. Please help me to solve this.

 

Regards,

Amar

Intelligent Motion Technology Pvt. Ltd.

Link to comment
Share on other sites

You must associate a motor to the function and then enable it in the IDE. See the section "ASSOCIATING MOTORS WITH USER-WRITTEN SERVO AND PHASE ALGORITHMS" in the IDE manual (pg 220):

"http://forums.deltatau.com/filedepot/download.php?f=Power PMAC/Manuals/Power PMAC IDE.pdf"

 

I have already done this. But still i am missing something like setup parameter for motor or anything else. Please help me to solve this.

 

Regards,

Amar

Intelligent Motion Technology Pvt. Ltd.

 

Now its working. I didn't selected "usercode.c" file compile option. Before it was "content". After selecting "compile" option it's working..

Thanks...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...