Starting a project
This chapter describes how to start a project.
Procedure
The procedure described here includes all settings that are relevant for a functioning project.
![]() | When using the TF8040 PLC project templates individual steps are already prepared accordingly. |
Updating the runtime
If the runtime on the target device is not up-to-date, it should be updated accordingly:
XAR
Install current XAR on full Windows systems.
Image
Install current image on the other systems (e.g. Windows Compact 7).
Creating a TwinCAT project
- Create new Solution.
![Starting a project 2:](Images/png/18014408982643339__en-US__Web.png)
![Starting a project 3:](Images/png/18014408982684683__en-US__Web.png)
Choose Target System
- To proceed with the project settings, you must first select a controller as the target system.
![Starting a project 6:](Images/png/9007209757892747__en-US__Web.png)
![Starting a project 7:](Images/png/9007209758113291__en-US__Web.png)
![]() | For more information refer to the chapter Choose Target System. |
Project settings
After the target system is selected, you can proceed with the project settings.
System
Real-time
![Starting a project 9:](Images/png/9007209727949579__en-US__Web.png)
- Reading the existing hardware configuration:
- Selecting a core:
![Starting a project 10:](Images/png/9007209727946635__en-US__Web.png)
If there are several cores to choose from, the last core is recommended, since the load generated by the operating system tends to be small there.
![Starting a project 11:](Images/png/9007209727899403__en-US__Web.png)
Notice | |
Do not use isolated cores. |
- Configuring the router memory
The memory should generally be set to 200 MB:
![Starting a project 12:](Images/png/9007209727952523__en-US__Web.png)
![]() | A restart of the operating system (on the target device) is required to apply the setting. |
Tasks
![Starting a project 14:](Images/png/9007209727781515__en-US__Web.png)
Settings for the PLC task:
- Recommended cycle time: 45 ms
![Starting a project 15:](Images/png/9007209727778571__en-US__Web.png)
PLC
![]() | The settings described below are not necessary if a PLC project template is used. |
Libraries
If no template is used, the following libraries must be added to the PLC project.
![Starting a project 17:](Images/png/9007209727854603__en-US__Web.png)
![Starting a project 18:](Images/png/9007209727857547__en-US__Web.png)
![]() | In the standard PLC-BA template all necessary libraries are already loaded automatically. |
I/O
The procedure proposed here refers to the steps required to make the TF8040 function operational in combination with BACnet on the desired hardware.
![]() | Further steps for setting up the hardware are not be discussed in detail here. |
BACNet
- Add BACnet device:
- Select the appropriate network adapter:
![Starting a project 22:](Images/png/9007209727877771__en-US__Web.png)
![Starting a project 23:](Images/png/9007209727860491__en-US__Web.png)
The adapter is set in the BACnet device under the Adapter tab:
![Starting a project 24:](Images/png/18014408982610315__Web.png)
- Linking the BACnet adapter with the AMS NetID:
![]() | This step is only possible once the project has been compiled without errors. |
![Starting a project 26:](Images/png/9007209727863435__en-US__Web.png)
Selection of the BACnet adapter to be used:
![Starting a project 27:](Images/png/9007209727866379__en-US__Web.png)
- Adding the BACnet server:
![Starting a project 28:](Images/png/9007209727784715__en-US__Web.png)
![Starting a project 29:](Images/png/9007209727787659__en-US__Web.png)
License
TwinCAT 3 standard licenses are tied to a unique system ID of a TwinCAT 3 license dongle (or IPC).
Standard licenses are chargeable: The license price depends on the hardware platform level.
More detailed information is described in the information system (see Licensing).
- Determine the license status.
- To start it is possible to activate a trial license. This unlocks all functions for 7 days.
Continue
The PLC project is now set up and project planning can be started.