Events - Siemens Simatic S7-1500 Function Manual

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

Advertisement

Table 7- 347 CreateInterface() - .NET (C#)
Syntax
Parameters
Return values
Exceptions
7.7.3

Events

7.7.3.1
OnConnectionLost events
Description
The event is triggered when the connection to the Remote Runtime Manager has been
terminated.
OnConnectionLost
Registers or unregisters an event handler method.
Table 7- 348 OnConnectionLost - .NET (C#)
Syntax
Parameters
Return values
Exceptions
Note
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
IInstance CreateInterface(
string in_InstanceName
);
IInstance CreateInterface(
INT32 in_InstanceID
);
INT32 in_InstanceID:
The ID of the registered instance from which you want to receive the interface.
string in_InstanceName:
The name of the registered instance from which you want to receive the inter-
face.
If the function is successful, an interface of a virtual controller; otherwise a Null
pointer.
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeErrorCode.Timeout
ERuntimeErrorCode.WrongArgument
ERuntimeErrorCode.DoesNotExists
event Delegate_IRRTM OnConnectionLost;
None. See Delegate_IRRTM (Page 297)
None
None
The event handler method runs in a separate thread.
User interfaces (API)
7.7 API IRemoteRuntimeManager
Condition
The interface is disconnected from the
remote Runtime Manager.
The function does not return on time.
The name or the ID is invalid.
The instance is not registered in Runtime
Manager.
275

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents