Comments - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Comments

The following table lists the comments that can be used in ST programs.
Type
Single-line comment
Multiple-line comment
Do not write a comment containing an end symbol in a multiple-line comment.
6 STRUCTURED TEXT LANGUAGE
74
6.1 Configuration
Symbol
Description
//
The portion from the start symbol "//" to the end of the line is regarded
as a comment.
(**)
The portion from the start symbol "(*" to the end symbol "*)" is regarded
as a comment.
A line feed can be inserted in a comment.
/**/
The portion from the start symbol "/*" to the end symbol "*/" is regarded
as a comment.
A line feed can be inserted in a comment.
Example
//comment
■No line feed
(*comment*)
■With a line feed
(*line-1 comment
line-2 comment*)
■No line feed
/*comment*/
■With a line feed
/*line-1 comment
line-2 comment*/

Advertisement

Table of Contents
loading

Table of Contents