Indirect addressing in Micrologix 1400

Join Date
May 2011
Location
South Carolina
Posts
87
I am confused.

I am using indirect addressing to copy from one point to another based on an integer file but I got one Copy instruction that works and then one that doesn't.

I will attach a screen shot and the first one validates but I get an error on the second one that says "File number doesn't point to the correct file type!". They look the same to me.

2020_01_09_15_43_43_RSLogix_500.jpg
 
If N33:1 contains a value at the time of verification that points to a nonexistent file, you will get that warning. If you have taken steps to ensure that N33:1 can never contain an invalid value at runtime, you can ignore the error.
 
Like Okie said - if you have a number in N33 that points to a missing F data file the error will occur. So if N33:1 is 33, the system will look for F33:0 which can't exist.
You would get the same error on the top instruction if N37:7 was equal to 37.

If you don't have a lot of checks in place to restrict the possible values in your N registers, then you would need a ton of possible F data files and would end up maxing the memory out in the 1400.

Maybe restructuring some logic to always start with a known data file like F100:[N33:1] could be more robust? A limitation there is that N33:1 can't be over 255
 

Similar Topics

I can't believe I would need assistance on this issue, didn't think this would be a problem. Anyways, I just bought a Micrologix 1500 LRP plc in...
Replies
8
Views
7,153
Hi, Am I right in saying that indirect addressing cant not be accessed at file level in these PLCs? i.e N[x]:1 where x is pointer to address...
Replies
3
Views
5,277
Howdy folks, I am an Allen Bradley guy currently living in an Emerson world. Working with Rx3i on PacSystems Machine Edition v. 9.6? i think...
Replies
3
Views
608
Hello, I'm very new to programming with absolutely zero schooling in this field and pretty hands off training in my new role, it's been fun...
Replies
4
Views
662
Hello Friends, I am trying to index M Bits, however GX Works2 is not allowing it with following message. https://ibb.co/zPcqj6M...
Replies
3
Views
1,365
Back
Top Bottom