623
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.8 FNC207 – MIDW / Random Replacement of Character Strings
21
FN
C
160-FN
C
169
R
eal
Ti
m
e
C
loc
k
C
ont
ro
l
22
FN
C
170
-F
N
C
17
9
E
xt
e
rnal
D
evi
ce
23
FN
C
180
Su
b
st.
I
n
str
. I
n
fo
24
FN
C
181-FN
C
189
O
ther
s
25
FN
C
190-FN
C
19
9
B
loc
k D
a
ta
O
per
at
io
n
26
FN
C
200-FN
C
209
C
har
act
e
r St
ring
C
ont
ro
l
27
F
N
C2
10
-F
NC
21
9
Da
ta
O
per
at
ion 3
28
FN
C
220-FN
C
24
9
Da
ta
Co
m
p
a
ris
o
n
29
FN
C
250-FN
C
269
Da
ta
T
a
b
le
O
per
at
io
n
30
FN
C
27
0-F
N
C
274
Ex
-D
ev
ic
e
In
ve
rte
r C
o
mm
s
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
and later, and stored to the position specified by
and later of the character string data stored in
and later.
• The character string stored in
and later or
and later indicates data stored in devices from the
specified device until “00H” is first detected in units of byte.
• When the number of characters to be overwritten specified by
+1 is “0”, the overwriting processing is
not executed.
• When the number of characters to be overwritten specified by
+1 exceeds the last character of the
character string stored in
and later, data is stored up to the last character.
S
2
S
1
S
2
D
48H(H)
47H(G)
35H(5)
34H(4)
31H(1)
30H(0)
32H(2)
31H(1)
30H(0)
33H(3)
32H(2)
35H(5)
34H(4)
FNC207
MIDW
S
1
D
S
2
+1
+2
+4
+3
b15---------------b8b7-----------------b0
“012345678”
D
D
+1
+2
b15---------------b8b7-----------------b0
D
S
1
S
1
S
1
S
1
S
1
37H(7)
36H(6)
00H
38H(8)
42H(B)
41H(A)
44H(D)
43H(C)
46H(F)
45H(E)
“ABCDEFGHI”
+1
S
2
S
2
6
3
Position from the left end in the
character string stored in and later
Number of characters from the left end
in the character string stored in
and later
D
+3
+4
D
00H
49H(I)
Before execution
D
D
+1
+2
b15---------------b8b7-----------------b0
D
42H(B)
41H(A)
33H(3)
“AB012345I”
D
+3
+4
D
00H
49H(I)
After execution
6th character
3rd
character
Six characters starting from 3rd
character (overwritten character string)
3rd
character
1st
character
Command
input
D
S
1
1st
character
S
1
D
S
2
S
2
D
D
34H(4)
33H(3)
46H(F)
45H(E)
48H(H)
47H(G)
49H(I)
31H(1)
30H(0)
32H(2)
31H(1)
30H(0)
33H(3)
32H(2)
37H(7)
35H(5)
34H(4)
36H(6)
+1
+2
+4
+3
b15---------------b8b7-----------------b0
“012345678”
+1
+2
b15---------------b8b7-----------------b0
00H
38H(8)
42H(B)
41H(A)
44H(D)
43H(C)
“ABCDEFGHI”
+1
8
5
+3
+4
00H
+1
+2
b15---------------b8b7-----------------b0
42H(B)
41H(A)
44H(D)
43H(C)
“ABCD01234”
+3
+4
00H
From the 5th character to the last character are
overwritten. Excessive characters “35H (5)” to
“37H (7)” are not stored.
1st
character
5th
character
5th
character
8th character
Position from the left end in the
character string stored in and later
Number of characters from the left end
in the character string stored in
and later
Before execution
After execution
S
1
S
1
S
1
S
1
S
1
S
2
S
2
D
D
D
D
D
D
D
D
D
D
S
1