beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 370

background image

W

AIT

D

ATA

(

DATA

,

COUNT

,

TIME

)

V

LINX

F

IELDBUS

G

ATEWAY

M

ANAGER

U

SER

M

ANUAL

P

AGE

354

W

AIT

D

ATA

(

DATA

,

COUNT

,

TIME

)

A

RGUMENT

T

YPE

D

ESCRIPTION

data

any

First array element to be read.

count

int

Number of elements to be read.

time

int

The timeout period in milliseconds.

D

ESCRIPTION

Requests that

count

elements from array element

data

onwards to read on the next comms

scan. This function is used with arrays that have been mapped to external data, and which
have their read policy set to Read Manually. Unlike

ReadData()

, the function waits for up to

the time specified by the

time

parameter in order to allow the data to be read. The return

value is one if the read completed within that period, or zero otherwise.

F

UNCTION

T

YPE

This function is active.

R

ETURN

T

YPE

int.

E

XAMPLE

status := WaitData(array1[8], 10, 1000)