User manual

IEC61131 User and Reference Manual
April 22, 2008
341
setipi
Set Interface IP Address
The setipi function is used to set IP settings for a specific communication interface.
Message type variables are used for ipAddress and netMask to make user entry of
addresses easier: e.g. 255.255.255.255. This function block is used by the SCADAPack
330, SCADAPack 350 and SCADAPack 32 controller series only.
ifType
ipAddress
subnetMask
setipi
set
Q
ipConfigMode
gateway
Arguments
Inputs
Type
Description
set
Boolean
Sets the IP settings for the selected interface when
TRUE. Set this input to FALSE once the settings has
been set.
ifType
Integer
Communication interface to set IP settings.
100 = LAN/PPP
ipConfigMode
Integer
Configuration Mode
0 = Default gateway is on the LAN subnet
1 = Default gateway is on the com1 PPP subnet
2 = Default gateway is on the com2 PPP subnet
3 = Default gateway is on the com3 PPP subnet
4 = Default gateway is on the com4 PPP subnet
Default: 0
ipAddress
Message
IP Address in format 255.255.255.255
subnetMask
Message
Network mask in format 255.255.255.255
gateway
Message
Default gateway in format 255.255.255.255
Outputs
Type
Description
Q
Boolean
TRUE when set input is TRUE and operation is
successful.
FALSE when set input is FALSE.
FALSE when set input is TRUE and an invalid input is
used.
See Also
getipi