Additional Information
To switch the execution of an execute-type instruction with the condition expression, place only
the Execute input parameter in the ST structure. Place the execute-type instruction itself out-
side of the ST structure.
For details on the ST structure instructions, refer to the NY
-series Instructions Reference
Manual (Cat. No. W560).
Treatment of REAL and LREAL Data
REAL and LREAL are floating-point decimal data types.
This section describes how they are expressed and processed.
REAL and LREAL Data Sizes
The data sizes of REAL data and LREAL data are different.
REAL data has 32 bits and LREAL data has 64 bits.
Floating-point Decimal Data Format
A real number in floating-point decimal format is expressed using a sign, exponent, and mantissa.
When a real number is substituted in the following formulas, the value corresponding to
"s" be-
comes the sign, "e" the exponent, and "f" the mantissa.
• REAL Data
Number = (-1)
s
2
e-127
(1 + f × 2
-23
)
• LREAL Data
Number = (-1)
s
2
e-1023
(1 + f × 2
-52
)
The floating-point data format conforms to the IEEE754 standards. The following formats are used.
s e f
31
30 23 22
s
63 62 52 51 0
e f
Mantissa
ExponentSign
LREAL data (64 bits)
MantissaExponentSign
REAL data (32 bits)
0
Example: Expressing -86.625 as REAL Data
1 Setting the Sign
The number is negative, so s = 1.
2 Binary Expression
The number 86.625 is 10101
10.101 as a binary number.
3 Normalized Binary Expression
When the above number is normalized, it becomes 1.0101
10101×2
6
.
1 Introduction to Motion Control Instructions
1-13
NY-series Motion Control Instructions Reference Manual (W561)
1-2 Basic Information on Motion
Control Instructions
1
1-2-3 Motion Control Instruction Locations