Mitsubishi FX3U Series Programming Manual page 625

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Explanation of function and operation
1. 16-bit operation (MIDW and MIDWP)
"
+1" characters are extracted from the left end (that is, the head) of the character string data stored in
S
2
and later, and stored to the position specified by
S
1
and later.
D
Command
input
FNC207
MIDW
b15---------------b8b7-----------------b0
S
31H(1)
1
S
+1
33H(3)
1
S
+2
35H(5)
1
S
+3
37H(7)
1
00H
S
+4
1
6th character
Position from the left end in the
3
S
2
character string stored in
Number of characters from the left end
S
+1
6
2
in the character string stored in
and later
• The character string stored in
specified device until "00H" is first detected in units of byte.
• When the number of characters to be overwritten specified by
not executed.
• When the number of characters to be overwritten specified by
character string stored in
b15---------------b8b7-----------------b0
S
31H(1)
1
S
+1
33H(3)
1
35H(5)
S
+2
1
S
+3
37H(7)
1
S
+4
00H
1
8th character
Position from the left end in the
S
5
2
character string stored in
Number of characters from the left end
S
+1
8
2
in the character string stored in
and later
S
D
S
1
2
1st
30H(0)
character
32H(2)
34H(4)
36H(6)
38H(8)
"012345678"
and later
D
S
1
and later or
S
1
D
and later, data is stored up to the last character.
1st
30H(0)
character
32H(2)
34H(4)
36H(6)
38H(8)
"012345678"
and later
D
S
1
26 Character String Control – FNC200 to FNC209
26.8 FNC207 – MIDW / Random Replacement of Character Strings
and later of the character string data stored in
S
2
Before execution
b15---------------b8b7-----------------b0
D
42H(B)
D
+1
44H(D)
D
+2
46H(F)
D
+3
48H(H)
00H
D
+4
b15---------------b8b7-----------------b0
D
42H(B)
D
+1
31H(1)
D
+2
33H(3)
D
+3
35H(5)
D
+4
00H
Six characters starting from 3rd
character (overwritten character string)
and later indicates data stored in devices from the
D
+1 is "0", the overwriting processing is
S
2
+1 exceeds the last character of the
S
2
Before execution
b15---------------b8b7-----------------b0
D
42H(B)
D
+1
44H(D)
D
46H(F)
+2
D
+3
48H(H)
D
+4
00H
"ABCDEFGHI"
After execution
b15---------------b8b7-----------------b0
D
42H(B)
D
+1
44H(D)
D
31H(1)
+2
D
+3
33H(3)
D
+4
00H
"ABCD01234"
From the 5th character to the last character are
overwritten. Excessive characters "35H (5)" to
"37H (7)" are not stored.
1st
41H(A)
character
3rd
43H(C)
character
45H(E)
47H(G)
49H(I)
"ABCDEFGHI"
After execution
41H(A)
3rd
30H(0)
character
32H(2)
34H(4)
49H(I)
"AB012345I"
41H(A)
43H(C)
5th
45H(E)
character
47H(G)
49H(I)
41H(A)
43H(C)
5th
30H(0)
character
32H(2)
34H(4)
21
22
23
24
25
26
27
28
29
30
623

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents