![background image](http://html1.mh-extra.com/html/omron/cs1-h-series/cs1-h-series_operation-manual_742526174.webp)
159
Structured Text (ST Language) Specifications
Appendix B
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
Содержание CS1-H Series
Страница 3: ...iv...
Страница 5: ...vi...
Страница 7: ...viii TABLE OF CONTENTS...
Страница 15: ...xvi Application Precautions 4...
Страница 151: ...136 Procedures Section 3 2...
Страница 153: ...138 Data Types Appendix A...
Страница 177: ...162 External Variables Appendix C...
Страница 181: ...166 Revision History...