Standard PLC BA template
The standard PLC BA template is a PLC template for a standard TF8040 project.
With the standard PLC BA template all necessary libraries and project settings are loaded for an easy start with TF8040. The template is very suitable for making a start with a TF8040 project.
Structure
The standard project template contains all necessary declarations, FB calls and libraries for the first commissioning of a TF8040 controller.
Template for a Building Automation PLC project with the following basic content:
Settings
- Task
- PLC cycle time: 45 ms
References
- Tc3_BA2
- Tc3_BA2_Common
- Tc3_BACnetRev14
Programs
- MAIN
- FB_BA_DPAD
Contains preconfigured levels for small projects. - Project structure
Contains declarations and FB calls for:
- Control cabinet
- Device
Templates
Contains all the templates required for compiling the project template without errors.
Structure in the solution tree

- References
All the libraries required for a TF8040 project are loaded here.

- MAIN POU
The standard project structure is called in the MAIN POU.
![]() | This template provides a project structure as an application example with eight levels based on an example from VDI 3814. |

- Templates
All templates required to get started are located in this folder. They enable error-free compilation of the PLC project template. Further templates for the implementation of project-specific applications can be found in the Template Repository.

- PLC task
The cycle time of the PLC task is set to 45 ms and should not be set smaller for performance reasons.

Project-specific programming
- Control
Once the project can be compiled without errors, the preparations are complete.
- Import templates
Project-specific programming begins with the integration of templates from the Template Repository.
Now start with the project-specific programming.