EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 663

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
661
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 character string data stored in
D0 and later, and stored to the third character (from the left end) and later for the character string data stored
in D100 and later when X010 turns ON.
59H(Y) 43H(C)
31H(1) 5AH(Z)
31H(1) 32H(2)
45H(E) 46H(F)
31H(1) 32H(2)
45H(E) 46H(F)
X010
D1
D2
D3
"21FE03"
D100
D101
33H(3) 30H(0)
53H(S) 55H(U)
"USCYZ10B"
R1
4
3
D102
D103
42H(B) 30H(0)
0000H
Before execution
53H(S) 55H(U)
"US21FE0B"
0000H
After execution
42H(B) 30H(0)
D0
R0
D104
1st
character
1st
character
4th character
3rd
character
3rd
character
The 1st to 4th characters are stored (overwritten).
00H
MIDW
EN ENO
d
s1
s2
VAR_01
*1
VAR_02
*2
VAR_03
*3
[Structured ladder]
[ST]
VAR_03:=MIDW(X010,VAR_01,VAR_02);
D100
D101
D102
D103
D104
b15 b8 b7 b0
b15 b8 b7 b0
b15 b8 b7 b0
*1. VAR_01 is a global label and is defined as D0.
*2. VAR_02 is a global label and is defined as R0.
*3. VAR_03 is a global label and is defined as D100.

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals