ryangriggs
Lifetime Supporting Member
In RSLogix5000 I am attempting to create an add-on instruction called "SWAP" which simply swaps the values of two integer tags.
Here is what the instruction looks like in Ladder:
As you can see, the first input is called "SWAP" and requires a tag of type "SWAP" to be created and attached. I can't understand why this parameter exists, and I can't figure out how to get rid of this. It's not present in the Parameter list. It seems messy and confusing to be required to create a separate tag every time I use the instruction, since it's only interacting with other tags to swap their values. This is not necessary on any built-in instructions, so why is it necessary on add-on instructions? Or, if it's not necessary, can you please help me understand out how to remove it?
I reviewed the Rockwell manual for add-on instructions, but I can't find anything that references this parameter or how to remove it.
Enlightenment would be greatly appreciated.
Here is the parameter config screen:
Here's the instruction's logic:
Here is what the instruction looks like in Ladder:
As you can see, the first input is called "SWAP" and requires a tag of type "SWAP" to be created and attached. I can't understand why this parameter exists, and I can't figure out how to get rid of this. It's not present in the Parameter list. It seems messy and confusing to be required to create a separate tag every time I use the instruction, since it's only interacting with other tags to swap their values. This is not necessary on any built-in instructions, so why is it necessary on add-on instructions? Or, if it's not necessary, can you please help me understand out how to remove it?
I reviewed the Rockwell manual for add-on instructions, but I can't find anything that references this parameter or how to remove it.
Enlightenment would be greatly appreciated.
Here is the parameter config screen:
Here's the instruction's logic: