Initial values

naturephoenix

Member
Join Date
Jan 2015
Location
Vienn
Posts
181
Hi,

What do you guys do when you have situation like this:

After leaving commisioning some variables(Tags inside DBs) I want to be fixed even when PLC lose supply and starts again, but some variables I want that they have last user value.

So If I set some reference of PID and during sometime user change reference I have 2 options:

1. Once PLC lose supply and starts again reference is my original reference

2. Reference is user's last reference typed via touch panel.



How do you guys split up these variables, how do u handle this?
DO you might use OB100 for Option 1 or???
 
I don't think that's quite what the OP is after. Retentive means, does it hold it's last value, or does it revert to zero when the PLC powers up. Whereas, the OP wants some values to retain the last value, and others to revert to a fixed (but not necessarily zero) value upon power up. Or have I misunderstood?

My Siemens knowledge is limited, but IIRC OB100 is a block that runs once at startup. I would put write some code to move constants into the relevant tags at startup (for those that you want to reset to "default" values), and for the ones that you want to retain the last user setting, just leave them alone and make sure that they are checked as retentive, as per the advice above.

Hopefully I've understood what you're after properly!
 

Similar Topics

I'm getting frustrated creating arrays of variables in Machine edition. I need to make 2 variable arrays that are 102x2 in size, with varying...
Replies
3
Views
118
Hi everyone, I have a DL06 I'm trying to get some historical info off of. I don't have access to the actual PLC, but I have the program. I'm...
Replies
0
Views
1,164
Hi there, Interesting problem today... I have been using the same code for sometime and all of a sudden my initial values are not being...
Replies
0
Views
1,030
Hi all. I have an array of tags (10) that I store number of seconds in to get an average but I cant work out how to store a default value in them...
Replies
4
Views
1,885
I'm working usually with s7-300 cpu or ET200S. Going on commisioning for hydropower plants. Let's say program is quite huge. A lot of DBs.Initial...
Replies
12
Views
5,495
Back
Top Bottom