EasyManua.ls Logo

Panasonic GM1 - Commenting out Code in ST Program

Panasonic GM1
650 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Item Example
iVar0 : = 0;
Label1 : iV
ar0 : = iVar0 + 1;
IF (iVar1 = 5) THEN
JMP Label1;
END_IF;
CONTINUE
instruction
The CONTINUE instruction is used to move control to the beginning of the loop within the
FOR, WHILE, or REPEA
T instruction.
Entered keywords are converted to uppercase letters automatically (AutoFormat). To disable
this function, clear the "Convert keywords to uppercase automatically (AutoFormat)
" check box
in the Options window.
7.2.2 Commenting out Code in ST Program
In ST programs, code can be commented out. Program code that is commented out cannot be
executed.
Comment type Description
Single line
Program code from // to the end of the line is treated as a comment.
Example:
bV
ar1 := 2; // Single-line comment
Multiple lines
Program code from (* to *) is treated as a comment. (* *) can also be inserted into
another comment enclosed between (* and *).
Example:
(*
Multiple-line comment 1
Multiple-line comment 2
*)
7.2 Programming in Structured Text (ST)
WUME-GM1RTXOP-01 7-17

Table of Contents

Related product manuals