Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

Here, no sign column is specified for a negative number, so a minus sign (−) is added to the front of the
integer part.
LD
REAL#-1234.567
FALSE
FALSE
USINT#16
USINT#10
16
- 1 2 3 4 . 5 6 7 0 0 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 0 0 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 0 0 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

NY-series Instructions Reference Manual (W560)

RealToFormatString
EN
ENO
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:=RealToFormatString(REAL#-1234.567, FALSE,
abc
2 Instruction Descriptions
FALSE, USINT#16,
USINT#10);
2
2-291

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents