Mitsubishi Electronics FX3GC User Manual
639
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
Series
Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.10 FNC209 – $MOV / Character String Transfer
26.10 FNC209 – $MOV / Character String Transfer
21
FNC160
-F
NC1
69
69
R
eal
T
T
ime C
lock
C
ontrol
22
FNC17
0-F
NC
179
179
E
xternal D
evice
23
FNC
180
Alternate
Instructions
24
FN
C181-
FNC18
9
O
thers
25
FNC190
-F
NC1
99
99
Bl
oc
k D
ata
ata
Op
er
er
ation
26
FNC20
0-F
NC209
C
har
ac
te
r S
trin
g
Con
tro
tro
l
27
FNC2
10-
FNC21
10-
FNC21
9
Dat
a
a
Operati
on 3
28
FNC220
-F
NC2
49
49
Da
ta
C
omp
ari
ari
son
29
FNC25
0-F
N
C
269
D
ata T
abl
e
e
Operation
30
FNC2
70-
FNC276
FNC276
Ex
-Dev
ice
Caution
When “00H” is stored in the low-order byte of
+n, “00H” is stored to both the high-order byte and low-order byte
of +n.
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in
D8067.
D8067.
• When “00H” does not exist in the range specified from device
(error code: K6706)
• When the specified character string cannot be stored in devices from the device specified by
to the last
device (error code: K6706)
Program example
In the program example shown below, character string data stored in D10 to D12 is transferred to D20 through D22.
b15
b8 b7
b0
D10
32H(2)
00H
D11
D12
D13
D14
34H(4)
36H(6)
31H(1)
33H(3)
35H(5)
b15
b8 b7
b0
D10
32H(2)
D11
D12
D13
D14
34H(4)
36H(6)
31H(1)
33H(3)
35H(5)
32H(2)
31H(1)
It is the same as the
character string
before transfer.
character string
before transfer.
0000H
...
S
D
FNC209
$MOV
S
D
Command
input
b15
b8 b7
b0
42H(B)
44H(D)
45H(E)
41H(A)
43H(C)
00H
The high-order byte is
not transferred.
b15
b8 b7
b0
42H(B)
44H(D)
00H
41H(A)
43H(C)
00H
“00H” is automatically
stored in the high-order
byte.
S
+1
S
+2
S
D
+2
D
+1
D
S
D
X000
FNC209
$MOV
D10
D20
END
b15
b8 b7
b0
D10
4DH(M)
D11
D12
45H(E)
2AH(*)
b15
b8 b7
b0
D20
D21
D22
45H(E)
4DH(M)
45H(E)
0000H
2AH(*)
45H(E)
00H