EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 633

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.20 Character String Control
631
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
5) Converted character string data is stored in and later as shown below.
a) As the sign, "space" (20H) is stored when the 16-bit binary data stored in is positive, and "-"
(2DH) is stored when the 16-bit binary data stored in is negative.
b) When the number of digits of the
decimal part + 1 is set to any
value other than "0", the decimal
point "." (2EH) is automatically added
in "number of digits of decimal part +
1"th digit.
When the number of digits of the
decimal part + 1 is set to "0",
the decimal point is not added.
c) When the number of digits of the
decimal part + 1 is larger than
the number of digits of 16-bit binary
data stored in , "0" (30H) is
automatically added, and the data is
shifted to the right end during
conversion.
d) When the number of all digits stored
in excluding the sign and
decimal point is larger than the
number of digits of 16-bit binary data
stored in , "space" (20H) is
stored in each digit between the sign
and the numeric value.
When the number of all digits stored
in excluding the sign and
decimal point is smaller than the
number of digits of 16-bit binary data
stored in , an error is caused.
e) "00H" indicating the end of a character string is automatically stored at the end of a converted
character string.
When the number of all digits is even, "0000H" is stored in the device after the last character.
When the number of all digits is odd, "00H" is stored in the high-order byte (8 bits) of the device storing
the last character.
12 3
Number of digits
of decimal part
Number of all digits
4
It is automatically
added.
Number of digits
of decimal part
16-bit binary data
6
2
1234
001
Number of all digits
2
It is automatically
added.
Number of digits
of decimal part
16-bit binary data
6
3
12
12 3
Number of all digits
"20H" (space) is
stored in each digit
Number of digits
of decimal part
16-bit binary data
8
1
-123
-

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals