Mitsubishi Electronics FX3G Video Gaming Accessories User Manual


 
586
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
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 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 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
XYMTCSD
.b KnX KnY KnM KnS T C D R
U\G
V Z Modify K H E "
"P
333 3 3 3 3 3 3
3333 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 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
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