Mitsubishi Electric MELSEC Q Series Programming Manual page 268

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7 ERROR LIST
No.
Error Message
It is used except a constant
for the %d argument.
13
(C2021)
(Argument error location
enters *1.)
14
Syntax error. (C2054)
7 - 4
Cause
Other than a constant was used in the argument for
which a constant should be specified.
There are the following program examples that will
result in an error.
Example 1: M1 := ROL(M0,X0);
Other than a constant was used in
argument No. 2.
Example 2: D100 := SHL(D0,D1);
Other than a constant was used in
argument No. 2.
Wrong grammar was described.
There are the following examples where grammar
will be illegal.
Example 1: D0 : 0;
"=" is not described in the assignment
statement.
Example 2: FOR ARY[0] := 0 TO D10
BY D20 DO
D100 := D100+1;
END_FOR;
The array element was specified in the
repeat variable.
Example 3: FOR STR.W_TMP := 0 TO D10
BY D20 DO
D100 := D100+1;
END_FOR;
The structure element was specified in
the repeat variable.
Example 4: D0 := 1++++++++2;
The method of using the + operator is
wrong.
Example 5: Word type array : IntAry1
D0 := IntAry1[[0;
The method of describing the array is
wrong.
Corrective Action
Use a constant in the
specified argument.
Correct the grammar.
7 - 4

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents