7 - 10 7 - 10
7 ERROR LIST
No. Error
Message
Cause
Corrective
Action
38
The type of a formula is
illegal. (C8032)
The format type does not match in the control syntax.
Example 1: Double word type: DwLBL
FOR DwLBL := W1 TO W2 BY W3 DO
W5 := W6;
END_FOR;
The data types of the repeat variable and
last value expression/incremental
expression do not match.
Example 2: CASE W1 OF
1: D0 := 1;
2147483648 : D0 := 2;
ELSE
D0 := 10;
END_CASE;
The data types of the integer expression
and selection value do not match.
Example 3: IF W1 THEN
D100 := 1;
END_IF;
The word type is specified for the
Boolean expression.
Correct the format type.
39
Substitution is impossible
for a constant variable
(inside of FOR syntax).
(C8033)
An attempt was made to write to the constant
variable.
There is the following program example for the above
error.
Example 1: Constant label : tei
FOR tei := W10 TO W20 BY W30 DO
R10 := R20;
END_FOR;
Write to the constant
variable (in FOR syntax)
cannot be performed.
40
By FOR syntax, variables
other than INT/DINT type
are used. (C8034)
The variable of other than the word/double word type
is used in the FOR syntax.
(For example, when the character string, array or
structure variable name is specified for the repeat
variable)
Example 1: Character string label: Str1, Str2, Str3,
Str4
FOR Str1 := Str2 TO Str3
BY Str4 DO
D0 := D100;
END_FOR;
The character string variable name was
specified for the repeat variable.
Use the correct type in the
FOR syntax.
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......