beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 684

background image

Publication GMLC-5.2 - November 1999

647

The argument may 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.5 and 10.49 (9.5

Cut_Length < 10.49), 11 if Cut_Length has a value between 10.5 and
11.49 (10.5

Cut_Length < 11.49), etc.

Round(Cut_Length)

Round Up

The

Round_up function rounds the argument up to the next higher

integer value, as shown below.

Argument

+1

+2

–1

–2

+1

+2

–1

–2