User`s manual
Local Logic Language Syntax
GFK-1742A Chapter 12 Local Logic Language Syntax 12-5
12
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.
PRAGMA Directive
The #pragma directive is used to configure the Local Logic parser. The directive is NOT required
for the parser to operate. However, if the user wishes to turn off warning messages the #pragma
directive allows this to occur. The #pragma directive MUST be the first line of the program.
Additionally, no white space should be present prior to the directive.
To turn ALL Local Logic warnings off, issue the following command:
#pragma errorsonly 1
or
#pragma errorsonly ON
To turn warning messages back ON either delete the directive or change the directive as follows:
#pragma errorsonly 0
or
#pragma errorsonly OFF
Local Logic Keywords and Operators
The following keywords and operators have special significance in the Local Logic programming
language. Keywords are case-sensitive and use only upper-case letters. These are discussed in
further detail in the following sections.
Table 12-2. Local Logic Keywords
ABS TRUE + >
BWAND FALSE - <
BWOR IF / >=
BWXOR THEN * <=
BWNOT END_IF 16# =
ON MOD 2# <>
OFF ; :=