Mitsubishi Electric FX3G SERIES Programming Manual page 619

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
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
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
S
+1 is larger than the number of
1
digits of 32-bit binary data stored in
[
S
+1,
2
automatically added, and the data is shifted
to the right end during conversion.
- When the number of all digits stored in
S
excluding the sign and decimal point
1
is larger than the number of digits of 32-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
S
excluding the sign and decimal point is smaller than the number of digits of 32-bit binary data stored in
1
[
S
+1,
2
- "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
16-bit operation
32-bit operation
• When the relationship between the number of all digits stored in
stored in
S
1
(Number of all digits -3) ≥ Number of digits of decimal part
• When the number of all digits stored in
than the number of digits of the binary data stored in [
Number of
all digits
+1 is set to any
S
1
Number of
digits of
decimal part
32-bit
binary data
S
+1 is set to "0",
1
S
], "0" (30H) is
2
S
+1,
S
],
2
2
S
], an error is caused.
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.
S
1
Setting range
2 to 8
2 to 13
Setting range
0 to 5
0 to 10
+1 does not satisfy the following (error code: K6706)
S
1
26 Character String Control – FNC200 to FNC209
26.1 FNC200 – STR / BIN to Character String Conversion
D
and later as shown below.
S
is negative.
2
10
3
12345678
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
decimal part
32-bit
-543210
binary data
Description
is outside the following range (error code: K6706)
+1 is outside the following range (error code: K6706)
S
1
S
and the number of digits of the decimal part
1
including the digit for sign and the digit for decimal point is smaller
S
+1,
S
] (error code: K6706)
2
2
S
is positive, and "- (2DH)" is
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
4
3 2
It is automatically added.
-
5
4 3 2
1
"20H" (space) is stored in
each digit.
21
22
23
1
24
0
25
26
27
28
29
30
617

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents