How to change values in DB in Step 7

arocon

Member
Join Date
Oct 2006
Location
Dubai
Posts
171
In the Program here is one FB100 which called FB200 to make many instances with individual DB for Individual Instance.
My Question is how to Force or change value in the instances because sometimes I have to do that for making proper operation in all cases :

i) Input
ii) Output
iii) Static Value
All Input, Output and Static Values are written in the individual DB of Instances.

I tried to change value with variable table it did not change because it changes and immediate again gone to original value. Please help me out.
 
In the Program here is one FB100 which called FB200 to make many instances with individual DB for Individual Instance.
My Question is how to Force or change value in the instances because sometimes I have to do that for making proper operation in all cases :

i) Input
ii) Output
iii) Static Value
All Input, Output and Static Values are written in the individual DB of Instances.

I tried to change value with variable table it did not change because it changes and immediate again gone to original value. Please help me out.


If you want to change as you say, you must leave the IO-pins of the called FB unassigned. Else the value will be overwritten with the value of whatever is connected in the calling code.

If you want better help:
Make a simplest possible example with the problem and post the code.

Kalle
 

Similar Topics

This hasn't become my problem yet, but it may soon... Ancient PLC-3 (yeah, I know) has been humming along for decades. It now has some analog...
Replies
5
Views
2,456
Hi All Just wondering if anyone can help me out here. I have an acid dosing pump that doses within the pH range of 0-14. I need to dose to 1...
Replies
2
Views
1,220
I'm working with a program and have a program where I can change a tags value with an HMI and I can monitor the tags value and watch it change...
Replies
20
Views
6,208
So I have timers in an add-on instruction that work perfect, however I want to change the preset values in all of the instances at once (about 45...
Replies
2
Views
2,883
Compactlogix. Newest version of rslogix 5000. Online editing open up PID dialog cant change values. What am i doing wrong or missing? Thank you
Replies
2
Views
1,937
Back
Top Bottom