beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 347

background image

F

UNCTION

R

EFERENCE

S

ET

P

ORT

C

ONFIG

(

PORT

,

PARAM

,

VALUE

)

R

EVISION

1

P

AGE

331

The following setup shows how to modify the RS232 port from the device display.

Create a tag for each parameter value, i.e.

Baud

,

DataBits

,

StopBits

,

Parity

and

PhysicalMode

. Make sure all tags are set to retentive.

Insert the tags on the User Interface for operator access.

Create a button, set its action to User Defined and enter the

CommitAndReset()

function in the OnPressed field.

Create a user program with the following code:

Program1

SetPortConfig(2, 1, Baud);

SetPortConfig(2, 2, DataBits);

SetPortConfig(2, 3, StopBits);

SetPortConfig(2, 4, Parity);

SetPortConfig(2, 5, PhysicalMode);

Call this program in the OnLoad field in the User Interface.

The user can now enter the port settings on the display and will commit the changes when
pressing the button. The device will cycle power to change the port settings.