hit counter script

Mitsubishi Electric FX3G SERIES Programming Manual page 618

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
- When the number of all digits stored in
S
excluding the sign and decimal
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
S
excluding the sign and decimal point is smaller than the number of digits of 16-bit binary data stored in
1
S
, an error is caused.
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.
2. 32-bit operation (DSTR and DSTRP)
1)
All digits (specified by
while the decimal point is added to the position specified by the device storing the number of digits of the decimal
part (
S
1
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
S
1
+1
+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,647.
616
S
,
2
S
) of 32-bit binary data stored in [
1
+1), and stored in
D
and later.
S
S
1
2
S
2
b0
8
3
-
6
5
4
3 2 1
S
2
ranging 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
S
2
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
ASCII code in "(Value
+4
specifying number of all
digits - 9)"th digit
+5
00H
b15
36H(6)
+0
D
34H(4)
+1
33H(3)
+2
31H(1)
+3
+4
S
+1 ranging from 0 to 10.
1
S
+1,
S
] should be ranging from -2,147,483,648 to
2
2
-
1 2
3
"20H" (space) is
stored in each digit.
+1,
S
] are converted into ASCII codes
2
b8 b7
b0
ASCII code
indicating sign
ASCII code in "(Value
specifying number of all
digits - 2)"th digit
ASCII code in "(Value
specifying number of all
digits - 4)"th digit
ASCII code in "(Value
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.
b8 b7
b0
2DH(-)
35H(5)
2EH(.)
32H(2)
0000H
0000H is automatically stored at
the end of a character string.
For number of
all digits
For value
stored in
S
1
For number of
all digits
=8
S
1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents