Mitsubishi Electric M800VW Series Programming Manual page 240

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.3 Data Conversion Instructions
 Functions
FLT
 Converts BIN 16-bit data designated by (S) to a 32-bit floating-point real number, and stores the result at the device number
designated by (D).
S
BIN 16 bits
 BIN values between -32768 to 32767 can be designated by (S).
DFLT
 Converts BIN 32-bit data designated by (S) to a 32-bit floating-point real number, and stores at the device number desig-
nated by (D).
S+1
S
Upper 16 bits
Lower 16 bits
BIN 32 bits
 BIN values between -2147483648 to 2147483647 can be designated by (S+1) and (S).
 As 32-bit floating-point real numbers are processed by single precision 32-bit processing, the number of significant digits is
24 bits when expressed as binary and approximately 7 digits when expressed as decimal. For this reason, if the integer
exceeds the range of -16777216 to 16777215 (BIN 24-bit value), errors can be generated in the conversion value. As for
the conversion result, the 25th bit from the upper bit of the integer is always filled with 1 and the 26th bit and after are trun-
cated.
b31
0 0 0 0 1 1 0 1 0 0 1 1 1 0 1 1
222030030
b31
0 0 0 1 0 1 1 0 0 0 1 1 0 1 0 1
372588919
 Operation errors
 There are no arithmetic errors associated with FLT(P) or DFLT(P) instructions.
D+1
D
32-bit floating-point real
number
D+1
32-bit floating-point real
number
Integer
b24b23
b16
b15
1 1 1 0 1 0 0 0 1 1 0 0 1 1 1 0
b24b23
b16 b15
0 1 0 0 0 0 0 1 0 1 1 1 0 1 1 1
D
b7b6
b7b6
219
After conversion
b0
Result of opera-
tion is
222030032.
Truncated
Always filled with 1
b0
Result of opera-
tion is 372588928.
Truncated
Always filled with 1
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents