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,681
Dear Experts, I've come across an unusual piece of hardware for AB PLC-5 racks. I mean the NT-1776-HSD-R resolver input module. I have tried...
Replies
0
Views
8
Hi looking to install a smaller less sophisticated PLC for fountain timing and also one analog pressure sensor which would be used to detect...
Replies
4
Views
56
Hello all. I recently had to re install my AutoCAD Electrical 2024. I am trying to find the Rockwell catalog to install in it but cant find...
Replies
0
Views
80
Hello, I have an issue where I want to simulate an Siemens HMI panel, through NAT connection to a PLC. I have the possibility through extended...
Replies
1
Views
47
Back
Top Bottom