How to implement a DFB function block
(Original Document)
Reminder
The AS-i security DFB exists in the Diagnostics Library.
Use of DFBs
This instance of the block is used as a standard function block in ladder diagram, or as an elementary function in structured literal, instruction list or function block language.
It can be programmed in the various tasks (except in the event tasks) and sections of the project.
Security DFB instance
The following table describes the procedure for creating a security DFB instance:
Step
Action
1
Select the Function blocks tab in the data editor window.
2
Check the box marked DFB.
3
Declare a DFB instance in the Name column.
4
To select the DFB type double click in the Type column of the new instance and press on the button .
Result: the Data editor window: selection of FB type opens.
5
Select the Libraries directory in the <Libraries/Families> zone.
6
In the <Libraries> zone select the Diagnostics directory.
Result: the various diagnostics DFBs appear in the right hand side of the screen:
7
Select the SAFETY_MONITOR DFB type in the Name column and press OK to confirm.
8
Program the DFB in the desired program module.