Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
24 Applied Instructions (Others)
24.1 COMRD / Read Device Comment Data
585
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
21
Applied Instructions
(Real Time
Clock Control)
22
Applied Instructions
(External Device)
23
Applied Instructions
(Extension
Function)
24
Applied Instructions
(Others)
25
Applied Instructions
(Block Data
Operation)
26
Applied Instructions
(Character
String Control)
27
Applied Instructions
(Data Operation 3)
28
Applied Instructions
(Data Comparison)
29
Applied Instructions
(Data Table
Operation)
30
Applied Instructions
(External Device
Communication)
Function and operation explanation
1. 16-bit operation (COMRD/COMRDP)
1) The comment registered for the device specified by is read, and stored in ASCII code in the device
specified by .
For example, when the comment of the device specified by is "Line No.1 Start", it is stored in the
device specified by as shown below.
2) The last data of the device specified by is as follows depending on the ON/OFF status of M8091.
Related devices
ON/OFF status Contents of processing
M8091=OFF
When the comment is made up of an odd number of characters, "00H" is written to the high order one byte
(8 bits) of the device storing the last character of the comment.
When the comment is made up of an even number of characters, "00H" is written to the device that follows
the device storing the last character of the comment.
M8091=ON
When the comment is made up of an odd number of characters, the high order one byte (8 bits) of the
device storing the last character of the comment does not change.
When the comment is made up of an even number of characters, the device that follows the device storing
the last character of the comment does not change.
Device Name Description
M8091
Output character number
selector signal
Refer to the above explanation.
+0
+1
+2
When the comment is made up of an even number of characters:
When M8091 is OFF, "0000H" is stored to the device following the last character.
When M8091 is ON, the device following the last character does not change.
b15 b8 b7 b0
+3
+7
+8
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.
Head device storing read comment
COMRDP
EN ENO
d
s
Device for which comment
to be read is registered
Command
input
d
s
+0
+1
+2
When the comment is made up of an odd number of characters:
When M8091 is OFF, "00H" is written to the high order byte of the device that stores the last character.
When M8091 is ON, the high order byte of the device that stores the last 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)
20H(space)
0000H
20H(space)
74H(t)
72H(r)
53H(S)
61H(a)
74H(t)
s
d
)
+7
+8