beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 272

background image

G

ET

F

ORMATTED

T

AG

(

INDEX

)

V

LINX

F

IELDBUS

G

ATEWAY

M

ANAGER

U

SER

M

ANUAL

P

AGE

256

G

ET

F

ORMATTED

T

AG

(

INDEX

)

A

RGUMENT

T

YPE

D

ESCRIPTION

index

int

Tag index number

D

ESCRIPTION

Returns a string representing the formatted value of the tag specified by

index

. The string

returned follows the format programmed on the targeted tag. For example, a flag will show
On or Off, a multi variable will show the text corresponding to the value. The index can be
found from the tag label using the function

FindTagIndex()

.This function works with any

type of tags.

F

UNCTION

T

YPE

This function is active.

R

ETURN

T

YPE

cstring.

E

XAMPLE

Value = GetFormattedTag(10)

Returns the value of the tag with index 10 in a string.

Value = GetFormattedTag(FindTagIndex(“Power”))

Returns the value from the tag with label Power in a string.