B&B Electronics VFG3000 - Manual User Manual
Page 346

S
ET
P
ORT
C
ONFIG
(
PORT
,
PARAM
,
VALUE
)
V
LINX
F
IELDBUS
G
ATEWAY
M
ANAGER
U
SER
M
ANUAL
P
AGE
330
S
ET
P
ORT
C
ONFIG
(
PORT
,
PARAM
,
VALUE
)
A
RGUMENT
T
YPE
D
ESCRIPTION
port
int
Number of the port to be set
param
int
Port parameter to be set
value
int
Value of the parameter
D
ESCRIPTION
Sets the serial port parameter to value. The port number starts from the programming port
with value 1. The table below shows the parameter number and associated possible values.
P
ARAM
N
B
D
ESCRIPTION
P
OSSIBLE
V
ALUES
1
Baud Rate
The actual baud rate, e.g. 115200
2
Data Bits
7, 8 or 9
3
Stop Bits
1 or 2
4
Parity
0 (none), 1 (odd) or 2 (even)
5
Physical Mode
1 (RS232), 2 (422 Master), 3 (422 Slave), 4 (485)
Note: This function will only work when called before the device startup. The OnLoad field
provided in the User Interface on the pages tree root is used for this purpose. See example
below for more details.
Note: The function
CommitAndReset()
is used to force the device to cycle power in order
for the
SetPortConfig()
function to set the new port parameters.
F
UNCTION
T
YPE
This function is active.
R
ETURN
T
YPE
cstring.
E
XAMPLE
See next page.