Mitsubishi Electronics FX3G User Manual

Page of 964
587
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.1 FNC182 – COMRD / Read Device Comment Data
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
24.1
FNC182 – COMRD / Read Device Comment Data
Outline
This instruction reads the comment data for registered devices written to the PLC by programming software such as
GX Works2.
1. Instruction format
2. Set data
3. Applicable devices
Explanation of function and operation
1. 16-bit operation (COMRD and COMRDP)
1) The comment registered for device 
 is read, and stored in ASCII code in 
 and later.
For example, when the comment of 
 is "LineNo.1Start", it is stored in 
 and later as shown below.
Operand Type
Description
Data Type
Device number for which comment to be read is registered
Device name
Head device number storing read comment
Character string
Oper-
and 
Type
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special 
Unit
Index
Con-
stant
Real 
Number
Charac-
ter String
Pointer
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
V Z Modify K H
E
" "
P
P
FNC 182
COMRD

Mnemonic
Operation Condition
16-bit Instruction
5 steps COMRD
COMRDP
Mnemonic
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction
  S
  D
  S
  D
   
S
   
D
Command
input
FNC182
COMRDP
+0
+1
+2
- When M8091 is OFF, "0000H" is written to the device following the final character.
- When M8091 is ON, the device following the final character does not change.
b15
b8 b7
b0
.......+3
ASCII code of 6th character
ASCII code of 2nd character
ASCII code of 4th character
ASCII code of 1st character
ASCII code of 3rd character
ASCII code of 5th character
ASCII code of 8th character ASCII code of 7th character
ASCII code of 16th character
ASCII code of 14th character ASCII code of 13th character
ASCII code of 15th character
0000H
...
Comment of device specified in
16
characters
can be
stored.
+7
+8
   
S
   
D
+0
+1
+2
- When M8091 is OFF, "0000H" is written to the next device following the final character.
- When M8091 is ON, the device following the final character does not change.
b15
b8 b7
b0
+3
Comment of
LineNo.1Start
+4
+5
+6
6FH(o)
69H(i)
65H(e)
4CH(L)
6EH(n)
4EH(N)
31H(1)
2EH(.)
20H(space)
74H(t)
72H(r)
53H(S)
61H(a)
74H(t)
20H(space)
20H(space)
+7
+8
0000H