First the fragments and the function block are created and configured in subsequent steps.
Create the function block FB_Errors in unit Step7:
- Select the Step7 unit.
- From the popup menu, select New > Step7 > Source > Function block.
- In the Resource location panel, click [Import].
- Select the file FB_Errors.AWL in the following dialog.
- Confirm with [Open].
Create the fragment FR_Errors_Dec in unit Step7:
- Select the Step7 unit.
- From the popup menu, select New > Step7 > Source > Fragment.
- In the Resource location panel, click [Import].
- Select the file FR_Errors_Dec.AWL in the following dialog.
- Confirm with [Open].
Create the fragment FR_Errors_NW in unit Step7:
- Select the Step7 unit.
- From the popup menu, select New > Step7 > Source > Fragment.
- In the Resource location panel, click [Import].
- Select the file FR_Errors_NW.AWL in the following dialog.
- Confirm with [Open].