beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 687

background image

Publication GMLC-5.2 - November 1999

650

Mathematical Functions

The argument can be any floating point value or expression. Note that for
positive arguments, the action of the Integer function is identical to that of
the Round_down function, while for negative arguments, it is identical to
the Round_up function.

For example, the following expression is evaluated as 9 if the user
variable Cut_Length has a value between 9 and 10 (9

Cut_Length < 10),

-10 if Cut_Length has a value between -10 and -11 (-11 < Cut_Length

-

10), etc.

Integer(Cut_Length)

Exponent

The value of the Exponent function is e raised to the power of the
argument (e

x

), as shown below.

Argument

+1

+2

–1

–2

+1

+2

–1

–2