beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 685

background image

Publication GMLC-5.2 - November 1999

648

Mathematical Functions

The argument can be any floating point value or expression.

For example, the following expression is evaluated as 10 if the user
variable

Cut_Length

has a value between 9 and 10 (9 < Cut_Length

10), 11 if Cut_Length has a value between 10 and 11 (10 < Cut_Length

11), etc.

Round_up(Cut_Length)

Round Down

The

Round_down function rounds the argument down to the next lower

integer value, as shown below.

.

Argument

+1

+2

–1

–2

+1

+2

–1

–2