EasyManua.ls Logo

Emerson DSM314 - Local Logic Syntax Errors; Local Logic Parse Errors

Emerson DSM314
519 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...
User Manual Chapter 12
GFK-1742F Jan 2020
Local Logic Language Syntax 302
12.8.2 Local Logic Syntax Errors
The build process enforces the local logic syntax. If the source program fails to meet this
criterion, the build process reports a syntax error. The error message identifies the error as
a syntax error. The syntactic element type found followed one or more of the syntactic
elements the parser was expecting is contained within the error message. It is common for
syntax errors to actually be reported on a line following the line with the actual error. Missing
semi-colons are a typical example.
Example:
scratch.llp (3): Error :syntax error
actual: IF expecting: ;
In this case, line 2 is actually missing the semicolon. Since the semi-colon may actually follow
on another line, the parser does not report the error until it sees a meaningful syntactic
element that isn’t a semi-colon.
Because of their nature, a single syntax error can cause “cascading errors.” Correcting one
syntax error may eliminate several syntax error messages. To avoid confusion, when
debugging Local Logic programs with syntax errors, correct the first error and rebuild the
program to refresh the list of errors before proceeding.
12.8.3 Local Logic Parse Errors
Parse errors occur when the program syntax is correct, but there is a semantic problem. For
example, it is invalid to assign a value to a double precision variable except as the result of a
multiplication operation.
Examples:
Error (P203) Invalid assignment to Double precision var: D00
In this case the error message is followed by a string that identifies the token that caused
the error. A list of Parse errors and typical causes follows:
Table 60: Local Logic Parse Errors
Error Number
Error Description
(P200)
Undefined identifier
The program contains an unrecognized variable or keyword. Check spelling and
command syntax.
(P201)
Parameter register must be in range of P000 - P255
This error is generated when the program specifies an undefined parameter
register, for example P278.
(P202)
CTL variable must be in range CTL01 - CTL32
This error is generated when the program specifies an undefined CTL variable,
for example CTL35.
(P203)
Invalid assignment to Double precision var

Table of Contents

Related product manuals