Simulation Runtime Instances - Siemens Simatic S7-1500 Function Manual

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

Advertisement

User interfaces (API)
7.7 API IRemoteRuntimeManager
Table 7- 338 Disconnect() - .NET (C#)
Syntax
Parameters
Return values
Exceptions
7.7.2

Simulation Runtime instances

7.7.2.1
Simulation Runtime instances (remote)
GetRegisteredInstancesCount()
Returns the number of instances that are registered in Runtime Manager. If the function fails,
the return value is 0.
Table 7- 339 GetRegisteredInstancesCount() - Native C++
Syntax
Parameters
Return values
GetRegisteredInstanceInfoAt()
Returns information about an already registered instance.
You can use the ID or name to create an interface of this instance (see
Table 7- 340 GetRegisteredInstanceInfoAt() - Native C++
Syntax
Parameters
Return values
268
void Disconnect();
None
None
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeErrorCode.Timeout
UINT32 GetRegisteredInstancesCount();
None
Number of available instances.
UINT32:
ERuntimeErrorCode GetRegisteredInstanceInfoAt(
UINT32 in_Index,
SInstanceInfo* out_InstanceInfo
);
UINT32 in_Index:
Index of the created instance from which you want to receive the information.
The index must be less than the value you receive when you call
teredInstanceCount()
SInstanceInfo* out_InstanceInfo:
The information with name and ID of the instance. See SInstanceInfo
(Page 314).
Runtime error code
SREC_OK
SREC_INTERFACE_REMOVED
SREC_TIMEOUT
SREC_INDEX OUT_OF_RANGE
Condition
The interface is disconnected from the
remote Runtime Manager.
The function does not return on time.
.
Condition
The function is successful.
The interface is disconnected from the
remote Runtime Manager.
The function does not return on time.
There is no instance information for this
index.
Function Manual, 12/2017, A5E37039512-AB
).
CreateInterface()
GetRegis-
S7-PLCSIM Advanced

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents