568
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
24.1
FNC182 – COMRD / Read Device Comment Data
Outline
This instruction reads the comment data for devices registered (written) by programming software such as
GX Developer.
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 in the device
is read, and stored in ASCII codes in
and later.
Operand Type
Description
Data Type
Device number in 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
3 3 3
3
3 3 3 3
3
3 3 3 3
3
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
S
D
S
D
+0
+1
+2
When the number of characters in the comment is even
· When M8091 is OFF, "00H" is stored in the next device of the device storing the final character.
· When M8091 is ON, the next device of the device storing 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
00H
...
Comment of device specified in
Up to 16
characters
can be
stored.