EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 643

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
641
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
Program examples
1) In the program below, the character string data stored in D20 to D22 is regarded as an integer value,
converted into a binary value, and stored in D0 when X000 is set to ON.
2) In the program below, the character string data stored in D20 to D24 is regarded as an integer value,
converted into a binary value, and stored in D0 when X000 is set to ON.
X000
-1654
6
2
b15 b8 b7 b0
D20 31H(1)
2EH(.)
2DH(-)
36H(6)
34H(4) 35H(5)
D0
D11
Number of all digits
Number of digits of decimal part
"00H" is stored here.
00H
VALP
EN ENO
d1
d2
s
VAR_01
*1
VAR_02
*2
*1. VAR_01 is a global label and is defined as D20.
*2. VAR_02 is a global label and is defined as D10.
D0
[ Structured ladder] [ST]
VAR_02:=VALP(X000,VAR_01);
D0:=VALP(X000,VAR_01);
D21
D22
D23
D10
DVALP
EN ENO
d1
d2
s
VAR_03
*1
VAR_02
*2
*1. VAR_03 is a global label and is defined as D20.
*2. VAR_02 is a global label and is defined as D10.
VAR_04
*3
*3. VAR_04 is a global label and is defined as D0.
X000
[Structured ladder] [ST]
VAR_02:=DVALP(X000,VAR_03);
VAR_04:=DVALP(X000,VAR_03);
10
3
b15 b8 b7 b0
D20 37H(7)
31H(1)
20H(Space)
39H(9)
30H(0) 30H(0)
D0
D10 Number of all digits
Number of digits of decimal part
36H(6) 2EH(.)
31H(1) 31H(1)
79100611
D1 D0
"00H" is stored here.
00H
D11
D21
D22
D23
D24
D25

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals