Freeapi(); Table 7- 23 Freeapi() - Native C - Siemens Simatic S7-1500 Function Manual

Hide thumbs Also See for Simatic S7-1500:
Table of Contents

Advertisement

7.3.1.3

FreeApi()

Description
The
This function can only be called after the successful call of the
InitializeApi
function
Table 7- 23
Syntax
Parameters
Return values
Example C++
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
function unloads the library of the Runtime API.
FreeApi()
function was not called, the library must be unloaded using the Win32 API
.
FreeLibrary()
FreeApi() - Native C++
ERuntimeErrorCode FreeApi();
None
Runtime error code
SREC_OK
SREC_API_NOT_INITIALIZED
// 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
api->Shutdown();
result = DestroyInterface(api);
api = NULL;
result =
FreeApi
();
User interfaces (API)
InitializeApi
Condition
The function is successful.
The
function was not called
InitializeApi
successfully.
7.3 Shut down API
function. If the
103

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents