InReal Function

Returns the input data of 2 words (32 bits) as the floating-point data (IEEE754 compliant) of 32 bits.

Syntax
InReal(WordPortNumber)

Parameters

WordPortNumber
Specifies the I/O input word port.

Return Values
Returns the input port status in Real type number.

Description
From the input word port specified by the word port number, retrieve the 2 input word values as IEEE754 Real type value. Input word label can be used for the word port number parameter.

InReal Function cannot be used for the Wait command, or the condition of Till, Find, Sense.

See Also
In, InW, InBCD, Out, OutW, OpBCD, OutReal

InW Function Example

Real realVal

realVal = InReal(32)