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*)
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: ......