L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 574

Advertising
background image

L-force | PLC Designer

Compiler Errors and Warnings

572

DMS 3.2 EN 02/2011 TD29



1501

"String constant passed as 'VAR_IN_OUT': '<Name>' must not be overwritten!"

The constant may not be written within the POU, because there no size check is
possible.

1502

"Variable '<Name>' has the same name as a POU. The POU will not be called!"

A variable is used, which has the same name like a POU.

Example:

PROGRAM a

...

VAR_GLOBAL

a: INT;

END_VAR

...

a; (* Not POU a is called but variable a is loaded. *)

1503

"The POU ‘<name>’ has no outputs. Box result is set to 'TRUE'."

The Output pin of a POU which has no outputs, is connected in FBD or KOP. The
assignment automatically gets the value TRUE.

1504

"’<name>’ (‘<number>’): Statement may not be executed due to the evaluation of the
logical expression"

Eventually not all branches of the logic expression will be executed.

Example:

IF a AND funct(TRUE) THEN ....

If a has is FALSE then funct will not be called.

Advertising