Reading Device Comment Data - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Reading device comment data

COMRD(P)
Basic
High
Process
performance
COMRD
COMRDP
(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
Internal device
data
Bit
(S)
(D)
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).
Comment at device number designated by
For example, if the comment for the device specified by (S) is "
in (D) and later devices as follows:
Comment at
S
NO.1
LINE
7 APPLICATION INSTRUCTIONS
546
7.11 Character String Processing Instructions
Redundant Universal
LCPU
Command
Command
R, ZR
Word
D
D
+1
S
D
+2
D
+3
D
D
D
D
START
D
D
D
D
D
D
J\
Bit
Word
b15
b8b7
ASCII code for the 2nd character
ASCII code for the 1st character
ASCII code for the 4th character
ASCII code for the 3rd character
ASCII code for the 6th character
ASCII code for the 5th character
ASCII code for the 8th character
ASCII code for the 7th character
ASCII code for the 30th character
ASCII code for the 29th character
+15
ASCII code for the 32nd character
ASCII code for the 31st character
00
H
NO.1
LINE
b15
b8b7
4F
(O)
H
+1
31
(1)
H
4C
(L)
+2
20
H
+3
4E
(N)
H
20
(space)
+4
H
54
(T)
+5
H
52
(R)
+6
H
+7
20
(space)
H
+15
20
(space)
20
H
00
H
COMRD
S
COMRDP
S
U\G
Zn
b0
Stores up to 32
characters
START
", the operation results would be stored
b0
4E
(N)
H
2E
(.)
H
(space)
H
49
(I)
H
45
(E)
H
53
(S)
H
41
(A)
H
54
(T)
H
(space)
H
D
D
Constant
Others
BL\S, BL,
BL\TR, P, I,
J, U

Advertisement

Table of Contents
loading

Table of Contents