Mitsubishi MELSEC-Q/L Programming Manual page 464

Table of Contents

Advertisement

COMRD, COMRDP
For example, if the comment for the device designated by
would be stored following
S
Comment at
NO.1
LINE
START
(2) If no comment has been registered for the device specified by
made, all of the characters for the comment are processed as "20
(3) The device number plus 1 where the final character of
(number of characters to output select signal).
When SM701 is OFF.....Does not change
When SM701 is ON......Stores "0"
(4) When a comment is read, SM720 turns ON for one scan after the instruction is completed.
SM721 turns ON during the execution of the instruction.
While SM721 is ON, the COMRD(P) instruction cannot be executed. If the attempt is made, no processing is performed.
1. For device comments used with the COMRD(P) instruction, use comment files stored in the standard ROM or memory
card.
Comment files stored in the program memory cannot be used.
2. Set the comment file used for the COMRD(P) instruction in "PLC file setting" in the PLC parameter dialog box. If the
comment file to be used is not set in the PLC file setting, device comments cannot be output with the COMRD(P)
instruction.
When a comment file is set in the "PLC File" tab of the PLC Parameter dialog box, but the file does not exist at power-on
or reset, "FILESET ERROR" (error code: 2400) will occur.
3. The COMRD(P) instruction cannot be executed during the interrupt program.
No operation if executed.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Error
code
4100
The comment is not registered to the device number specified by
The device number specified by
4101
The range of the device specified by
corresponding device.
462
as follows:
D
b15
D
4F
D
+1
D
+2
D
+3
4E
D
20
+4
54
D
+5
D
+6
D
+7
20
D
+15
20
Error details
is not a word device.
D
exceeds the range of the
D
were "NO. 1
LINE
S
b8b7
b0
(O)
4E
(N)
H
H
31
(1)
2E
(.)
H
H
4C
(L)
20
(space)
H
H
49
(I)
(N)
H
H
(space)
45
(E)
H
H
(T)
53
(S)
H
H
52
(R)
41
(A)
H
H
54
(T)
(space)
H
H
(space)
20
(space)
H
H
00
H
despite the fact that the comment range setting is
S
" (space).
H
is stored differs depending on the ON/OFF status of SM701
D
Q00J/
Q00/
QnH
Q01
––
.
S
––
––
––
START," the operation results
QnPH QnPRH
QnU
LCPU
––
––

Advertisement

Table of Contents
loading

Table of Contents