Jump to content
OMRON Forums

Why must I have both a user phase and servo function


bradp
 Share

Recommended Posts

I was working in the file “usrcode.c” and discovered that when I remove one of the default functions, like the one below, none of my user written functions will work. Why is this? double user_pid_ctrl(struct MotorData *Mptr) { return 0; }
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

[quote='bradp' pid='216' dateline='1255621191'] I was working in the file “usrcode.c” and discovered that when I remove one of the default functions, like the one below, none of my user written functions will work. Why is this? double user_pid_ctrl(struct MotorData *Mptr) { return 0; } [/quote] This is caused by the default header file usrcode.h. Inside this file we have the following: double user_pid_ctrl(struct MotorData *Mptr); EXPORT_SYMBOL(user_pid_ctrl); Right now if you want to remove the reference to the PID you must also remove the reference in the header file. Go to usrcode.h and remove the above lines.
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...