FB function block establishment and application