Is Not a Number (IsNAN)
This instruction is supported by both standard and safety applications.
When enabled, the Is Not a Number (IsNAN) instruction tests whether the source is not a number.
Available Languages
Ladder Diagram

Function Block Diagram
This instruction is not available in Function Block Diagram.
Structured Text
This instruction is not available in structured text.
Operands
Ladder Diagram
Operand | Data Type | Format | Description |
|---|---|---|---|
Source | REAL LREAL | tag | Value to test whether it is not a number. |
Affects Math Status Flags
No
Major/Minor Faults
This instruction does not generate any major/minor faults.
Execution
Ladder Diagram
Condition/State | Action Taken |
|---|---|
Prescan | N/A |
Rung-condition-in is false | Set Rung-condition-out to Rung-condition-in |
Rung-condition-in is true | If Source is NAN. Set Rung-condition-out to true else Clear Rung-condition-out to false. |
Postscan | N/A |
Examples
Ladder Diagram

Provide Feedback