
User Manual
Chapter 12
GFK-1742F
Jan 2020
Local Logic Language Syntax
290
12.1.5
Comments
Comments may be used to add information to the program that is ignored by the Local
Logic program execution engine. Two types of comments are supported.
The (* character pair introduce a normal comment, which terminates with the *) character
pair. These comments may appear anywhere whitespace can, for example within or
following a local logic statement, alone on a line, or spanning several lines. These comments
do not nest.
The // character pair introduces a single line comment. All text following the // to the end of
the line is ignored by the Local Logic execution engine.
Note:
You should be aware that one can enter a local logic program and inadvertently comment out the
code that one wants to execute. The common scenario that causes this to happen is as follows:
In the above code segment, the end comment structure, line shown in bold/italic for
illustrative purpose, is incorrect because the asterisk in the close comment structure is
absent. The error causes the following line to be considered a comment as well. Thus, the
statement Digital_Output_1:=0 is considered a comment and not executed. The color
scheme within the Local Logic editor can be very useful to help find these types of problems.
The coloring scheme by default will color the comments a different color than the
programming statements. Thus, the user will have a visual method to help find these errors.
Please consult chapter 2 for information on how to change the default color scheme for the
editor.