Mitsubishi Electric MELSEC FX3U Programming Manual page 646

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
Explanation of function and operation
1. 16-bit operation (STR and STRP)
1) All digits (specified by
the decimal point is added to the position specified by the device storing the number of digits of the
decimal part (
Command
input
FNC200
STR
Number of all
digits
+0
S
1
+1
Number of digits
of decimal part
16-bit binary
S
2
data
+0
5
S
1
+1
1
16-bit binary
data
-123
S
2
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) 16-bit binary data to be converted stored in
5) Converted character string data is stored in
- As the sign, "space" (20H) is stored when the 16-bit binary data stored in
(2DH) is stored when the 16-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
decimal point is not added.
- When the number of digits of the
decimal part
number of digits of 16-bit binary data
stored in
automatically added, and the data is
shifted to the right end during
conversion.
644
) of 16-bit binary data stored in
S
1
+1), and stored in
S
1
S
S
D
1
2
Sign
- 1 2
3
in the range from 2 to 8.
S
1
+1 is set to any
S
1
+1 is set to "0", the
S
1
+1 is larger than the
S
1
, "0" (30H) is
S
2
26 Character String Control – FNC200 to FNC209
26.1 FNC200 – STR / BIN to Character String Conversion
S
2
and later.
D
b15
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
+4
b15
31H(1)
+0
D
2EH(.)
+1
00H
+2
+1 in the range from 0 to 5.
S
1
should be within the range from -32768 to +32767.
S
2
and later as shown below.
D
is negative.
S
2
Number of
6
all digits
Number of
2
digits of
decimal part
16-bit
1234
binary data
Number of
6
all digits
Number of
3
digits of
decimal part
16-bit
12
binary data
are converted into ASCII codes while
b8 b7
b0
ASCII code
indicating sign
ASCII code in "(Value
specifying number of all
For number of
digits - 2)"th digit
all digits
ASCII code in "(Value
For value
specifying number of all
stored in
digits - 4)"th digit
ASCII code in "(Value
specifying number of all
digits - 6)"th digit
0000H
0000H is automatically stored at
the end of a character string.
b8 b7
b0
2DH(-)
For number of
all digits
32H(2)
S
1
33H(3)
00H is automatically stored at the
end of a character string.
is positive, and "-"
S
2
1 2
3
4
Number of digits of
decimal part
It is automatically
added.
0
0 1 2
It is automatically
added.
S
1
=5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents