beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 344

background image

S

ET

N

ET

C

ONFIG

(

PORT

,

ADDR

,

MASK

,

GATE

)

V

LINX

F

IELDBUS

G

ATEWAY

M

ANAGER

U

SER

M

ANUAL

P

AGE

328

S

ET

N

ET

C

ONFIG

(

PORT

,

ADDR

,

MASK

,

GATE

)

A

RGUMENT

T

YPE

D

ESCRIPTION

port

int

The index of the Ethernet port. Must be zero.

addr

int

The required IP address for the port.

mask

int

The required netmask for the port.

gate

int

The required default gateway for the port.

D

ESCRIPTION

Overrides the database settings for the Ethernet port. The various IP parameters are 32-bit
integers that can optionally be formed from strings using the

TextToAddr()

function. Note

that setting all three of the IP values to zero will reset the port’s settings to the database
defaults. Note also that the unit must be power-cycled before the new values will take effect.

F

UNCTION

T

YPE

This function is active.

R

ETURN

T

YPE

This function does not return a value.

E

XAMPLE

SetNetConfig(0,0,0,0)