beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 360

background image

S

UM

(

ELEMENT

,

COUNT

)

V

LINX

F

IELDBUS

G

ATEWAY

M

ANAGER

U

SER

M

ANUAL

P

AGE

344

S

UM

(

ELEMENT

,

COUNT

)

A

RGUMENT

T

YPE

D

ESCRIPTION

element

int / float

The first array element to be processed.

count

int

The number of elements to be processed.

D

ESCRIPTION

Returns the sum of the

count

array elements from

element

onwards.

F

UNCTION

T

YPE

This function is passive.

R

ETURN

T

YPE

int

or

float

, depending on the type of the

value

argument.

E

XAMPLE

Total := Sum(Data[0], 10)