Jump to content
OMRON Forums

Recommended Posts

Posted
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; }
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted
[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.
Guest
This topic is now closed to further replies.

×
×
  • Create New...