InReal Method
Description
Returns the input data of 2 words (32 bits) as the floating-point data (IEEE754 compliant) of 32 bits.
Syntax
Function InReal (PortNumber As Integer) As Single
Parameters
- PortNumber
An integer indicating the input port.
Return Value
Returns the input port status in 32 bits floating-point data (IEEE754 compliant).
See Also
In Method, InBCD Method, InW Method, Out Method, OutW Method, OutReal Method
InReal Example
VB Example:
Dim val As Single
val = m_spel.InReal(32)
C# Example:
float val;
val = m_spel.InReal(32);