Mitsubishi Electronics FX3G User Manual

Page of 964
623
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.3 FNC202 – $+ / Link Character Strings
21
FNC160
-F
NC1
69
R
eal
 T
ime C
lock
 
C
ontrol
22
FNC17
0-F
NC
179
E
xternal D
evice
23
FNC
180
Alternate 
Instructions
24
FN
C181-
FNC18
9
O
thers
25
FNC190
-F
NC1
99
Bl
oc
k D
ata
 
Op
er
ation
26
FNC20
0-F
NC209
C
har
ac
te
r S
trin
Con
tro
l
27
FNC2
10-
FNC21
9
Dat
Operati
on 3
28
FNC220
-F
NC2
49
Da
ta 
C
omp
ari
son
29
FNC25
0-F
N
C
269
D
ata T
abl
Operation
30
FNC2
70-
FNC276
Ex
-Dev
ice
Cautions
• When directly specifying a character string, up to 32 characters can be specified (input).
However, this limitation in the number of characters is not applied when a word device is specified in 
 or 
.
• When the values in both 
 and 
 start from "00H" (that is, when the number of characters is “0”), "0000H" 
is stored in 
.
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in
D8067.
• When the number of devices after a device number specified by 
is smaller than the number of devices 
required to store all linked character strings (that is, when “00H” cannot be stored after all character strings and the 
last character) (error code: K6706)
• When the same device is specified in 
 and 
 as a device for storing a character string (error 
code: K6706)
• When “00H” is not set within the corresponding device range after the device specified by 
 or 
 (error 
code: K6706)
Program example
In the program example shown below, a character string stored in D10 to D12 (abcde) is linked to the character string
“ABCD”, and the result is stored to D100 and later when X000 turns ON.
  
S
1
  
S
2
  
S
1
  
S
2
   
D
   
D
  
S
1
  
S
2
   
D
  
S
1
  
S
2
X000
“ABCD”
D100
FNC202
$+
END
D10
b15---b8
D11
D12
62H(b) 61H(a)
64H(d) 63H(c)
00H
+
b15---b8
D101
D102
41H(A)
43H(C) 42H(B)
00H
44H(D)
D103
D104
D10
65H(e)
“ABCD”
62H(b) 61H(a)
64H(d) 63H(c)
65H(e)
D100
“00H” is automatically stored.
b7----b0
b7----b0