![Omron CX-PROGRAMMER V8.1 Скачать руководство пользователя страница 208](http://html1.mh-extra.com/html/omron/cx-programmer-v8-1/cx-programmer-v8-1_operation-manual_744203208.webp)
183
Appendix B
Structured Text Errors
Error Messages
Error Message
Cause of error
Example
%s' Input variables cannot be
assigned a value
A value was substituted for an
input variable.
%s' operator not supported by
%s data type
A numerical value or variable
for a data type that is not sup-
ported by the operator was
used.
A:=B+1; (*A and B are WORD type variables*))
%s' variable had a read only
memory AT Address and can-
not be assigned a value
A value was substituted for a
variable allocated to a read-
only memory address (read-
only Auxiliary Area address or
Condition Flag).
Array index out of range
An array index larger than the
array size was specified.
Array[100]:=10; (*
Array
is an array variable with an array
size of 100*)
Conversion cannot convert
from %s to %s
A numeric equation in which
the data type of the operation
result does not match the vari-
able at the substitution desti-
nation and a variable that is
different from the data type
was substituted.
Y:=ABS(X); (*X is an INT type variable, Y is a UINT type
variable*)
Division by Zero
The numeric expression con-
tains division by 0.
End of comment not found
The comment does not have a
closing parenthesis and aster-
isk “*)” corresponding to the
opening parenthesis and
asterisk “(*” of the comment.
(*
comment
Invalid Literal Format '%s'
The numeric format is illegal.
X:=123_; (*There is no numeral after underscore*)
X:=1__23; (*The underscore is followed immediately by
another underscore*)
X:=2#301; Y:=8#90; (*A numeral that cannot be used with
binary or octal values has been used*)
Note
The underscore can be inserted between numerals
to make them easier to read. Placing 2#, 8#, and
16# at the beginning of the numeral expresses the
numerals as binary, octal, and hexadecimal values,
respectively.
Invalid Literal Value
The numeric value is illegal.
X:=1e2; (*an index was used for a numeric value that was
not a REAL data type*)
Note
“e” indicates an exponent of 10.
Invalid array index
A numeric equation with a
non-integer type operation
result or a non-integer vari-
able has been specified in the
array index.
Array[Index]:=10; (*
Index
is a WORD type variable*)
Содержание CX-PROGRAMMER V8.1
Страница 3: ...iv...
Страница 5: ...vi...
Страница 7: ......
Страница 15: ...xvi...
Страница 19: ...xx...
Страница 25: ...xxvi Application Precautions 4...
Страница 26: ...Part 1 Function Blocks...
Страница 27: ......
Страница 153: ...128 Procedures Section 3 2...
Страница 154: ...Part 2 Structured Text ST...
Страница 155: ......
Страница 159: ...134 CX Programmer Specifications Section 4 2...
Страница 205: ...180 Procedures Section 6 1...
Страница 207: ...182 System defined external variables supported in function blocks Appendix A...
Страница 229: ...204 Revision History...
Страница 230: ......