Herunterladen Diese Seite drucken

Shutdownandfreeapi(); Tabelle 7- 24 Shutdownandfreeapi() - Native C - Siemens SIMATICS7-1500 Funktionshandbuch

12/2017

Werbung

Anwenderschnittstellen (API)
7.3 API herunterfahren
7.3.1.4

ShutdownAndFreeApi()

Beschreibung
Die Funktion
IRuntimeManager Schnittstelle und entlädt die Bibliothek der Runtime API.
Diese Funktion kann nur aufgerufen werden nach dem erfolgreichen Aufruf der Funktion
InitializeApi.
Bibliothek über die Win32 API-Funktion

Tabelle 7- 24 ShutdownAndFreeApi() - Native C++

Syntax
Parameter
Rückgabewerte
Beispiel C++
106
fährt die Runtime API herunter, löscht die
ShutdownAndFreeApi()
Wenn die Funktion
InitializeApi
ERuntimeErrorCode ShutdownAndFreeApi(
ISimulationRuntimeManager* in_SimulationRuntimeManagerInterface
);
ISimulationRuntimeManager* in_SimulationRuntimeManagerInterface:
Die Schnittstelle des Runtime Managers, die gelöscht werden soll.
Runtime Fehlercode
SREC_OK
SREC_API_NOT_INITIALIZED
SREC_WRONG_ARGUMENT
// Include The Headerfile Of The API
#include "SimulationRuntimeApi.h"
// The Interfaces
ERuntimeErrorCode result;
ISimulationRuntimeManager* api = NULL;
IInstance* instance = NULL;
// Init the API
result = InitializeApi(&api);
...
// Shutdown The API
ShutdownAndFreeApi
result =
api = NULL;
nicht aufgerufen wurde, muss die
entladen werden.
FreeLibrary()
Bedingung
Die Funktion ist erfolgreich.
Die Funktion
InitializeApi
erfolgreich aufgerufen.
Der Zeiger auf die Schnittstelle ist
(api);
Funktionshandbuch, 12/2017, A5E37039506-AB
wurde nicht
.
NULL
S7-PLCSIM Advanced

Quicklinks ausblenden:

Werbung

loading

Diese Anleitung auch für:

Simatic s7-plcsim advanced