[?]: SAVE the actual value of DB's

SIMATIC S7-200/300/400, Step7, PCS7, CFC, SFC, PDM, PLCSIM,
SCL, Graph, SPS-VISU S5/S7, IBHsoftec, LOGO ...
sobanski
Posts: 21
Joined: Thu Sep 02, 2010 6:12 pm
Location: BRAZIL

[?]: SAVE the actual value of DB's

Post by sobanski »

Hello I need to know how I can save the actual values on the online DB to a offline DB, like a new KP or KI from a PID control, this value can be inserted from the HMI and when I've a problem I can download my offline program and set the values of my gains or others variables.
I saw once somethig like this but I don't now how I can make this.


THX for your help
Trafo
Posts: 28
Joined: Sat Oct 09, 2010 11:39 am
Location: SLOVENIJA

Re: SAVE the actual value of DB's

Post by Trafo »

Go ONLINE as a whole. Copy ONLINE DB's, paste them to OFFLINE.
dsekulic
Posts: 186
Joined: Sun Feb 12, 2006 5:47 pm
Location: Europe

Re: [?]: SAVE the actual value of DB's

Post by dsekulic »

Hi,
Why do You need to do so, because if You program S7-300 controller with MMC all data blocks are retentive. That means if Your PLC go down it will start up with last values.
regards
sobanski
Posts: 21
Joined: Thu Sep 02, 2010 6:12 pm
Location: BRAZIL

Re: [?]: SAVE the actual value of DB's

Post by sobanski »

ther is my problem I haven't the MMC card in a CPU 400 that I had the problem, so I'll try to make up a pointer to iniciate always my DB's with a last value like a looping set control,, and see what happens in the lab. THX for your help
dsekulic
Posts: 186
Joined: Sun Feb 12, 2006 5:47 pm
Location: Europe

Re: [?]: SAVE the actual value of DB's

Post by dsekulic »

Hi,
That is really problem with S7-400. But if You have backup battery You have data retention.
Problem is what to do if backup battery fail.
You can specify M memory area as remanence in Hardware Configuration.
Did You think about for example in OB35 to permanently store Your important data in M memory and on startup in OB100 to load M memory locations in appropriate data block.

in OB35

Code: Select all

L DB10.DBD0 // Ti
T MD0 // Memory for Ti

In OB100

Code: Select all

L MD0 // Memory for Ti
T DB10.DBD0 // Ti
regards
sanruku
Posts: 66
Joined: Tue May 12, 2009 9:50 am

Re: [?]: SAVE the actual value of DB's

Post by sanruku »

I think you need something like this:

http://sourceforge.net/projects/s7dataarchiver/

It's free software too, so feel free to modify and share the code!
sobanski
Posts: 21
Joined: Thu Sep 02, 2010 6:12 pm
Location: BRAZIL

Re: [?]: SAVE the actual value of DB's

Post by sobanski »

So I'll try to use this software because the problem happens too when we make a download of a system data so I lose then all values again, and this software mabe can help me to not lose all my datas again or like a fast recovery. I'll see and send a report after I test it.

THX
zxcslo
Posts: 50
Joined: Wed Aug 16, 2006 8:49 pm
Location: Europe

Re: SAVE the actual value of DB's

Post by zxcslo »

Trafo wrote:Go ONLINE as a whole. Copy ONLINE DB's, paste them to OFFLINE.
When you are ONLINE in DB, just click icon for SAVE (upper left corner). It'll save the online values to the offline DB.
sobanski
Posts: 21
Joined: Thu Sep 02, 2010 6:12 pm
Location: BRAZIL

Re: [?]: SAVE the actual value of DB's

Post by sobanski »

sanruku wrote:I think you need something like this:

http://sourceforge.net/projects/s7dataarchiver/

It's free software too, so feel free to modify and share the code!
This software made the service that I need I recomend, because when you make a download including the system data blocks your CPU goes to stop state and back whit the initial values on DB's so with this software you can make a back up of your DB's and put again after in your CPU, don't losing any parameter of you PID's control or others important values that you adjust whit the process. It's very usefull in cases that you lost the datas.

THX everyone.