User interfaces (API)
7.6 API IInstances
CommunicationInterface { get; set; }
Sets or returns the communication interface of the virtual controller: Local communication
(Softbus) or TCPIP. A change of communication interface occurs only when the controller is
restarted. All instances that are started must use the same communication interface.
PowerOn is prevented if a communication interface that is not used by the started instances
is selected.
Table 7- 99
Syntax
Parameters
Return values
Exceptions
GetInfo() / Info { get; }
Returns a structure that provides information about the instance.
Table 7- 100 GetInfo() - Native C++
Syntax
Parameters
Return values
Table 7- 101 Info { get; } - .NET (C#)
Syntax
Parameters
Return values
Exceptions
134
CommunicationInterface { get; set; } - .NET (C#)
ECommunicationInterface CommunicationInterface { get; set; }
None
•
ECommunicationInterface.None
Cannot be selected. Is returned if the instance interface is no longer valid.
•
ECommunicationInterface.Softbus
Is returned if the virtual controller uses the Softbus.
•
ECommunicationInterface.TCPIP
Is returned if the virtual controller communicates over the virtual adapter.
None
SInstanceInfo GetInfo();
None
SInstanceInfo:
SInstanceInfo (Page 314).
SInstanceInfo Info { get; }
None
A structure that provides information about the instance.
SInstanceInfo:
None
A structure that provides information about the instance. See
Function Manual, 12/2017, A5E37039512-AB
S7-PLCSIM Advanced