EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 721

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
719
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
2. 32-bit operation (DDABIN/DDABINP)
1) Data expressed in decimal ASCII codes (30H to 39H) and stored in the device specified by is
converted into 32-bit binary data, and stored in the device specified by .
For example, when the device specified by stores ASCII codes expressing "-1,234,543,210", 32-bit
binary data is stored in the device specified by as follows:
2) The numeric range of data stored in the device specified by is from "-2,147,483,648" to
"2,147,483,647".
The high-order byte of + 5 is ignored.
3) As "sign data", "20H (space)" is set when the data to be converted is positive, and "2DH (-)" is set when
the data to be converted is negative.
4) An ASCII code for each digit is within the range from 30H to 39H.
5) When an ASCII code for each digit is "20H (space)" or "00H (NULL)", it is handled as "30H".
Related instructions
Cautions
1) When handling array data or 32-bit data in a structured program, a 16-bit device cannot be specified
directly as in the case of a simple project. Use a label to handle array data or 32-bit data.
A 32-bit counter can be specified directly as it is a 32-bit long device.
Use a global label to specify a device
2) The FX
3UC PLC of V 2.20 or later supports the DABIN instruction.
Instruction Description
ASCI Converts hexadecimal codes into ASCII codes.
HEX Converts ASCII codes into hexadecimal codes.
STR Converts binary data into a character string (ASCII codes).
VAL Converts a character string (ASCII codes) into binary data.
BINDA Converts binary data into decimal ASCII codes (30H to 39H).
*1. This defines the head device that stores data (ASCII codes) to be converted into binary data.
*2. This defines the device storing conversion result.
DDABIN_P
EN ENO
d
s
Command
input
Label 2
*1
Label 3
*2
+0
b15
+2
b8 b7 b0
+1
High-order 16 bits
b16b31
32-bit data
+3
+5
+4
Low-order 16 bits
b0b15
+1
ASCII code for 100,000's digit
ASCII code for 1,000,000's digit
ASCII code for 1,000,000,000's digit
ASCII code for 10,000,000's digit
Sign data
ASCII code for 100,000,000's digit
(Ignored) ASCII code for 1's digit
ASCII code for 1000's digit
ASCII code for 10's digit
ASCII code for 10000's digit
ASCII code for 100's digit
d d
s
+0
b15
+2
b8 b7 b0
+1
+3
+5
+4
35H(5) 34H(4)
31H(1)
33H(3)
2DH(-)
32H(2)
(Ignored) 30H(0)
33H(3)
31H(1)
34H(4)
32H(2)
+1
-1234543210
d d
s

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals