Table 7- 113 Setipsuite() - Native C - Siemens Simatic S7-1500 Function Manual

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

Advertisement

SetIPSuite()
Sets the IP suite of the network interface of a virtual controller.

Table 7- 113 SetIPSuite() - Native C++

Syntax
Parameters
Return values
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
ERuntimeErrorCode SetIPSuite(
UINT32 in_InterfaceID,
SIPSuite4 in_IPSuite,
bool in_IsRemanent
);
UINT32 in_InterfaceID:
The ID of the network interface.
SIPSuite4 in_IPSuite:
The IP suite that is to be assigned to the network interface. The IP suite con-
tains the IP address, the subnet mask and the standard gateway.
If the communication interface is "Softbus", the subnet mask and standard
gateway are ignored.
bool in_IsRemanent:
If
, the IP suite is saved after restart of the virtual controller.
true
If the communication interface is "Softbus", this flag is ignored.
Runtime error code
SREC_OK
SREC_INTERFACE_REMOVED
SREC_TIMEOUT
SREC_INSTANCE_NOT_RUNNING
SREC_DOES_NOT_EXIST
SREC_INVALID_OPERATING_STATE
User interfaces (API)
7.6 API IInstances
Condition
The function is successful.
The instance is not registered in Runtime
Manager.
The function does not return on time.
The process of the virtual controller is not
running.
There is no network interface with this ID.
The virtual controller has not yet com-
pleted the boot process or is already in
the shutdown phase.
139

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents