Skip to main content

Creating a POU in ST

When you create a POU, you decide which implementation language you want to use for programming.

Procedure. Creating a POU
  1. In the navigator, select your application.

  2. In the context menu, select the Add Item command and then Function Block.

    The Add Function Block dialog will open.

  3. Configure the new function block.

    1. Choose a name, for example:

      FB_Counter

    2. Select Structured Text (ST) as the implementation language.

    3. Click Create to close the dialog.

      A new item named FB_Counter.fb.st will be created in the navigator. fb stands for function block. st stands for structured text.

      The FB_Counter.fb.st function block will be displayed in the editor area of the function block.