Implement in TwinCAT 3

<< Click to Display Table of Contents >>

Navigation:  Target Systems > Beckhoff >

Implement in TwinCAT 3

 

Start TwinCAT XAE:

clip0236

Open „New TwinCAT Project“

clip0237

Create a „TwinCAT XAE Project“:

clip0238

Now you have to create a new PLC Project:

clip0239

Add a „Standard PLC Project“:

clip0240

Now you have to import the PLCopenXML file from SELMOstudio:

clip0241

Open the .xml file.

clip0242

Press OK

clip0243

The Project has opened:

clip0244

Add a Global Variable List for your inputs and outputs.

clip0245clip0246

Write your inputs and outputs. (In this case wie used the I/O’s from our HMI.)

clip0247

Now you have to write the In/ and Output mapping

clip0248

clip0325

Open „MAIN (PRG)“ and write „GlobalControl ();“

clip0252

After you have done this, go to „System … Real-Time“ and configure your local controller (PLC).

First, read the number of available cores on your system. (Press „Read from Target“)

There should be at least 2 cores to get a stable runtime. In our case the system has 8 cores from 0-7.

clip0253

The  last core has to be isolated from it: (Press „Set on target“)

clip0254

You also should check that the current "SELMO Basic" library is already installed.

clip0255

clip0257

If you haven’t already installed the SELMO Basic library, then please follow the instructions in „Settings in TwinCAT

If you have already installed the library add the SELMO Basic library  in your Project:

clip0258

The library is loaded in your project. (Always use the newest version.)

clip0259

You find the newest version in our SELMOstudio:

SELMO Lib

Now save all your changes:

clip0261

Load project and start PLC:

clip0262

clip0326

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

NeuesElement648

 

NeuesElement647

 

 

You can log in here.

clip0022

 

The application runs on the controller.

NeuesElement646

 

 

Now you have to start the SELMOPoweredHMI of your DEMO project.