FBDb First function

 

  

Add a Functions POU group to your project tree. To this group, add a new function with the name FU_Start_FBD using function block diagram as the programming language.

   

This function should provide the same logic as the previous programming (→ Task FBDa) and should be called in the program (instead of the previous programming).

 

    

It is now required to internally use variables of the "VAR_INPUT usage” and the output parameters of the function instead of global variables. 

  

  

   When assigning names to input parameters of function and function blocks, use more general names such as IN1 and IN2 instead of Switch1 and Switch2. The selection of a name should be based on the parameter function and not on the process variable that is accidentally connected to the parameterizable block within a project.

    

  Chapter: Creatings Function Programmed by the User