RSLogix500 Indirect addressing question

ceilingwalker

Lifetime Supporting Member
Join Date
Mar 2010
Location
Phoenix, AZ
Posts
1,586
Good day all, I would like to know if it is possible to use a counter' accumulator value as an indirect address. So it would look something like this: N7:[C5:0.acc]. I tried it and the software wont accept it but I could have sworn I seen it used like that. It might have been RSLogix5 but I don't believe that indirect addressing is different from RSL500 to RSL5, correct? Thank you.
 
let's hope that ceilingwalker responds with what he did wrong.

MOV N7:0 N7:[C5:0.ACC] is perfectly valid syntax for the SLC500 series and all the MicroLogix processors. The only thing to be wary of is that the lesser MicroLogix boxes can't have additional data-tables.
 
I am ashamed to admit it. I was using the wrong type of instruction and the software didn't like it. One of those "couldn't see the forest for the tree's" sort of a thing.
 
I'm thinking that everyone wanted you to post your solution so that others could be helped in the future.

Some how I doubt anyone would try to do something as dumb as I did. I was trying to use an instruction at the bit level but this obviously requires an instruction at the word level. Looking back on it I have no idea what I was thinking. I used a XIC instruction trying to use an indirect address and it made no sense at all. This is why I didn't post my solution, because it was a dumb question to begin with.
 
Some how I doubt anyone would try to do something as dumb as I did. I was trying to use an instruction at the bit level but this obviously requires an instruction at the word level. Looking back on it I have no idea what I was thinking. I used a XIC instruction trying to use an indirect address and it made no sense at all. This is why I didn't post my solution, because it was a dumb question to begin with.

We all have moments, minutes, hours, even days like that. I was once picking up the pieces of someone else's coding, and couldn't work out why a section of code wasn't responding as it should have.

I checked the usual suspects, is the subroutine file being scanned - check, searched for MCR instructions - check, searched for JMP instructions - check, searched for an early RET instruction - check. I'll be honest and state that it was a good 2 hours before I found the TND instruction 35 rungs above where I was debugging !

I should have known better with my experience, but on that occasion, the TND wasn't on my list of things to look for. In actual fact, it turned out to be a life-saver that it was there, because the code I had inherited to debug would have made a mess of the process it was controlling - and that would have been costly.

We learn a lot more from our "mistakes" than any training or tutoring can give you. The school of life is a great learning establishment :)
 

Similar Topics

Hey All, I have: COP Source #L[N60:4]:[N60:2] Dest #L30:0 Length 4 When I compile the project, I get: WARNING: File number doesn't point to...
Replies
4
Views
1,692
Hello all, I am programming with indirect addressing in SLC 5/05 using RSlogix500 software. Sometimes processor get faulted with error code...
Replies
2
Views
3,329
So here's my situation, I have been tasked with modifying the logic to mimic a button press in the PLC. I have two identical machines however one...
Replies
6
Views
538
Hello, I'm new to programming. I'm using RSLogix500 to modify an existing program for a SLC500. My plan was to use one of the existing inputs...
Replies
26
Views
1,983
So i have an allen bradley rack (2080-LC50-24QWB), i have it connected through ethernet. I dont have an offline program so im trying to upload...
Replies
6
Views
676
Back
Top Bottom