Mitsubishi MELSEC-q Programming Manual page 274

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

7 ERROR LIST
No.
Error Message
The type of a formula is
38
illegal. (C8032)
Substitution is impossible
for a constant variable
39
(inside of FOR syntax).
(C8033)
By FOR syntax, variables
40
other than INT/DINT type
are used. (C8034)
7 - 10
Cause
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.
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;
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.
Corrective Action
Correct the format type.
Write to the constant
variable (in FOR syntax)
cannot be performed.
Use the correct type in the
FOR syntax.
7 - 10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents