![Omron SYSMAC CX-Programmer 9 Operation Manual Download Page 210](http://html1.mh-extra.com/html/omron/sysmac-cx-programmer-9/sysmac-cx-programmer-9_operation-manual_744241210.webp)
184
Structured Text Errors
Appendix B
Invalid constant
A numeric equation with a
non-integer type operation
result, or a non-integer vari-
able or numeric value has
been specified in the integer
equation of a CASE state-
ment.
CASE A OF (*A is a REAL type variable*)
1: X:=1;
2: X:=2;
END_CASE;
Invalid expression
The numeric equation is ille-
gal. For example, the integer
equation or condition equation
is illegal or has not been spec-
ified in the syntax (IF, WHILE,
REPEAT, FOR, CASE).
WHILE DO (*The WHILE statement does not contain a
condition equation*)
X:=X+1;
END_WHILE;
Invalid parameter in FOR loop
declaration
A variable with data type other
than INT, DINT, LINT, UINT,
UDINT, or ULINT has been
used for variables in a FOR
statement.
FOR I:=1 TO 100 DO (*I is a WORD type variable*)
X:=X+1;
END_FOR;
Invalid statement
The statement is illegal. E.g.,
The statement (IF, WHILE,
REPEAT, FOR, CASE,
REPEAT) does not contain an
IF, WHILE, REPEAT, FOR,
CASE, or REPEAT in the syn-
tax, respectively.
X:=X+1; (*There is no REPEAT in the syntax*)
UNTIL X>10
END_REPEAT;
Invalid variable for Function
output
The specified variable for the
function output is illegal (A
non-boolean (BOOL) variable
or numeral has been specified
as the ENO transfer destina-
tion.)
Y:=SIN(X1, ENO=>1);
Missing (
The call for a data format con-
version instruction or function
does not contain a “(“ (open-
ing parenthesis).
Y:=INT_TO_DINT X);
Missing )
The operator parentheses or
the call for a data format con-
version instruction or function
does not contain a “)“ (closing
parenthesis) corresponding to
“(“ (opening parenthesis).
Y:=(X1+X2/2
Missing :
The integer equation in the
CASE statement is not fol-
lowed by a “:” (colon).
CASE A OF
1 X:=1;
END_CASE;
Missing :=
“:=” is not included in the
assignment equation.
Missing ;
The statement is not con-
cluded by a “;” (semicolon).
Missing DO
“DO” is not provided in the
FOR or WHILE statement.
Missing END_CASE
“END_CASE” is not provided
at the end of the CASE state-
ment.
Missing END_FOR
“END_FOR” is not provided at
the end of the FOR statement.
Missing END_IF
“END_IF” is not provided at
the end of the IF statement.
Missing END_REPEAT
“END_REPEAT” is not pro-
vided at the end of the
REPEAT statement.
Error Message
Cause of error
Example
Summary of Contents for SYSMAC CX-Programmer 9
Page 2: ......
Page 4: ...iv ...
Page 6: ...vi ...
Page 8: ......
Page 16: ...xvi ...
Page 20: ...xx ...
Page 26: ...xxvi Application Precautions 4 ...
Page 27: ...Part 1 Function Blocks ...
Page 28: ......
Page 154: ...128 Procedures Section 3 2 ...
Page 155: ...Part 2 Structured Text ST ...
Page 156: ......
Page 160: ...134 CX Programmer Specifications Section 4 2 ...
Page 206: ...180 Procedures Section 6 1 ...
Page 208: ...182 System defined external variables supported in function blocks Appendix A ...
Page 230: ...204 Revision History ...
Page 231: ......