24.01.2015 Views

PLC Programming

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix J: Compiler Errors and Warnings<br />

4255<br />

4256<br />

4257<br />

4258<br />

4259<br />

4260<br />

4261<br />

4262<br />

4263<br />

"'UNTIL' requires 'BOOL' expression as condition"<br />

Make sure that the condition following the ‘UNTIL’ is a boolean expression.<br />

"'NOT' requires 'BOOL' operand"<br />

Make sure that the condition following the ‘NOT’ is a boolean expression.<br />

"Variable of 'FOR' statement must be of type 'INT'"<br />

Make sure that the counter variable is of an integer or bitstring data type (e.g. DINT, DWORD).<br />

"Expression in 'FOR' statement is no variable with write access"<br />

Replace the counter variable by a variable with write access.<br />

"Start value in 'FOR' statement is no variable with write access"<br />

The start value in the ‚FOR' instruction must be compatible to the type of the counter variable.<br />

"End value of 'FOR' statement must be of type 'INT'"<br />

The end value in the ‚FOR' instruction must be compatible to the type of the counter variable.<br />

"Increment value of 'FOR' statement must be of type 'INT'"<br />

The incremental value in the ‚FOR' instruction must be compatible to the type of the counter variable.<br />

"'EXIT' outside a loop"<br />

Use 'EXIT' only within 'FOR', 'WHILE' or 'UNTIL' instructions.<br />

"Expecting Number, 'ELSE' or 'END_CASE'"<br />

Within a ‘CASE' expression you only can use a number or a 'ELSE' instruction or the ending<br />

instruction 'END_CASE'.<br />

4264<br />

"'CASE' requires selector of an integer type"<br />

Make sure that the selector is of an integer or bitstring data type (e.g. DINT, DWORD).<br />

4265<br />

"Number expected after ','"<br />

In the enumeration of the CASE selectors there must be inserted a further selector after a comma.<br />

4266<br />

"At least one statement is required"<br />

CoDeSys V2.3 10-123

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!