Mitsubishi Electric MELSEC FX3U Programming Manual page 671

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Program example
In the program example shown below, 4 characters are extracted from the character string data stored in D0
and later, and stored to the 3rd character (from the left end) and later for the character string data stored in
D100 and later when X010 turns ON.
X010
4th
character
b15---------------b8b7-----------------b0
D0
31H(1)
D1
45H(E)
D2
33H(3)
D3
3
R0
R1
4
FNC207
D0
D100
MIDWP
1st
32H(2)
character
46H(F)
30H(0)
00H
"21FE03"
26 Character String Control – FNC200 to FNC209
26.8 FNC207 – MIDW / Random Replacement of Character Strings
R0
END
Before execution
b15---------------b8b7-----------------b0
D100
53H(S)
D101
59H(Y)
D102
31H(1)
D103
42H(B)
D104
0000H
"USCYZ10B"
After execution
b15---------------b8b7-----------------b0
D100
53H(S)
D101
31H(1)
D102
45H(E)
D103
42H(B)
D104
0000H
"US21FE0B"
The 1st to 4th characters are stored.
1st
55H(U)
character
3rd
43H(C)
character
5AH(Z)
30H(0)
55H(U)
3rd
32H(2)
character
46H(F)
30H(0)
669
21
22
23
24
25
26
27
28
29
30

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents