Siemens S7 200 Data restore after long power down.

sonarbell

Member
Join Date
Mar 2004
Location
Leicester
Posts
28
Hi All
I use 200 processors on a regular basis and sometimes during long power downs, Xmas etc the CPU has a nasty habit of forgetting the data in its head..

If I add the following in OB1 will it restore the default values I have written in the "move" commands ?

These values will get the machine back up and running after which time the customer can change the values to there own settings via the display.

Or does anyone have any other ideas.

Cheers Chaps
 
Hi All
I use 200 processors on a regular basis and sometimes during long power downs, Xmas etc the CPU has a nasty habit of forgetting the data in its head..

If I add the following in OB1 will it restore the default values I have written in the "move" commands ?

These values will get the machine back up and running after which time the customer can change the values to there own settings via the display.

Or does anyone have any other ideas.

Cheers Chaps
Since the 200 series uses a super capacitor as a battery, after a long period of being powered down it just loses the PLC program.
Are you sure the program stays and you just lose settings as shown or do you have to download the program and set it to run prior to running?
If the program is there after power up and you use the MOV during the first scan to load the parameters to the registers, you'll be OK.
 
The Prog is there but the data is lost. The Super Capacitor is only used for backing up the status of the bits in the processor.
The Prog is loaded from EEPROM should the initial scan show that the data area is empty.

I think that SM0.2 is a bit that is set for the initial scan should the PLC decide that the memory area is at zero. I hope this makes some sort of sense.

What is so frustrating is that I cant store the customers own settings anywhere and reload should the memory be empty.

Hey ho its only a cheap processor when all said and done.
 
Put a battery in it and it will store the data for over six months without external power. Whats more the battery is only used after the super capacitor has discharged and so can last as long as its shelf life of 7 years (ish). The program in the PLC is stored in eeprom and so doesn't get lost after a loss of power. All this assumes you are talking S7-224 to 226.

Bryan
 
You can also use the write to eeprom function, SMB31 en SMW32 to store your variables pemanently.
 
You could also try "Create Data Block From RAM"
This is done with STEP 7-Micro/WIN using the main menu "PLC"

after which time the customer can change the values to there own settings via the display.

What sonarbell wants it to keep customer values after a longer period of power down and not reprogram the PLC.
Customer value can be saved permanently by the PLC program by writing them to eeprom directly after entering.
 
Hmm very interesting the point about writing it to eeprom..Didnt spot this before so will research and see how we go..

Thanks for that piece of info PEGO
 
Last edited:
You may want to check into recipes.Plug a data module into the s7200 and add a recipe to your program.Using the recipe wizard.You can read your values into your program.You can also write your adjusted values out before long shutdown periods.
 
What about powering the plc separately so never cut it down during holiday?

You can copy the customer data in your data block and write them in the rom memory so it will takes these values after a long poweroutage but it's the same as doing a save to eeprom...
The save to eeproom block need to have an data block range and a pulse input to work. I include a buton on a hmi page to sava any setting that a customer may have done at startup or latter...
But i also try to get rid of that bad habbit to cut power off from plc when they stop the factory....ok to cut MCC power from motor but from plc is not usefull and may gives problems like that....
 

Similar Topics

Dear Experts, Please, kindly guide me through how to read data from ABB PLC to S7-1200 Siemens PLC. I want to use Siemens S7-1200 PLC to read data...
Replies
1
Views
443
Hello all, PLC-programming noob here. I have multiple clients accessing some data on my Siemens S7 1211C PLC; some OPC clients and some direct...
Replies
30
Views
8,303
Hi All, I am hoping someone can help. I have setup a Red Lion Data Station (DA30D, Crimson 3.1 Build 3112) to log data from several Allen...
Replies
18
Views
7,330
Need to create some Logging on a PC from my Siemens ET200SP PLC. Running TIA Portal Ver 14 SP1 Anyone any experience of how to go about this...
Replies
7
Views
2,716
We have Siemens S7-200 PLCs at some machines. One of the machine was problematic and i had to download its original PLC program . Before...
Replies
1
Views
1,878
Back
Top Bottom