Mitsubishi FX3G Series Programming Manual page 609

Programmable controllers
Hide thumbs Also See for FX3G Series:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
3G
3U
3GC
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
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
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
S
+1 is larger than the number of
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.
Series
S
) of 16-bit binary data stored in
1
D
and later.
S
S
D
1
2
Sign
- 1 2
3
S
ranging from 2 to 8.
1
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
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
0000H
+4
b15
b8 b7
31H(1)
+0
D
2EH(.)
+1
00H
+2
S
+1 ranging from 0 to 5.
1
should be ranging from -32768 to +32767.
S
2
D
and later as shown below.
S
is negative.
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
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 is automatically stored at
the end of a character string.
b0
2DH(-)
For number of
all digits
32H(2)
=5
S
1
33H(3)
00H is automatically stored at the
end of a character string.
S
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.
21
22
23
S
1
24
25
26
27
28
29
30
607

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents