Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G ユーザーズマニュアル

ページ / 936
587
FX
3G
/FX
3U
/FX
3UC
 Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.1 FNC182 – COMRD / Read Device Comment Data
21
FN
C
160
-F
N
C
16
9
R
eal
 T
im
e C
lock
 
C
ont
ro
l
22
FN
C
170-
FN
C
179
E
xte
rnal D
evice
23
FN
C
180
A
lter
nate 
In
st
ru
ct
ions
24
FN
C
181-
FN
C
18
9
O
ther
s
25
FN
C
190-
FN
C
199
B
lock D
ata
 
O
per
ation
26
FN
C2
00
-F
NC
20
9
C
ha
racter
 S
tring 
Co
ntro
l
27
FN
C
210-
FN
C
21
9
Da
ta
 
O
per
ati
on 3
28
FN
C
220-
FN
C
249
Da
ta
 
C
om
par
ison
29
FN
C
25
0-F
N
C
269
D
ata T
abl
O
per
at
ion
30
FN
C
270-
FN
C
274
Ex-
D
ev
ice 
Inv
ert
er
 Com
m
s
2) The final device of 
 is as follows depending on the ON/OFF status of M8091.
Related device
Caution
• Specify a device number in device 
 for which a comment is registered in the PLC.
If a comment is not registered for the device 
, "20H" (space) is stored in 
 and later for the number of 
characters in the comment (16 half-width characters). 
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 a comment is not registered for the device 
 (error code: K6706)
• When the range of points used from 
 for the comment exceeds the corresponding device range 
(error code: K6706)
Program example
In the program shown below, the comment "Target Line A" registered to D100 is stored in ASCII code in D0 and later
when X010 is set to ON. And since M8091 is OFF "0000H" is written to the device following the last character.
ON/OFF status
Contents of processing
M8091 = OFF
When M8091 is OFF, "0000H" is written to in the device following the final character.
M8091 = ON
When M8091 is ON, the device following the final character does not change.
Device
Name
Description
M8091
Output character number selector signal
Refer to the above explanation.
   
D
   
S
   
S
   
D
   
S
   
D
X010
FNC182
COMRDP
D100
D0
RST
M8091
END
D0
D1
D2
b15
b8 b7
b0
D3
Comment of D100
Target Line A
D4
D5
D6
74H(f)
61H(a)
67H(g)
54H(T)
72H(r)
65H(e)
4CH(L)
20H(space)
20H(space)
6EH(n)
20H(space)
69H(i)
65H(e)
41H(A)
D7
D8
20H(space)
20H(space)
0000H