Siemens Simatic S7-1500 Function Manual page 120

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

Advertisement

User interfaces (API)
7.5 API ISimulationRuntimeManager
Table 7- 60
Syntax
Parameters
Return values
Exceptions
ClosePort()
Closes an open port and all open connections that another Runtime Manager has created to
this open port.
Table 7- 61
Syntax
Parameters
Exceptions
Table 7- 62
Syntax
Parameters
Return values
Exceptions
GetPort() / Port { get; }
Returns the open port. If no port is open or the function fails, the return value is 0.
Table 7- 63
Syntax
Parameters
Return values
120
OpenPort() - .NET (C#)
void OpenPort(
UInt16 in_Port
);
UInt16 in_Port:
The port. The value must be greater than 1024.
None
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeErrorCode.Timeout
ERuntimeErrorCode.AlreadyExists
ERuntimeErrorCode.WrongArgument
ERuntimeError-
Code.ConnectionError
ClosePort() - Native C++
ERuntimeErrorCode ClosePort();
None
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
SREC_OK
SREC_TIMEOUT
SREC_WARNING_INVALID_CALL
ClosePort() - .NET (C#)
void ClosePort(
UInt16 in_Port
);
None
None
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeErrorCode.Timeout
GetPort() - Native C++
UINT16 GetPort();
None
The open port. 0, if no port is open.
UINT16:
Condition
The function does not return on time.
A port is already open.
The port is invalid.
The port cannot be opened.
Condition
The function is successful.
The function does not return on time.
No port is open.
Condition
The function does not return on time.
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents