Remote Connections - Siemens Simatic S7-1500 Function Manual

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

Advertisement

Table 7- 58
Syntax
Parameters
Return values
Exceptions
7.5.3

Remote connections

OpenPort()
Opens a port to which another Runtime Manager can connect.
Table 7- 59
Syntax
Parameters
Return values
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
CreateInterface() - .NET (C#)
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
ERuntimeErrorCode.Timeout
ERuntimeErrorCode.WrongArgument
ERuntimeErrorCode.DoesNotExists
OpenPort() - Native C++
ERuntimeErrorCode OpenPort(
UINT16 in_Port
);
UINT16 in_Port:
The port. The value must be greater than 1024.
Runtime error code
SREC_OK
SREC_TIMEOUT
SREC_ALREADY_EXISTS
SREC_WRONG_ARGUMENT
SREC_CONNECTION_ERROR
User interfaces (API)
7.5 API ISimulationRuntimeManager
Condition
The function does not return on time.
The name or the ID is invalid.
The instance is not registered in Runtime
Manager.
Condition
The function is successful.
The function does not return on time.
A port is already open.
The port is invalid.
The port cannot be opened.
119

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents