AB, PLC-5 indexed addressing

I don't believe so. It should be left at the same value it was after the last time it was written. The user program can write to this address, and also there are several instructions that use this address. If you're using indexed addressing in your program, be sure to write the value you want just before the instruction that uses it.
 
Thanks!

I could not find this in any of the manuals. I have been checking code (by others) and found several locations where indexed addressing is used without clearing or setting the index register. MOV and COP instructions.
I think this is causing some problems...!

I read one manual that says if the index offset exceeds the File boundary, that a major fault will occur. Does this apply only to the PLC-5 and not the 540E?
 
I don't think that applies to the PLC-5. According to the manual, it does not check to see if you cross a file boundary, but you will get a major error if you go outside the last file.

Enhanced and Ethernet PLC-5 Programmable Controllers said:
The controller does not check indexed addresses to make sure that the addresses do not cross data-table file boundaries (e.g., N7 to F8). You could even modify the status file, which is physically the last data table file. But if the indexed address exceeds the data-table area of memory, the controller initiates a run-time error and sets a major fault.

You will always see the "#" symbol in a COP instruction, and the instruction itself is one that will automatically set the index register. Any MOV instructions with the "#" symbol are using it, so the index register needs to be set up first, preferably immediately preceding those instructions.
 

Similar Topics

I have tag in my PLC that is array based: TAG[X] (Real) I want to display this value on the HMI and the element to be displayed will be based...
Replies
14
Views
2,648
The past week we received a new piece of equipment from Germany which utilizes siemens controls. Typically in our company we use A.B. controls for...
Replies
9
Views
188
the conveyor can stop because of a safety sensor or safety switch. And also it can stop because of an object jam detector sensor. If the conveyor...
Replies
5
Views
186
Good Day to all of you, this is my first post, i will try to explain as best as possible, english is not my natural language. I am performing an...
Replies
0
Views
40
Hi All, Someone at work has put a PLC system on my desk, that's just been taken off an idle production line. He said "It's an S7 PLC. We don't...
Replies
10
Views
250
Back
Top Bottom