Mitsubishi Electric FX3G SERIES Programming Manual page 617

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents