587
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.1 FNC182 – COMRD / Read Device Comment Data
21
FNC160-FNC169
Real Time Clock
Control
22
FNC170-FNC179
External Device
23
FNC180
Alternate
Instructions
24
FNC181-FNC189
Others
25
FNC190-FNC199
Block Data
Operation
26
FNC200-FNC209
Character String
Control
27
FNC210-FNC219
Data
Operation 3
28
FNC220-FNC249
Data
Comparison
29
FNC250-FNC269
Data Table
Operation
30
FNC270-FNC274
Ex-Device
Inverter Comms
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