Rslogix 5000 - indirect addressing in local io tags

Quinn Mallory

Member
Join Date
Jun 2019
Location
Earth-288
Posts
1
Hello,

I'm trying to create IO tags that will allow I/O to be changed via the HMI once the system is deployed, and without needing to connect via PC.

I've got "Local:1:I.Data.[SYS1.IO.T1]" working as a tag, allowing the terminal to be changed.

But, "Local:[SYS1.IO.S1]:I.Data.[SYS1.IO.T1]" is seen as invalid. This portion is needed as it would allow the slot to change as well as the terminal.
 
Not sure if RSLogix will allow you to do this.

Sounds like you want to change IO mapping directly from the HMI. This could get risky in my opinion. What happens if the operator accidentally changes the IO mapping? For example, an output that previously controlled a valve can be changed to control a pump etc. What if an input that was used for the Emergency Stop is accidentally remapped? Sounds like it could cause some issues. Just some things to consider.
 
It's not letting you because Local: is not an array. Same reason you can't indirect with something like: Tag1, Tag2, Tag3

Create an array, something like IOMap[n], move each local I/O word into the correct spot in this new array tag, then you will be able to double indirect with IOMap.
 
A colon in a tag-name is not a delimiter, and anything either side of it cannot be referenced indirectly.

Local:3:I is a valid tagname, and in its entirety, it points to the module-defined tag created on insertion of a module that has input data, into slot 3 of the I/O Config tree.

The slot number cannot be dynamic, so you cannot indirectly address slot "n".

You can create UDTs of identical structure as the module-defined tags, and use code to manipulate the elements within, using COP or CPS to populate or read the data ....
 

Similar Topics

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
670
Hi there I'm currently converting an RSLogix500 program that I wrote 20 years ago into RSLogix5000 for an SLC to CompactLogix upgrade. The...
Replies
3
Views
2,211
I’m working with indirect addressing and trying to make an HMI where each Rectangle Object has a tag of “A[0-127]” with a correlating Push Button...
Replies
15
Views
4,213
I need some help with Indirect Addressing where I used the conversion tool to convert an RSLogix-5 program to an RSLogix-5000 program.
Replies
31
Views
7,938
Hi folks, in the alarm manager of Rslogix 5000, the tag-based alarm has been created. But when I tried to change the condition, it was found the...
Replies
2
Views
157
Back
Top Bottom