This functionality is only available for certain module packages.

You are here: Tutorial > SIMATIC Step 7 > Task 4 - Inserting fault messages into the Step 7 code > Creating the new function block FB_Errors and fragments FR_Errors_Dec and FR_Errors_NW

Creating the new function block FB_Errors and fragments FR_Errors_Dec and FR_Errors_NW

First the fragments and the function block are created and configured in subsequent steps.

Create the function block FB_Errors in unit Step7:

  1. Select the Step7 unit.
  2. From the popup menu, select New > Step7 > Source > Function block.
  3. In the Resource location panel, click [Import].
  4. Select the file FB_Errors.AWL in the following dialog.
  5. Confirm with [Open].

Create the fragment FR_Errors_Dec in unit Step7:

  1. Select the Step7 unit.
  2. From the popup menu, select New > Step7 > Source > Fragment.
  3. In the Resource location panel, click [Import].
  4. Select the file FR_Errors_Dec.AWL in the following dialog.
  5. Confirm with [Open].

Create the fragment FR_Errors_NW in unit Step7:

  1. Select the Step7 unit.
  2. From the popup menu, select New > Step7 > Source > Fragment.
  3. In the Resource location panel, click [Import].
  4. Select the file FR_Errors_NW.AWL in the following dialog.
  5. Confirm with [Open].