EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 632

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.20 Character String Control
630
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Function and operation explanation
1. 16-bit operation (STR/STRP)
1) All digits (specified by ) of 16-bit binary data of the device specified by are converted into
character string while the decimal point is added to the position specified by the device storing the
number of digits of the decimal part ( + 1), and stored in the device specified by and later.
2) Set the number of all digits in the range from 2 to 8.
3) Set the number of digits of the decimal part + 1 in the range from 0 to 5.
Be sure to satisfy "(number of digits of decimal part) (number of all digits - 3)".
4) 16-bit binary data to be converted stored in should be within the range from -32768 to 32767.
STR
EN ENO
ds1
s2
Label 1
*1
Command
input
Device storing binary
data to be converted
Label 2
*2
*1.
This defines the head of the device that stores
the number of digits of the value to be converted.
*2.
This defines the head of the device that stores
the data converted into character strings.
Number of
all digits
Number of digits
of decimal part
Sign
+0
+1
16-bit
binary data
s1
s2
5
1
- 1 2 3
+0
+1
-123
16-bit
binary data
s1
s2
+0
b15
+2
+3
+4
b8 b7 b0
0000H is automatically stored
at the end of a character string.
+1
For number of
all digits
For value stored
in
ASCII code in "(Value
specifying number
of all digits - 7)"th digit
ASCII code in "(Value
specifying number
of all digits - 6)"th digit
ASCII code in "(Value
specifying number
of all digits - 5)"th digit
ASCII code in "(Value
specifying number
of all digits - 4)"th digit
ASCII code in "(Value
specifying number
of all digits - 3)"th digit
ASCII code in "(Value
specifying number
of all digits - 2)"th digit
ASCII code in "(Value
specifying number
of all digits - 1)"th digit
ASCII code
indicating sign
0000H
s1
d
b15
+0
+2
b8 b7 b0
00H is automatically stored
at the end of a character string.
+1
For number
of all digits
=5
31H(1)
2EH(.)
00H
2DH(-)
32H(2)
33H(3)
s1

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals