Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions
Here, no sign column is specified for a negative number, so a minus sign (−) is added to the front of the
integer part.
LD
LREAL#-1234.56789
FALSE
FALSE
USINT#16
USINT#10
16
- 1 2 3 4 . 5 6 7 8 9 0 0 0 0 0
Example 2: Exponent: TRUE
Here, the value of MinLen exceeds the number of digits in the text string, so the text string is right-
aligned and blank characters are added before it.
- 1 . 2 3 4 5 6 7 8 9 0 0 e + 0 3
Example 3: Exponent: TRUE
The sign column is always on the left. Blank characters are added to the front of the integer part.
-
1 . 2 3 4 5 6 7 8 9 0 0 e + 0 3
Example 4: Exponent: TRUE
The fourth decimal place is rounded off because DecPlace is USINT#3.
12
-
1 . 2 3 5 e + 0 3
3
2-266
LrealToFormatString
EN
ENO
abc
In
Exponent
Sign
MinLen
DecPlace
10
Sign: FALSE
MinLen: USINT#21
DecPlace: USINT#10
21
10
Sign: TRUE
MinLen: USINT#22
DecPlace: USINT#10
22
10
Sign: TRUE
MinLen: USINT#12
DecPlace: USINT#3
ST
abc:=LrealToFormatString(LREAL#-1234.56789, FALSE,
FALSE, USINT#16,
USINT#10);

NJ-series Instructions Reference Manual (W502)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents