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
![Standard PLC BA template 1:](Images/png/9007209763977227__en-US__Web.png)
- References
All the libraries required for a TF8040 project are loaded here.
![Standard PLC BA template 2:](Images/png/10509227403__Web.png)
- 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. |
![Standard PLC BA template 4:](Images/png/10508725259__Web.png)
- 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.
![Standard PLC BA template 5:](Images/png/10509230347__Web.png)
- PLC task
The cycle time of the PLC task is set to 45 ms and should not be set smaller for performance reasons.
![Standard PLC BA template 6:](Images/png/18014409018715275__en-US__Web.png)
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.