2-209
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Math Instructions
2
CheckReal
CheckReal
The CheckReal instruction checks a real number to see if it is infinity or nonnumeric data.
* If you omit an input parameter, the default value is not applied. A building error will occur.
Instruction Name FB/FUN Graphic expression ST expression
CheckReal Real Number
Check
FUN CheckReal(In, Nan, PosInfi-
nite, NegInfinite);
Variables
Name Meaning I/O Description Valid range Unit Default
In Real num-
ber
Input Real number Depends on data type.
--- *
Out Return
value
Output
Always TRUE TRUE only
--- ---
Nan Nonnu-
meric data
check
result
TRUE: Nonnumeric data
FALSE: Not nonnumeric
data
Depends on data type.
PosInfinite Positive
infinity
check
result
TRUE: Positive infinity
FALSE: Not positive infinity
NegInfinite Negative
infinity
check
result
TRUE: Negative infinity
FALSE: Not negative infinity
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In OK OK
Out OK
Nan OK
PosInfinite OK
NegInfinite OK
(@)CheckReal
EN ENO
In Out
Nan
PosInfinite
NegInfinite