The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content
SIMATIC S7-PLCSIM Advanced Share llms optimized content

Efficiently simulate SIMATIC S7 controllers with S7-PLCSIM Advanced. Test, debug, and optimize your control programs without using physical hardware.

Class IRemoteRuntimeManager

ClassList > IRemoteRuntimeManager

  • #include <SimulationRuntimeApi.h>

Inherits the following classes: IBaseRuntimeManager

Public Functions

TypeName
virtual ERuntimeErrorCodeDisconnect () = 0
Closes the connection to the remote Runtime Manager.
virtual UIPGetIP () = 0
Returns the IP of the PC the remote Runtime Manager is running on. Returns 0 if the function fails.
virtual ERuntimeErrorCodeGetRemoteComputerName (WCHAR * inout_Name, UINT32 in_ArrayLength) = 0
Returns the name of the PC the remote Runtime Manager is running on.
virtual voidRegisterOnConnectionLostCallback (EventCallback_IRRTM in_CallbackFunction) = 0
When receiving the event the registered callback function will be called. The callback function runs in a separate thread. More callback functions can be registered to the event.
virtual voidRegisterOnConnectionLostEvent () = 0
When receiving the event, the registered event object is set to signaled state. There can be only one event object registered to the event. Registering a new one will automatically unregister the previous one.
virtual voidRegisterOnConnectionLostEvent (HANDLE * in_Event) = 0
When receiving the event, the registered event object is set to signaled state. There can be only one event object registered to the event. Registering a new one will automatically unregister the previous one.
virtual voidUnregisterOnConnectionLostCallback (EventCallback_IRRTM in_CallbackFunction=nullptr) = 0
Unregisters the callback function. When receiving the event no callback function will be called.
virtual voidUnregisterOnConnectionLostEvent () = 0
Unregisters the event object.
virtual boolWaitForOnConnectionLostEvent () = 0
The function will block until the registered event object is in the signaled state or the timeout interval elapses.
virtual boolWaitForOnConnectionLostEvent (UINT32 in_Time_ms) = 0
The function will block until the registered event object is in the signaled state or the timeout interval elapses.
virtual~IRemoteRuntimeManager ()

Public Functions inherited from IBaseRuntimeManager

See IBaseRuntimeManager

TypeName
virtual ERuntimeErrorCodeCreateInterface (INT32 in_InstanceID, IInstance ** out_InstanceInterface) = 0
Creates and returns an interface of an already registered virtual controller instance.
virtual ERuntimeErrorCodeCreateInterface (WCHAR * in_InstanceName, IInstance ** out_InstanceInterface) = 0
Creates and returns an interface of an already registered virtual controller instance.
virtual ERuntimeErrorCodeGetDefaultStoragePath (WCHAR * out_DefaultStoragePath) = 0
Get default storage path for instances.
virtual ERuntimeErrorCodeGetNetInterfaces (SNetInterfaceInfo * inout_InterfaceInfo, UINT * inout_InterfaceCount) = 0
Retrieve info about computer network interfaces, which can be used by the SetInterfaceMapping function
virtual ERuntimeErrorCodeGetNetworkMode (ENetworkMode * out_mode) = 0
Get the current network mode setting that will be used on the network adapter for distributed communication.
virtual UINT16GetPort () = 0
Returns the open port. Returns 0 if no port is open or if the function fails.
virtual ERuntimeErrorCodeGetRegisteredInstanceInfoAt (UINT32 in_Index, SInstanceInfo * out_InstanceInfo) = 0
Returns the info about an already registered instance. You can use its ID or name to create an interface of this instance.
virtual UINT32GetRegisteredInstancesCount () = 0
Returns the number of instances registered at the RuntimeManager. Returns 0 if the function fails.
virtual enum ERuntimeErrorCodeGetStrictMotionTiming (bool * enabled) = 0
Get the current default strict motion timing setting for newly created instances.
virtual UINT32GetVersion () = 0
Returns the version of the Runtime Manager. If the function fails, the version returned is 0.
virtual ERuntimeErrorCodeRegisterCustomInstance (WCHAR * in_VplcDll, IInstance ** out_InstanceInterface) = 0
Registers a new instance of a virtual controller at the Runtime Manager. Also creates and returns an interface of this instance.
virtual ERuntimeErrorCodeRegisterCustomInstance (WCHAR * in_VplcDll, WCHAR * in_InstanceName, IInstance ** out_InstanceInterface) = 0
Registers a new instance of a virtual controller at the Runtime Manager. Also creates and returns an interface of this instance.
virtual ERuntimeErrorCodeRegisterInstance (IInstance ** out_InstanceInterface) = 0
Registers a new instance of a virtual controller at the Runtime Manager. Also creates and returns an interface of this instance.
virtual ERuntimeErrorCodeRegisterInstance (WCHAR * in_InstanceName, IInstance ** out_InstanceInterface) = 0
Registers a new instance of a virtual controller at the Runtime Manager. Also creates and returns an interface of this instance.
virtual ERuntimeErrorCodeRegisterInstance (ECPUType in_CPUType, IInstance ** out_InstanceInterface) = 0
Registers a new instance of a virtual controller at the Runtime Manager. Also creates and returns an interface of this instance.
virtual ERuntimeErrorCodeRegisterInstance (ECPUType in_CPUType, WCHAR * in_InstanceName, IInstance ** out_InstanceInterface) = 0
Registers a new instance of a virtual controller at the Runtime Manager. Also creates and returns an interface of this instance.
virtual ERuntimeErrorCodeRegisterInstance (const WCHAR * in_ArticleNumber, const WCHAR * in_InstanceName, IInstance ** out_InstanceInterface) = 0
Registers a new instance of a virtual controller at the Runtime Manager. Also creates and returns an interface of this instance.
virtual ERuntimeErrorCodeResetNetInterfaceBindings () = 0
Resets bindings to the default state.
virtual ERuntimeErrorCodeSetDefaultStoragePath (const WCHAR * in_DefaultStoragePath) = 0
Set the default storage path.
virtual ERuntimeErrorCodeSetNetInterfaceBindings (DWORD in_PCInterfaceIndex=0) = 0
Sets bindings of PLCSIM Virtual Switch to PC interfaces according to networking mode and network interface mapping configuration for the instance. This function must be called from an elevated session (admin mode).
virtual ERuntimeErrorCodeSetNetworkMode (const ENetworkMode in_mode) = 0
Set the network mode that will be used on the network adapter for distributed communication. User has to check if bindings on network interfaces are correct.
virtual enum ERuntimeErrorCodeSetStrictMotionTiming (bool enable) = 0
Enable or disable default strict motion timing for newly created instances.
virtual~IBaseRuntimeManager ()

Public Functions inherited from IBaseInterface

See IBaseInterface

TypeName
virtual~IBaseInterface ()

Public Functions Documentation

function Disconnect

Closes the connection to the remote Runtime Manager.

virtual ERuntimeErrorCode IRemoteRuntimeManager::Disconnect () = 0

function GetIP

Returns the IP of the PC the remote Runtime Manager is running on. Returns 0 if the function fails.

virtual UIP IRemoteRuntimeManager::GetIP () = 0

function GetRemoteComputerName

Returns the name of the PC the remote Runtime Manager is running on.

virtual ERuntimeErrorCode IRemoteRuntimeManager::GetRemoteComputerName (
    WCHAR * inout_Name,
    UINT32 in_ArrayLength
) = 0

Parameters:

  • inout_Name A user allocated array to receive the computer name.
  • in_ArrayLength The length of the array. The array should be bigger than MAX_COMPUTERNAME_LENGTH (Windows.h define).

function RegisterOnConnectionLostCallback

When receiving the event the registered callback function will be called. The callback function runs in a separate thread. More callback functions can be registered to the event.

virtual void IRemoteRuntimeManager::RegisterOnConnectionLostCallback (
    EventCallback_IRRTM in_CallbackFunction
) = 0

Parameters:

  • in_CallbackFunction A callback function to subscribe to the event.

function RegisterOnConnectionLostEvent [½]

When receiving the event, the registered event object is set to signaled state. There can be only one event object registered to the event. Registering a new one will automatically unregister the previous one.

virtual void IRemoteRuntimeManager::RegisterOnConnectionLostEvent () = 0

function RegisterOnConnectionLostEvent [2/2]

When receiving the event, the registered event object is set to signaled state. There can be only one event object registered to the event. Registering a new one will automatically unregister the previous one.

virtual void IRemoteRuntimeManager::RegisterOnConnectionLostEvent (
    HANDLE * in_Event
) = 0

Parameters:

  • in_Event The handle to a user created event object. The event object will be registered.

function UnregisterOnConnectionLostCallback

Unregisters the callback function. When receiving the event no callback function will be called.

virtual void IRemoteRuntimeManager::UnregisterOnConnectionLostCallback (
    EventCallback_IRRTM in_CallbackFunction=nullptr
) = 0

function UnregisterOnConnectionLostEvent

Unregisters the event object.

virtual void IRemoteRuntimeManager::UnregisterOnConnectionLostEvent () = 0

function WaitForOnConnectionLostEvent [½]

The function will block until the registered event object is in the signaled state or the timeout interval elapses.

virtual bool IRemoteRuntimeManager::WaitForOnConnectionLostEvent () = 0

function WaitForOnConnectionLostEvent [2/2]

The function will block until the registered event object is in the signaled state or the timeout interval elapses.

virtual bool IRemoteRuntimeManager::WaitForOnConnectionLostEvent (
    UINT32 in_Time_ms
) = 0

Parameters:

  • in_Time_ms The value for the timeout limit in milliseconds.

function ~IRemoteRuntimeManager

inline virtual IRemoteRuntimeManager::~IRemoteRuntimeManager ()