Mitsubishi Electric MELSEC-Q/L Programming Manual page 519

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

Advertisement

• For device comments used with the PRC instruction, use comment files stored in the standard ROM or
memory card. Comment files stored in the program memory cannot be used.
• The comment file used by the PRC instruction is set at the "PLC File Setting" option in the PLC parameter
dialog box. If no comment file has been set for use by the PLC file setting, it will not be possible to output
device comments with the PRC instruction.
• Do not execute the PRC instruction during an interrupt program. Otherwise, malfunction may occur.
• If a device which is not set a comment is specified, an error occurs. However, when the comment range for
the device is set in the "Device Comment Detail Setting" of the "Online Data Operation" window using a
programming tool, the error does not occur even if the comment is not set within the setting range.
Operation error
• 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
Error details
code
4100
The PRC instruction is executed while a comment is written during RUN.
A device which is not set a comment is specified and the PRC instruction is
executed.
Program example
• Program which outputs the comment of Y60 to Y30 to Y39 when X0 is turned ON.
[Ladder Mode]
Q00J/
QnH
QnPH
Q00/
Q01
[List Mode]
Step
Instruction
7 APPLICATION INSTRUCTIONS
QnPRH
QnU
LCPU
Device
7.9 Display Instructions
7
517

Advertisement

Table of Contents
loading

Table of Contents