Jump to content
OMRON Forums

Indirect addressing


Junji

Recommended Posts

Could you give me an example how to use indirect addressing technique? Our customer wants to run a motor along commanded position data computed by C-PLC program on shared memory user buffer. I guess User servo can copy the data to commanded position register every servo cycle.
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You should not need to use indirect addressing since we have data predefined structures to access the user buffer. To access the user buffer from the Cplc or Capp follow the examples in this post http://forums.deltatau.com/showthread.php?tid=17&highlight=user+buffer the better example are towards the last listings. From the PPmac either in script programs or the terminal you can use the structure Sys.ddata[n]. To increment through it just use a local variable for the index. open plc 1 local myIndex; local myVar; myIndex = 0; while(myIndex < 10){ myVar = Sys.Ddata[myIndex]; myIndex++; } close For a few more details take a look at the attached traing excerpt.
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...