EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 659

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
657
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
In the program example shown below, four characters are extracted from the third character from the left end
of the character string data stored in D10 and later, and then stored to D0 and later when X000 turns ON.
X000
MIDR
EN ENO
d
s1
s2
VAR_03
*3
VAR_01
*1
VAR_02
*2
*1. VAR_01 is a global label and is defined as D10.
*2. VAR_02 is a global label and is defined as R0.
*3. VAR_03 is a global label and is defined as D0.
[Structured ladder] [ST]
VAR_03:=MIDR(X000,VAR_01,VAR_02);
31H(1) 32H(2)
46H(E) 33H(3)31H(1) 32H(2)
46H(E) 33H(3)
D11
D12
D13
41H(A) 42H(B)
00H
45H(D)
"BA213ED"
D1
D2
0000H
"213E"
D10 D0
R1
4
3
R0
3rd character
Four characters
from 3rd character
Extracted characters
b15 b8 b7 b0 b15 b8 b7 b0

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals