Mitsubishi Electric MELSEC FX3U Programming Manual page 647

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
- When the number of all digits stored in
excluding the sign and decimal
S
1
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
number of digits of 16-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.
2. 32-bit operation (DSTR and DSTRP)
1) All digits (specified by
codes while the decimal point is added to the position specified by the device storing the number of digits
of the decimal part (
Command
input
FNC200
DSTR
Number of all
digits
+0
S
1
Number of digits
+1
of decimal part
Sign
+1
S
2
b31
b16 b15
S
High-order 16 bits
Low-order 16 bits
2
32-bit binary data
+0
8
S
1
+1
3
+1
S
2
32-bit
-654321
binary data
2) Set the number of all digits
3) Set the number of digits of the decimal part
Make sure to satisfy "Number of digits of decimal part <= (Number of all digits -3)".
4) 32-bit binary data to be converted stored in [
2,147,483,648 to +2,147,483,647.
,
S
2
) of 32-bit binary data stored in [
S
1
+1), and stored in
S
1
S
S
D
1
2
S
2
b0
-
6
5
4
3 2 1
S
2
in the range from 2 to 13.
S
1
26 Character String Control – FNC200 to FNC209
26.1 FNC200 – STR / BIN to Character String Conversion
Number of
8
all digits
Number of
1
digits of
decimal part
16-bit
-123
binary data
excluding the sign and decimal point is smaller than the
S
1
, an error is caused.
S
2
+1,
S
2
and later.
D
b15
b8 b7
ASCII code in "(Value
+0
specifying number of all
D
digits - 1)"th digit
ASCII code in "(Value
+1
specifying number of all
digits - 3)"th digit
ASCII code in "(Value
+2
specifying number of all
digits - 5)"th digit
ASCII code in "(Value
+3
specifying number of all
digits - 7)"th digit
ASCII code in "(Value
+4
specifying number of all
digits - 9)"th digit
+5
00H
b15
b8 b7
36H(6)
+0
D
34H(4)
+1
33H(3)
+2
31H(1)
+3
0000H
+4
+1 in the range from 0 to 10.
S
1
+1,
] should be within the range from -
S
S
2
2
-
1 2
3
"20H" (space) is
stored in each digit.
] are converted into ASCII
S
2
b0
ASCII code
indicating sign
ASCII code in "(Value
specifying number of all
digits - 2)"th digit
ASCII code in "(Value
For number of
specifying number of all
all digits
digits - 4)"th digit
For value
ASCII code in "(Value
stored in
specifying number of all
digits - 6)"th digit
ASCII code in "(Value
specifying number of all
digits - 8)"th digit
ASCII code in "(Value
specifying number of all
digits - 10)"th digit
00H is automatically stored at the
end of a character string.
b0
2DH(-)
35H(5)
For number of
all digits
2EH(.)
=8
S
1
32H(2)
0000H is automatically stored at
the end of a character string.
21
22
23
24
25
S
26
1
27
28
29
30
645

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents