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.

Starting a project 1:

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

Starting a project 2:
Starting a project 3:

Adding a PLC project

Starting a project 4:
Starting a project 5:

Choose Target System

Starting a project 6:
Starting a project 7:
Starting a project 8:

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:
  • Reading the existing hardware configuration:
  • Starting a project 10:
  • Selecting a core:

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:

Notice

Do not use isolated cores.

  • Configuring the router memory

The memory should generally be set to 200 MB:

Starting a project 12:
Starting a project 13:

A restart of the operating system (on the target device) is required to apply the setting.

Tasks

Starting a project 14:

Settings for the PLC task:

  • Recommended cycle time: 45 ms
Starting a project 15:

PLC

Starting a project 16:

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:
Starting a project 18:
Starting a project 19:

Starting a project 20:

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.

Starting a project 21:

Further steps for setting up the hardware are not be discussed in detail here.

BACNet

The adapter is set in the BACnet device under the Adapter tab:

Starting a project 24:
  • Linking the BACnet adapter with the AMS NetID:
Starting a project 25:

This step is only possible once the project has been compiled without errors.

Starting a project 26:

Selection of the BACnet adapter to be used:

Starting a project 27:
  • Adding the BACnet server:
Starting a project 28:
Starting a project 29:

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).

Adapt the PLC template

Adapt the used PLC project template according to the recommended procedure.

Continue

The PLC project is now set up and project planning can be started.