Indexed Addressing Allen Bradley

Join Date
Jun 2007
Location
Oxford, UK
Posts
163
Ive just been looking through a program that utilises indirect addressing. now i understand the indirect addressing just fine, but whilst discussing with my colleague it has arisen that there is something called indexed addressing. Now having read the help file in RS Logix i understand how it works i think, but i dont really see the point of it. Surely it would be easier to use an integer file to store and deal with the number/s or am i missing the point?

Any words of wisdom about this would make a bunch of blokes here sleep a little easier.

Cheers
 
A number of instructions, block moves etc, use the indexed method normally. Indexed instructions operate faster than indirect instructions but take more to set up (you have to specifically put the offset into S:24)
 
another consideration: some of the smaller SLC/Micro processors don't support the indirect method ... in those cases indexed is the only way to get the job done ...
 
Ah ok i see, that sounds good. well i had a play on some training equipment and i can see it all very clearly. the only question i have is, why in a copy function are all of the addresses prefixed with the # symbol. i thought that this denoted it was set through the index register. the index register value is added to the value of your address and it works on that particular data file.

Is this correct or again am i missing the point?
 
The copy command internally uses the index register. While it probably could have been drawn without the '#' it is a good reminder that, after execution of this command, the index register (S:24) is in an unknown state. You would not be able to depend on it remaining constant from scan to scan if you are using it that way. In other words, before any use of the index register other than in these instructions which show a '#' you must deliberately load S:24 with an appropriate value.
 
bernie_carlton said:
In other words, before any use of the index register other than in these instructions which show a '#' you must deliberately load S:24 with an appropriate value.
And, save the final value somewhere if you're going to need that value later.
 

Similar Topics

I am trying to use indexed addressing to store a long series of bits in a "file" via a bit shift left function in RSLogix 500. The file I want to...
Replies
8
Views
3,897
I have an automatic storage and retrieval system which uses indexed addressing to store the data for each stored and retrieved product. This...
Replies
7
Views
2,408
On the AB PLC-5 (540E) does the the Index Register (S:24) get reset at the beginning of each scan?
Replies
3
Views
4,392
I have a complex SLC program that used doubel index addressing. For example N[N47:162]:[N47:1]. When it coverts through the AB conversion tool...
Replies
4
Views
4,058
hi everybody,i have a problem as follow, there is an array of data with a specific start address in a DB block,i want to read a byte from this...
Replies
1
Views
1,636
Back
Top Bottom