User`s manual

12-20 Motion Mate DSM314 for Series 90-30 PLCs User's Manual
January 2001 GFK-1742A
12
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 which identifies the token that caused the
error. A list of Parse errors and typical causes follows:
Table 12-7. 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
The program has attempted an invalid usage of one of the double precision registers.
Double precision registers may only be assigned values as the result of a multiply operation.
(P204) Invalid use of Double precision var
The program has attempted an invalid usage of one of the double precision registers.
Double precision registers in expressions may only be used as the divisor in a divide or
MOD operation.
(P205) Assignment to read-only variable
The program has attempted to assign a value to a read-only variable.
(P206) Attempt to read write-only variable
The program has attempted to use a write-only variable as one of operands in an arithmetic,
logic, or relational expression.
(P207) Subscripted variables are not supported
Variables of the form Data_Table_Int[xx] are not supported. Data table operations require
the use of the Data_Table_Ptr variable.
(P208) Identifier name exceeds 50 chars
The program has used attempted to reference a variable with an identifier length in excess of
50 characters.
(P209) Double Precision register must be in range D00 - D07
This error is generated when the program specifies an undefined double precision register,
for example D08.
(P220) Hexadecimal constants must be in range of 16#0 - 16#FFFFFFFF
The program has defined a hexadecimal constant that cannot be represented in 32 bits