Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G User Manual
639
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.10 FNC209 – $MOV / Character String Transfer
21
FN
C
160
-F
-F
N
C
16
9
R
eal
T
T
im
e C
lock
C
ont
ro
ro
l
22
FN
C
170-
FN
FN
C
179
E
xte
rnal D
evice
23
FN
C
C
180
A
lter
nate
In
st
ru
ct
ions
24
FN
C
181-
FN
FN
C
18
9
O
ther
s
s
25
FN
C
190-
FN
FN
C
199
B
lock D
ata
O
per
ation
ation
26
FN
C2
00
-F
NC
20
20
9
C
ha
racter
S
tring
Co
ntro
ntro
l
27
FN
C
210-
FN
FN
C
21
9
Da
ta
O
per
ati
ati
on 3
28
FN
C
220-
FN
FN
C
249
Da
ta
C
om
par
ison
29
FN
C
25
0-F
N
C
269
D
ata T
abl
e
abl
e
O
per
at
at
ion
30
FN
C
270-
FN
FN
C
274
Ex-
D
D
ev
ice
Inv
ert
ert
er
Com
m
s
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 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