REALTOINT (125)


REALTOINT (125)

ID                          125

 

 

Application:

PLC

SIM

 

Group: DATA CONVERSION

 

Short description:

Function that converts a real value to an integer.

 

Inputs (1):

no.

type

impulse

mark

notes

1

R

no

IN

Real type input value


Outputs (1):

no.

type

impulse

mark

notes

1

I

nie

OUT

Integer type output value


Settings: none

Function operation:

The REALTOINT function performs a real-to-integer conversion. Due to the conversion of types with different ranges of variation, values outside the range of an integer are converted as follows: -2147483648 for IN <-2147483648, 2147483647 for IN> 214748367. Function block 96 can be used to detect limitations out of range (see LIMITS (96)). 

 

R registers and M markers used: none