Omron WS02-CXPC1-V9 - V9 Operation Manual page 211

Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cx-programmer 9Sysmac ws02-cxpc1-v9

Table of Contents