Справочник Пользователя для Mitsubishi Electronics MELSEC -Q/L

Скачать
Страница из 1086
546
7  APPLICATION INSTRUCTIONS
7.11  Character String Processing Instructions
Reading device comment data
COMRD(P)
Processing details
 • Reads the comment at the device number designated by (S), and stores it as ASCII code in the area starting from the 
device number designated by (D).
For example, if the comment for the device designated by (S) were "
", the operation results would be 
stored following (D) as follows:
(S):   Head number of the devices where a comment to be read is stored (Device name)
(D):   Head number of the devices where the read comment will be stored (character string)
Setting 
data
Internal device
R, ZR
J\
U\G
Zn
Constant
Others
BL\S, BL, 
BL\TR, P, I, 
J, U
Bit
Word
Bit
Word
(S)
(D)
Process
High
performance
Redundant Universal
LCPU
Basic
Command
Command
COMRD
COMRDP
S
D
COMRD
COMRDP
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
NO.1
START
LINE
+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)