Greetings all,
I have a general problem when using instance DBs with FBs in S7.
Upon a cold restart, the values in the instance DBs gets reset to the "initial values" defined in the calling FB.
But I would rather keep the "actual values". The initial values gives a good starting point, but during commisioning, some of the settings that are stored in the instance DBs will be changed to some other value. My point is that various DBs can have different values, so I cant just change the initial value, as this will change ALL DBs.
Is there a way of storing/retrieving selected instance DB values in a separate DB file so that the "actual values" can be reused.
I guess that I am not the first one who has this problem, so I hope someone has come up with a great little subroutine allready
I have a general problem when using instance DBs with FBs in S7.
Upon a cold restart, the values in the instance DBs gets reset to the "initial values" defined in the calling FB.
But I would rather keep the "actual values". The initial values gives a good starting point, but during commisioning, some of the settings that are stored in the instance DBs will be changed to some other value. My point is that various DBs can have different values, so I cant just change the initial value, as this will change ALL DBs.
Is there a way of storing/retrieving selected instance DB values in a separate DB file so that the "actual values" can be reused.
I guess that I am not the first one who has this problem, so I hope someone has come up with a great little subroutine allready