S7 - What is in the System Data Block?

Jack Schit

Member
Join Date
Oct 2009
Location
England
Posts
35
Hi All,

I have always believed that the system data block in Siemens Step 7 contained the system config information.

As a test, I created a simple project with just a 315 cpu and 1 input card and 1 output card. I then went online in the blocks folder with a 315 cpu that had a simple rack with a around 6 i/o cards. I then transfered the system data block from the online cpu to my simple project.

I expected the config in my original offline project to then contain the same config as the one that I had uploaded the system data block from but the config still contained just the simple single cpu with 1 input card and 1 output card. (hope that makes sense!). However, when I then compare the 2 system data files they are the same.

So, I guess my question is - what I exactly I have uploaded from the online project that is in the system data block and what effect does over writing the system data block file have?

Thanks

Jack
 
System data block does contain the configuration (and maybe something else). But this block is not used by the Hardware editor - the projects configuration is kept somewhere else. This block contains *compiled* configuration in a way that the PLC can understand it (remember the "Save and compile" button?), this block is used only by PLC and not the S7 software. If Step7 kept the actual config information in this block how would you change the configuration in an empty project without the CPU and Blocks folder? And try deleting the SDB from the project - you will not lose the configuration.

Of course there is an exception when system data block IS used by Step7 - when uploading a whole station to the PG. Step7 uploads this block, decompiles it and saves the configuration somewhere else. From this point on the config is not loaded from the SDB anymore.

So, I guess my question is - what I exactly I have uploaded from the online project that is in the system data block and what effect does over writing the system data block file have?
You uploaded the compiled SDB from the online project, the configuration of the online station. But since S7 doesn't load the config from SDB, you don't see any changes. Try "PLC > Upload Station to PG" and the new stations configuration will contain your 6 I/O modules.

You can overwrite and even delete the SDB in the *offline* project, this block can be easily regenerated by opening the hardware editor and clicking on "Save and Compile". But if you delete the SDB in the *online* project (or overwrite it with incorrect configuration) CPU will switch to STOP and show an error. Although I'm not sure if it is going to happen immediately or only when transitioning from STOP to RUN.
 
Hi,

If the HW changes are not saved in SDB, then where are they?

I changed the setting of the CPU in Netpro, for example I add a TCP/IP connection, then compile the project and download it to the PLC. When I compare my old project (include SDB) to the online version, they match perfectly. I know they do not match because of the changes in Netpro.

Why the changes are not shown in the compare function?

Thanks,
Samad
 

Similar Topics

Hi everyone, I am new here, I am working in a project where SCADA Data need to upload(insert in to) Database table in real-time, I am Using AVEVA...
Replies
1
Views
1,202
Why can't you use a data change with an OR expression. Like Tag1 OR Tag2 Or Tag3? It kind of works but unless a make three data change scripts...
Replies
8
Views
2,938
Hi Guys, Question: I'm using an Omron CJ2M to recieve a 40 character tekst string from a Keyence CV-X 420 vision camera. The keyence uses two...
Replies
13
Views
3,829
Hi Guys, What Radio Device will be appropriate to send a DCS Data to SCADA System of two separate remote control rooms?
Replies
18
Views
5,133
The function of my auto dialer system is to send SMS whenever various alarms are triggered e.g. smoke detector, FCU water leak, and temperature...
Replies
2
Views
1,744
Back
Top Bottom