7 - 9 7 - 9
7 ERROR LIST
No. Error
Message
Cause
Corrective
Action
34
The variable which cannot
substitute a value for the *1
cannot be specified.
'*2'(C8028)
(Error location enters *1,
and function name, ":="
enters *2.)
The variable to which a constant, input variable or
other value cannot be assigned is specified in the
location where the value is assigned.
Example 1: Label (constant type): cnt
cnt := D10;
Assigned to the label constant.
Example 2: ABS_E(TRUE, d0, K10);
The constant is described in the output
variable of the function.
Example 3: FB input variable (word type): IN1
BPLUS_3_M(M0, K1, D0, FB1.IN1);
The input variable is specified in the
argument where the value is output.
Change the value into the
variable to which a value
can be assigned.
35
Type mismatch at variable
*1 of '*2'. (C8029)
(Argument error location
enters *1, and function
name enters *2.)
The type of the variable does not match.
Example 1: Word type array: IntAry1[0..1]
M1 := BACOS_MD(TRUE,
IntAry1, D1);
Correct the type in the
specified error location of
the function argument, or
correct the variable type.
36
Type mismatch for '*1'.
(C8030)
(Operator, such as ":=" or
"*" enters *1.)
The left member of the variable/device differs in data
type from the right member.
Example 1: D0 : =TRUE;
The bit type is assigned to the word
device.
Example 2: D1 := D2*M1;
The word type and bit type are operated.
Example 3: M0 := d1 > M1;
The word type and bit type are
compared.
Specify the same data type
in the left and right
members of the
variable/device.
37
No overload of '*1' takes *2
parameters. (C8031)
(Function name enters *1,
and the number of
arguments that do not match
the definition enters *2.)
The number of arguments for a function call does not
match the definition.
Example 1: ABS();
The number of arguments described is
less than the number of arguments
defined.
Example 2: d0 := ABS(10, 10);
The number of arguments described is
greater than the number of arguments
defined.
Correct the number of
function arguments.
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......