![background image](http://html1.mh-extra.com/html/omron/sysmac-cx-programmer-9/sysmac-cx-programmer-9_operation-manual_744241211.webp)
185
Structured Text Errors
Appendix B
Missing END_WHILE
“END_WHILE” is not pro-
vided at the end of the WHILE
statement.
Missing Input Parameter. All
input variables must be set.
The function argument is not
specified or is insufficient.
Y:=EXPT(X);
Missing OF
“OF” is not included in CASE
statement.
Missing THEN
“THEN” is not included in IF
statement.
Missing TO
“TO” is not included in FOR
statement.
Missing UNTIL
“UNTIL” is not included in
REPEAT statement.
Missing [
The array index for the array
variable has not been speci-
fied.
X:=Array; (*
Array
is an array variable*)
Missing ]
The array index for the array
variable has not been speci-
fied.
X:=Array[2; (*
Array
is an array variable*)
Missing constant
A constant is not provided in
the integer equation of the
CASE statement.
CASE A OF
2..: X:=1;
2,: X:=2;
END_CASE;
NOT operation not supported
on a literal number
The NOT operator was used
for a numeric value.
Result:=NOT 1;
Negation not supported by %s
data type
A minus symbol was used
before a variable with a data
type that does not support
negative values (UINT,
UDINT, ULINT).
Y:=-X; (*X is an UINT type variable, Y is an INT type vari-
able*)
There must be one line of
valid code (excluding com-
ments)
There is no line of valid code
(excluding comments).
Too many variables specified
for Function
Too many parameter settings
are specified for the function.
Y:=SIN(X1,X2);
Undefined identifier '%s'
A variable that is not defined
in the variable table has been
used.
Unexpected syntax '%s'
A keyword (reserved word) or
variable has been used ille-
gally.
FOR I:=1 TO 100 DO BY -1 (*The DO position is illegal*)
X:=X+1;
END_FOR;
Usage mismatch in Function
variable
The function parameter has
been used illegally.
Y:=SIN(X1,EN=>BOOL1); (*The input parameter EN has
been used as an output parameter*)
Value out of range
A value outside the range for
the variable data type has
been substituted in the vari-
able.
X:=32768; (*X is an INT type variable*)
Variable '%s' is not a Function
parameter
A variable that cannot be
specified in the function
parameter has been specified
in the parameter.
Y:=SIN(Z:=X); (*X and Y are REAL type variables, and Z
is not a SIN function parameter *)
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: ......