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

Ergebnis 1 bis 4 von 4

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

  1. #1
    Registriert seit
    27.08.2013
    Beiträge
    2
    Danke
    0
    Erhielt 0 Danke für 0 Beiträge

    Frage


    Zuviel Werbung?
    -> Hier kostenlos registrieren
    Hello all,

    Question:
    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?


    Background:
    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):
    Zitieren Zitieren Download global safety db via command-interface (C#)  

  2. #2
    Registriert seit
    11.12.2009
    Beiträge
    2.115
    Danke
    388
    Erhielt 390 Danke für 271 Beiträge

    Standard

    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.


    Greetings

    Marcel

  3. #3
    Registriert seit
    25.11.2008
    Ort
    Westpfalz
    Beiträge
    1.550
    Danke
    187
    Erhielt 212 Danke für 186 Beiträge

    Standard

    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
    rick-brinkman ist offline Neuer Benutzer
    Themenstarter
    Registriert seit
    27.08.2013
    Beiträge
    2
    Danke
    0
    Erhielt 0 Danke für 0 Beiträge

    Standard


    Zuviel Werbung?
    -> Hier kostenlos registrieren
    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.

Ähnliche Themen

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

Stichworte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •