Siemens Simatic S7-1500 Function Manual page 270

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

Advertisement

User interfaces (API)
7.7 API IRemoteRuntimeManager
Return values
Example C++
Note
Native C++
If you no longer require the interface, delete it.
See DestroyInterface() (Page 101).
270
Runtime error code
SREC_OK
SREC_INTERFACE_REMOVED
SREC_TIMEOUT
SREC_WRONG_ARGUMENT
SREC_LIMIT_REACHED
SREC_ALREADY_EXISTS
ISimulationRuntimeManager * api = NULL;
ERuntimeErrorCode result = Initialize(&api);
// Example: How To Create And Register An Instance
// And To Get An Interface Of The Instance The Same Time
IInstance* psa = NULL;
if (result == SREC_OK)
{
result = api->RegisterInstance(&psa);
}
Condition
The function is successful.
The interface is disconnected from the
remote Runtime Manager.
The function does not return on time.
The name or the IInstance pointer is
invalid.
There are already 16 instances regis-
tered in Runtime Manager.
An instance with this name already ex-
ists.
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents