Table 7- 341 Registerinstanceinfo { Get; } - .Net (C#) - Siemens Simatic S7-1500 Function Manual

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

Advertisement

RegisteredInstanceInfo { get; }
Returns information about an already registered instance. You can use the ID or name of
this instance to create an interface of this instance, see

Table 7- 341 RegisterInstanceInfo { get; } - .NET (C#)

Syntax
Parameters
Return values
Exceptions
RegisterInstance()
Registers a new instance of a virtual controller in Runtime Manager. Creates and returns an
interface of this instance.
Table 7- 342 RegisterInstance() - Native C++
Syntax
Parameters
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
SInstanceInfo[] RegisteredInstanceInfo { get;
None
None
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeErrorCode.Timeout
ERuntimeErrorCode RegisterInstance(
IInstance** out_InstanceInterface
);
ERuntimeErrorCode RegisterInstance(
WCHAR* in_InstanceName,
IInstance** out_InstanceInterface
);
ERuntimeErrorCode RegisterInstance(
ECPUType in_CPUType,
IInstance** out_InstanceInterface
);
ERuntimeErrorCode RegisterInstance(
ECPUType in_CPUType,
WCHAR* in_InstanceName,
IInstance** out_InstanceInterface
);
ECPUType in_CPUType:
Defines which CPU type is simulated at the start of the instance. The default
setting is
"SRCT_1500_Unspecified"
When a different CPU type is loaded via STEP 7 or from the Virtual Memory
Card, this CPU type applies.
WCHAR* in_InstanceName:
Name to be assigned to the instance. Every instance must have a unique
name. If no name is assigned when registering a new instance, the instance is
given the name
"Instance_#"
exists, the name
"Instance_#.#"
that is incremented until the name is unique. The length of the name must be
less than
DINSTANCE_NAME_LENGTH
IInstance** out_InstanceInterface:
Pointer to a Simulation Runtime interface pointer. The pointer must be initial-
ized with
. The interface is created within the function.
NULL
7.7 API IRemoteRuntimeManager
CreateInterface()
}
Condition
The interface is disconnected from the
remote Runtime Manager.
The function does not return on time.
.
(# is the ID of the instance). If this name already
is used, in which the second # is a counter
. See Data types (Page 306).
User interfaces (API)
.
269

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents