Introduction

Syntax and semantics check is performed directly when creating the program.

The result of this check is displayed in three formats:

  • directly in the program section with colored text

  • as tooltip if the cursor is placed on incorrect text.

  • In the output window, if Generate > Analyze is selected.

Representation

Meaning of colors and labels:

Color

Description

Example

Black

Syntax and semantics are correct

Blue

Possible causes:

  • Associated variable is not declared

  • Data type of the variable does not match the data type of the pin

  • Input or output pin not connected

Red wavy line

Faulty text, e.g. variables which are not declared, variables with an incorrect data type, ...

Tooltips

If the cursor is placed over incorrect text, the tooltip is displayed with a brief description of the cause of the error. It will also be displayed in the output window after the analysis.

Error message in the output window

Error message: Accessed object is not a function block.

Cause of error

Error Correction

Name of the function block was already used for a variable.

Rename the already used variable.