EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 467

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.12 Floating Point
465
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
Caution
When handling character string data or 32-bit data in structured program, you cannot specify 16-bit device
directly unlike the simple project. When handling character string data or 32-bit data, please use the label.
However, the 32-bit counter is a 32-bit long device, and can be specified directly.
When specifying the device, use the global label.
Related devices
As for the manner of using the zero, borrow, or carry flag, refer to the FX Structured Programming
Manual (Device & Common).
Related instructions
Error
In the following cases, it is an operation error, error flag (M8067) is turned ON, and error code is stored in
D8067.
When other characters than "30H" (0) to "39H" (9) are present in the integer part or the decimal part.
(Error code : K6706)
When two or more "2EH" (.) are present in the character string specified by . (Error code : K6706)
When other characters than "45H" (E), "2BH" (+), or "2DH" (-) are present in the exponential part, or when
there are plural exponential parts. (Error code : K6706)
When "00H" is not present in the corresponding device range from . (Error code : K6706)
When the number of characters after is 0 or exceeds 24 characters. (Error code : K6706)
Device Name
Content
Condition Operation
M8020 Zero
The conversion result is really
zero
(when the mantissa part is "0")
Zero flag (M8020) is ON.
M8021 Borrow
Absolute value of conversion
result < 2
-126
The value of is the smallest value (2
-126
) of 32-bit real number,
and borrow flag (M8021) is ON.
M8022 Carry
Absolute value of conversion
result 2
128
The value of is the largest value (2
128
) of 32-bit real number,
and carry flag (M8022) is ON.
Instruction Content
ESTR This instruction converts the binary floating decimal point data into character string (ASCII code).
STR This instruction converts BIN data into character string (ASCII code).
VAL This instruction converts the character string (ASCII code) data into BIN data.

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals