Jump to content
OMRON Forums

Useralgo question


gregaxisne.com
 Share

Recommended Posts

We are trying to implement a user algo...

 

I followed the user manual on user written servo routines.

1) Algo is written using ptr->P[] for P-variable access

2) From Solution explorer, right clicked on Realtime routines and selected user servo setup and assigned my open servo to Motor[11]

3) Built and down loaded program and ran it.

 

But Motor[11].Ctrl = Sys.ServoCtrl is not pointing at UserAlgo.ServoCtrlAddr[1]

 

And in fact

UserAlgo.ServoCtrlAddr[0]=$0

UserAlgo.ServoCtrlAddr[1]=$0

UserAlgo.ServoCtrlAddr[2]=$0

 

Checked the ../bin/debug directory and a new usralgo.ko with the current time exists

 

But Motor[11].Ctrl = Sys.ServoCtrl and it can't be set to UserAlgo.ServoCtrlAddr[0]

 

How and where do we assign the address of our user program to UserAlgo. ServoCtrlAddr[x]?

 

And How and where do we assign Motor[11].Ctrl = UserAlgo. ServoCtrlAddr[x]?

 

What are we missing?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...