Mitsubishi Electric MELSEC FX3U Programming Manual page 648

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
5) Converted character string data is stored in
- For the sign, "space" (20H) is stored when the 32-bit binary data stored in
(2DH)" is stored when the 32-bit binary data stored in
- When the number of digits of the
decimal part
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
the decimal point is not added.
- When the number of digits of the
decimal part
number of digits of 32-bit binary data
stored in [
automatically added, and the data is
shifted to the right end during
conversion.
- When the number of all digits stored in
excluding the sign and decimal
S
1
point is larger than the number of digits
of 32-bit binary data stored in [
], "space" (20H) is stored in each
S
2
digit between the sign and the numeric
value.
When the number of all digits stored in
number of digits of 32-bit binary data stored in [
- "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 final character.
Related instructions
Instruction
ESTR(FNC116)
EVAL(FNC117)
VAL(FNC201)
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is
stored in D8067.
• When the number of all digits stored in
16-bit operation
32-bit operation
• When the number of digits of the decimal part stored in
K6706)
16-bit operation
32-bit operation
646
+1 is set to any
S
1
+1 is set to "0",
S
1
+1 is larger than the
S
1
+1,
], "0" (30H) is
S
S
2
2
S
2
Converts binary floating point data into a character string (ASCII codes) with a specified number
of digits.
Converts a character string (ASCII codes) into binary floating point data.
Converts a character string (ASCII codes) into binary data.
Setting range
2 to 8
2 to 13
Setting range
0 to 5
0 to 10
26 Character String Control – FNC200 to FNC209
26.1 FNC200 – STR / BIN to Character String Conversion
and later as shown below.
D
is negative.
S
2
Number of
10
all digits
Number of
3
digits of
decimal part
32-bit
12345678
binary data
Number of
13
all digits
Number of
10
digits of
decimal part
16-bit
54321
binary data
Number of
13
all digits
Number of
2
digits of
+1,
decimal part
32-bit
-543210
binary data
excluding the sign and decimal point is smaller than the
S
1
+1,
S
S
2
2
Description
is outside the following range (error code: K6706)
S
1
+1 is outside the following range (error code:
S
1
is positive, and "-
S
2
1 2
3 4 5
6 7
8
Number of digits of
decimal part
It is automatically added.
0
0 0 0
0
0 5
It is automatically added.
-
5
4 3 2
"20H" (space) is stored in
each digit.
], an error is caused.
4
3 2
1
1
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents