2 Instruction Descriptions
2-432
NJ-series Instructions Reference Manual (W502)
Example 2: The following example uses the sign, decimal point, fractional part, and exponent.
Example 3: The following example does not use the sign, but uses the decimal point, fractional
part, and exponent.
Example 4: The following example does not use the sign, fractional part, decimal point, and expo-
nent.
The format for fixed-point decimal numbers is the same as the fixed-decimal output format of the
OMRON FZ-series Vision Sensors.
• The digits after the third decimal digit are truncated in In.
• Underbars (16#5F) in the text string in In are ignored.
• An error occurs in the following cases. ENO will be FALSE, and Out will not change.
• In does not end in a NULL character.
• The content of In includes characters that cannot be converted to numbers.
• The content of In has a decimal point but not a fractional part.
• The conversion result exceeds the valid range of Out.
Additional Information
Precautions for Correct Use
0001E240
In Out
‘ ’
+ 1 . 2 3 4 5 6 7 e + 0 2
0001E240
In Out
1 2 3 4 5 . 6 7 e - 0 2
‘ ’
00003E8
In Out
‘ ’
1