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.

Errors<br />

4207<br />

4208<br />

4209<br />

4210<br />

4211<br />

4212<br />

"'N' modifier requires operand of type 'BOOL','BYTE','WORD' or 'DWORD'"<br />

The N modifier requires a data type, for which a boolean negation can be executed.<br />

"Conditional Operator requires type 'BOOL'"Make sure that the expression gives out a boolean<br />

result or use a type conversion.<br />

"Function name not allowed here"<br />

Replace the function call by a variable or a constant.<br />

"'CAL', 'CALC' and 'CALN' require a function block instance as operand"<br />

Declare an instance of the function block which you want to call.<br />

"Comments are only allowed at the end of line in IL"<br />

Shift the comment to the end of the line or to an extra line.<br />

"Accumulator is invalid before conditional statement"<br />

The accu is not defined. This happens if an instruction is preceeding which does not submit a result<br />

(e.g. 'CAL').<br />

4213<br />

"'S' and 'R' require 'BOOL' operand"<br />

Use a boolean variable at this place.<br />

4250<br />

"Another 'ST' statement or end of POU expected"The line does not start with a valid ST instruction.<br />

4251<br />

4252<br />

4253<br />

4254<br />

"Too many parameters in function '%s'"<br />

There are more parameters given than are declared in the definition of the function.<br />

"Too few parameters in function '%s'"<br />

There are less parameters given than are declared in the definition of the function.<br />

"'IF' or 'ELSIF' require 'BOOL' expression as condition"<br />

Make sure that the condition for IF or ELSIF is a boolean expression.<br />

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

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

10-122 CoDeSys V2.3

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

Saved successfully!

Ooh no, something went wrong!