11 - 360 11 - 360
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
REM
Instruction
REMark
• Provides comments (remarks) in a program.
REM [<comment>]
Syntax
Comment
• • • •
Write the appropriate comment.
Examples
REM**AD51H** or
‘**AD51H**
• • • •
Indicates that the program is related to the AD51H.
Description
• The REM instruction is used to provide comments in a program. It does not affect the
execution of a program. The content entered is displayed as it is in the program list.
• It is possible to branch to a REM instruction from a GOTO or GOSUB instruction, but in this
case the execution is simply started from the first executable instruction after the REM
instruction.
• An apostrophe (‘) can also be used in place of REM.
A comment starting with an apostrophe (‘) can be written in the same line as other
instructions.
However, it is not allowed to write other instructions after the comment in a successive
manner. All text and symbols from an apostrophe (’) to the end of line is regarded as a
comment.
REMARK
See Section 2.5.