1/14/2009 9:51 PM | |
Joined: 4/10/2006 Last visit: 4/25/2024 Posts: 900 Rating: (2) |
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 (85 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: 4/25/2024 Posts: 900 Rating: (2) |
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!! changing the number should change the address of the db where I go to store the byte! where i can to look for the precise details? that can make use of the register AR1? I need? how can I view the contents of the register AR1? Thank you and sorry for my english...i'm italian Roby Attachmentproblem.pdf (68 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: 4/24/2024 Posts: 96 Rating: (19) |
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 (101 Downloads) |
Follow us on