beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 222

background image

A

BS

(

VALUE

)

V

LINX

F

IELDBUS

G

ATEWAY

M

ANAGER

U

SER

M

ANUAL

P

AGE

206

A

BS

(

VALUE

)

A

RGUMENT

T

YPE

D

ESCRIPTION

value

int / float

The value to be processed.

D

ESCRIPTION

Returns the absolute value of the argument. In other words, if

value

is a positive value, that

value will be returned; if

value

is a negative value, a value of the same magnitude but with

the opposite sign will be returned.

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

Error := abs(PV – SP)