<< Click to Display Table of Contents >> Navigation: Target Systems > Beckhoff > Implement in TwinCAT 3 |
Start TwinCAT XAE:
Open „New TwinCAT Project“
Create a „TwinCAT XAE Project“:
Now you have to create a new PLC Project:
Add a „Standard PLC Project“:
Now you have to import the PLCopenXML file from Selmostudio:
Open the .xml file.
Press OK
The Project has opened:
Add a Global Variable List for your inputs and outputs.
Write your inputs and outputs. (In this case wie used the I/O’s from our HMI.)
Now you have to write the In/ and Output mapping
Open „MAIN (PRG)“ and write „GlobalControl ();“
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.
The last core has to be isolated from it: (Press „Set on target“)
You also should check that the current "Selmo Basic" library is already installed.
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:
The library is loaded in your project. (Always use the newest version.)
You find the newest version in our Selmostudio:
Now save all your changes:
Load project and start PLC:
The project is now loaded and the PLC switches to the RUN state.
You can log in here.
The application runs on the controller.