EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 722

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.23 Data Table Operation
720
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Error
An operation error is caused in the following cases. The error flag M8067 turns ON, and the error code is
stored in D8067.
1) When the sign data is any value other than "20H (space)" or "2DH (-)".
(Error code: K6706)
2) When an ASCII code for each digit stored in to + 2 (5) is any value other than "30H" to "39H",
"20H (space)", or "00H (NULL)".
(Error code: K6706)
3) When the numeric range of to + 2 (5) is outside the following range. (Error code: K6706)
4) When the device specified by exceeds the device range. (Error code: K6706)
Program example
In the program example below, the sign and decimal ASCII codes in five digits stored in D20 to D22 are
converted into a binary value and stored in D0 when X000 turns ON.
Setting range
16-bit operation -32768 to 32767
32-bit operation -2,147,483,648 to 2,147,483,647
X000
DABINP
EN ENO
d
s
VAR_01
*1
D0
*1. VAR_01 is a global label and is defined as D20.
b15 b8 b7 b0
-276
D0
Binary value
36H(6) 37H(7)
20H(space)
32H(2)
2DH(-)
20H(space)
D22
(It is regarded
as "-00276".)
"-
276"
D21
D20
[Structured ladder]
[ST]
DABINP(X000, VAR_01, D0);

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals