beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 200

background image

R

UNNING

P

ROGRAMS

V

LINX

F

IELDBUS

G

ATEWAY

M

ANAGER

U

SER

M

ANUAL

P

AGE

184

such that an example such as

Data.1:=(Level>10)

can be used to set or clear a bit

depending on whether or not a tank level exceeds a preset value.

R

UNNING

P

ROGRAMS

Programs may be invoked within actions by following the program name with a pair of
parentheses. For example,

Program1()

will invoke the associated program. The program will

execute in the foreground or background as defined by the program’s properties.

U

SING

F

UNCTIONS

Fieldbus Gateway Manager provides a number of predefined functions that can be used to
perform various operations. These functions are defined in detail in the Function Reference.
They are invoked using a syntax similar to that for programs, with any arguments to the
function being enclosed within the parentheses. For example,

SetLanguage(1)

will set the

terminal language to 1.

O

PERATOR

P

RIORITY

All assignment operators fall into Group 14. In other words, they will be evaluated after all
other operators in an action. They are also unique in that they group right-to-left. This means
that code such as

Tag1:=Tag2:=Tag3:=0

can be used to clear all three tags at once.