1/14/2009 9:51 PM | |
Joined: 4/10/2006 Last visit: 9/4/2025 Posts: 962 Rating:
|
Hallo, friends...!
can be solved using one hundred BLKMOVE linked to the number, but I want to do that with indirect addressing! Where can I find documentation about it?
Attachmentproblem.pdf (448 Downloads) |
Last edited by: Roby at: 1/14/2009 9:54 PMSetting of my PG M6 Siemens |
|
1/15/2009 11:56 AM | |
Joined: 4/10/2006 Last visit: 9/4/2025 Posts: 962 Rating:
|
Hallo Aret thank you for your help.... I tried to read the FAQ but i have still problems with the understanding of this indirect addressing.... i cannot able store a byte in the db, using a number!! how can I view the contents of the register AR1? Thank you and sorry for my english...i'm italian Roby Attachmentproblem.pdf (440 Downloads) |
Last edited by: Roby at: 1/15/2009 11:59 AMSetting of my PG M6 Siemens |
|
1/19/2009 5:15 PM | |
Joined: 7/26/2008 Last visit: 9/5/2025 Posts: 109 Rating:
|
Hi Roby, you can use string replace functions from the standard library, but their execution times are long. The block move function can also be used, but writing a hundred is far too much work and using a any pointer is complicated. I find the the simplest way is to use indirect addressing. Make a list of strings for the names (they can be copied into a compiled file). Point the address register at the first item and add the index to the address register. See attached file. If this simple index gets more complicated you should look at SCL. Good luck! AttachmentLookup_n.zip (393 Downloads) |
Follow us on