String constants in Addon Instructions

clementcbc

Member
Join Date
Sep 2010
Location
Hong Kong
Posts
24
Hi Guys,

Found this annoying "feature" in RSLogix 5000. I'm using V17.
Wondering if there is a smart way around it.

I created an Addon instructions, which uses a strong constant. But because RSLogix can't really handle string constants, i defined a tag ConstStr = "Blah".

Then I used that addon several times (creating several instances).

When I was debugging, i found that the ConstStr was wrong. So I changed the Definition of ConstStr from "Blah" to "SomethingElse".

The annoying thing is that all currently used instances of the AOI still has ConstStr = "Blah", even though the definition is "SomethingElse". BAD.
But new instances of the AOI has "SomethingElse". GOOD.

Now, I understand why it does it. Because each instances has it's own memory, and the memory is not updated.

I was just wondering if anyone has a smart method of overcoming that?
It's just annoying to need to change every instance whenever I update the Definition. Certainly doesn't give me confidence that future changes I make, or someone else makes will be reflected in all the instances.
Thanks!
 

Similar Topics

I am creating a global object in FTView SE 13. I want to have a string read from the PLC and display (in this case the tagname). So lets say...
Replies
4
Views
165
So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
427
Hello Inside a FB, I´m trying to transfer a string from a DB to a IN_OUT var that was define as a UDT. The problem is that i can´t determine the...
Replies
4
Views
127
As the title says, I'm using CCW with a PV800 (and Micro850). I've made a scheduler in which a user can choose a month, day (1-31), hour (0-23)...
Replies
15
Views
502
Hello, So i managed to read the string coming from control logix and put a string display in PanelView 800. Now I am struggling to do the other...
Replies
1
Views
136
Back
Top Bottom