Table 7- 335 Getremotecomputername() - Native C - Siemens Simatic S7-1500 Function Manual

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

Advertisement

GetRemoteComputerName() / RemoteComputerName { get; }
Returns the name of the PC on which the remote Runtime Manager is running.

Table 7- 335 GetRemoteComputerName() - Native C++

Syntax
Parameters
Return values
Table 7- 336 RemoteComputerName { get; } - .NET (C#)
Syntax
Parameters
Return values
Exceptions
Disconnect()
Closes the connection to the remote Runtime Manager.
Note
All applications that are connected to the remote Runtime Manager lose this connection.
Table 7- 337 Disconnect() - Native C++
Syntax
Parameters
Return values
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
ERuntimeErrorCode GetRemoteComputerName(
WCHAR* inout_Name,
UINT32 in_ArrayLength
);
WCHAR* inout_Name:
A user-allocated array for the computer name.
UINT32 in_ArrayLength:
The array length. The array should be longer than
Runtime error code
SREC_OK
SREC_INTERFACE_REMOVED
SREC_INDEX_OT_OF_RANGE
string RemoteComputerName { get; }
None
Name of the PC on which the remote Runtime Manager is running.
string:
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeError-
Code.IndexOutOfRange
ERuntimeErrorCode Disconnect();
None
Runtime error code
SREC_OK
SREC_INTERFACE_REMOVED
SREC_TIMEOUT
User interfaces (API)
7.7 API IRemoteRuntimeManager
MAX_COMPUTERNAME_LENGTH
Condition
The function is successful.
The interface is disconnected from the
remote Runtime Manager.
The array is too small to accommodate
the computer name.
Condition
The interface is disconnected from the
remote Runtime Manager.
The array is too small to accommodate
the computer name.
Condition
The function is successful.
The interface is disconnected from the
remote Runtime Manager.
The function does not return on time.
.
267

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents