Справочник Пользователя для Mitsubishi Electronics QCPU

Скачать
Страница из 1204
7-201
COMRD(P)
1
2
3
4
6
6
7
8
7
.11 Char
acter
 string processing inst
ructions
7
.11.7 Reading device comment d
ata (COMRD
(P))
7.11.7  
Reading device comment data (COMRD(P))
COMRD(P)
Function
(1) Reads the comment at the device number designated by 
, and stores it as ASCII code 
in the area starting from the device number designated by 
.
For example, if the comment for the device designated by 
 were "NO. 1  LINE 
START," the operation results would be stored following 
 as follows:
: Head number of the devices where a comment to be read is stored (Device name)
: Head number of the devices where the read comment will be stored (character string)
Setting 
Data
Internal Devices 
R, ZR
J
\
U
\G
Zn
Constants
Other
BL\S,BL
\TR,BL,
P,I,J,U
Bit
Word
Bit
Word
––
––
––
––
––
Process
High
performance
Redundant Universal
Basic
Command
Command
COMRD
COMRDP
S
D
COMRD
COMRDP
S
D
S
D
S
D
S
D
+1
ASCII code for the 1st character
ASCII code for the 2nd character
ASCII code for the 3rd character
ASCII code for the 4th character
b15
b8b7
b0
+2
Stores up to 32 
characters
ASCII code for the 5th character
ASCII code for the 6th character
ASCII code for the 7th character
ASCII code for the 8th character
ASCII code for the 29th character
ASCII code for the 30th character
ASCII code for the 31st character
ASCII code for the 32nd character
00
H
Comment at device number designated by
+3
S
D
D
D
D
+15
D
S
D
+1
4E
H
 (N)
4F
H
 (O)
2E
H
 (.)
31
H
 (1)
b15
b8b7
b0
+2
20
H
(space)
20
H
(space)
Comment at
+3
+4
+5
+6
+7
NO.1    LINE    START
S
D
D
D
D
D
D
D
D
00
H
+15
D
20
H
(space)
20
H
(space)
4C
H
 (L)
4E
H
 (N)
49
H
 (I)
20
H
 (space)
45
H
 (E)
54
H
 (T)
53
H
 (S)
52
H
 (R)
41
H
 (A)
54
H
 (T)