Zuviel Werbung? - > Hier kostenlos beim SPS-Forum registrieren

Results 1 to 4 of 4

Thread: Download global safety db via command-interface (C#)

  1. #1
    Join Date
    Erhielt 0 Danke für 0 Beiträge


    Zuviel Werbung?
    -> Hier kostenlos registrieren
    Hello all,

    Is it possible to download the global safety database “F-SHARED DB” by using the
    Siemens command-interface in a C# application? If so, how?

    I created a Windowsapplication with Visual C#.
    This application is created to control a Siemens PLC (e.g. Start PLC, stop PLC and download to PLC).
    Therefor I’ll make use of the Siemens command-interface.

    The Windowsapplication works fine as long as I don’t try to download safety blocks. So in other words; starting, stopping the PLC or even downloading a complete PLC program (including
    HW-Config with safety) without safety blocks works fine.

    My problem occurs when I try to download a safety block to PLC. This is because Simatic manager generates the following (error)message (see picture).

    I noticed that the core of my problem is because the “F-GLOBAL DB” or “F-SHARED DB” isn’t present in the PLC. I know this because downloading of safety blocks works fine with the Windowsapplication when I do the following:

    1. Download the safety program in the PLC with the safety utility in Simatic manager
    2. Delete all safety blocks except the “F-Global DB”
    3. Download all blocks with the Windowsapplication using command interface

    Used Code (Simplified):
    Reply With Quote Reply With Quote Download global safety db via command-interface (C#)  

  2. #2
    Join Date
    Erhielt 357 Danke für 253 Beiträge


    Hello and welcome,

    you can download safety blocks with the simatic manager only via "edit safetyprogramm" and when the cpu is in stop mode.
    Its an own "wizzard" like the download of the HW-Config. That could be the reason why you cant handle Safety Blocks like "normal" Blocks.



  3. #3
    Join Date
    Erhielt 211 Danke für 186 Beiträge


    Hi rick,

    the F-Global-DB is a System Block and will generate with save&generate in HW-Konfig of Simatic Manager, so you have to be sure
    of the right sequence of programming.

    Further the generating of F-programm with the Simatic Manager includes some safety rules, how do you do this with a C#-code?
    Maybe you find some helpful information in the system manual.
    and we all support the team (S.King - Die Arena)

  4. #4
    Join Date
    Erhielt 0 Danke für 0 Beiträge


    Hello all,

    First of all, thanks a lot for your replies
    Second, my apologies for the late response.

    I get the idea that you think that I want to generate the whole safety program via the command interface in C#.
    I was probably not clear enough but this is not my intension.

    The idea is to create a working PLC program with Simatic Mannager.
    Once the working PLC program is created, it will be stored at a location on the PC were the C# application will run.
    The user can select the PLC program via the C# interface and then download the selected PLC program to an empty PLC.

    Because the PLC is empty and therefore does not contain the "F-Shared DB", the error message will appear while downloading.

Similar Threads

  1. Einstellung Qualifier in Single command
    By Netwalker in forum CODESYS und IEC61131
    Replies: 2
    Last Post: 02.09.2016, 10:23
  2. download distributed safety
    By bo1986 in forum Simatic
    Replies: 1
    Last Post: 15.03.2013, 15:22
  3. "Not Enougth Memory for Command"
    By JRMBerg in forum CODESYS und IEC61131
    Replies: 3
    Last Post: 11.06.2012, 08:38
  4. Replies: 14
    Last Post: 17.10.2011, 18:21
  5. beliebigen Command (Char) übergeben
    By tobi_w in forum Simatic
    Replies: 12
    Last Post: 17.08.2008, 22:44

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts