Einstellungen in TwinCAT

<< Click to Display Table of Contents >>

Navigation:  Target systems > Beckhoff >

Einstellungen in TwinCAT

Prepare the local Win10 PC for TwinCAT:

The batch file "win8settick.bat" must be executed so that the local system is executable for TwinCat.

You will find the file in the TwinCat system folder.

C: \ TwinCAT \ 3.1 \ System

TwinCatWin8SettickFolder

 

 

The file win8settick.bat should be executed as administrator.

TwinCatWin8SettickRunAdmin

 

Then start the TwinCat XAE software if it is not already open.

 

Open the demo project you want to start (see Open project in TwinCAT).

 

After opening the project, go to "System" and configure your local controller (PLC).

TwinCatRealTimeSettings

 

 

First read the number of cores available on your system.

TwinCatReadFromTarget

There should be at least 2 cores to ensure a stable runtime. In our case, the system has 12 cores from 0-11.

TwinCatRealTimeSettings2

 

 

Now one core must be isolated.

TwinCatSetOnTarget

TwinCatRealTimeSettings3

 

 

After restarting the system, the isolated core of TwinCat must be set to the default value.

TwinCatRealTimeSettings4

 

The latest version of the "Selmo Basic" library must be installed.

The Selmo Basic library can be found in the project folder explorer: PLC - Demo - Demo project - References

TwinCatReferences

 

 

The Selmo Basic library is located in the Selmo studio.

Export the library for TwinCAT3.

SELMO Lib

Click on "Library repository" to install the new Selmo library.

TwinCatReferencesInstall1

 

TwinCatReferencesInstall2

 

The installed library is displayed under Application - Common - Selmo Basic

TwinCatReferencesInstall3

 

Add the new library:

TwinCatReferencesAddLib

 

Now the project must be saved so as not to lose any settings.

TwinCatSaveAll

 

The project can now be loaded into the controller.

 

Load project and start PLC:

First, the configuration must be activated.

TwinCatLoadKonfig

 

TwinCatActivateConfig

You will be asked to activate a license.

Beckhoff offers a 7-day test license.

TwinCatLicenses1

 

If you confirm with "YES", the following screen appears.

Enter the displayed key in the field below and confirm with "OK".

TwinCatLicenses2

 

 

TwinCatRestart

 

The project is now loaded and the PLC switches to the RUN state.

TwinCatPLCStatus

 

TwinCatRestartRun

 

 

You can log in here.

TwinCatGoOnline

 

The application is executed on the controller.

TwinCatLogOut