The TwinCAT software turns almost any
compatible PC into a real-time controller with a multi-PLC system, NC axis control,
programming environment and operating station. TwinCAT is a PC software functioning
as an EtherCAT master to control various EtherCAT slave nodes connected to the PC.
The following are the steps to setup TwinCAT
- Optional: Install Microsoft Visual
Studio. This isn’t required since TwinCAT will install a Visual Studio shell if
no Visual Studio installation is found.
- Download and install Microsoft Visual Studio
- TwinCAT supports
integration into Visual Studio 2010/2012/2013/2015/2017
- Download and install TwinCAT3 from the Beckhoff
- Follow the left sidebar to
Download->Software->TwinCAT 3->TE1xxx | Engineering
and select the software product TwinCAT 3.1 eXtended Automation
Engineering (XAE)
- Once installation is complete,
verify that the TwinCAT Runtime is active
- Check that the TwinCAT
Config Mode icon is shown in the Windows notification panel as shown in
Figure 12-2.
- Right click on this icon and select Tools->TwinCAT Switch
Runtime. From the Tc- SwitchRuntime window, verify that it is
active. When active, it will only provide the option to
Deactivate. Do not deactivate!
- If the icon is not present,
then locate the TwinCAT Runtime executable from the file system.
(Default installation location is typically:
C:/TwinCAT/TcSwitchRuntime)
- Start up Visual Studio with TwinCAT
using one of the following methods:
- Recommended: Right click
the TwinCAT Config Mode icon from the Windows notification panel and
select TwinCAT XAE
- installed desktop icon:
TwinCAT XAE
- Use installed Start Menu
icon under Beckhoff folder: TwinCAT XAE
- Once Visual Studio running, verify
that the main toolbar has options TwinCAT and PLC shown. If these
aren’t present, then the TwinCAT Switch Runtime isn’t active.
- Within Visual Studio, create a new
EtherCAT project. Select File -> New -> Project and under templates
select TwinCAT Projects then TwinCAT XAE Project (XML format).
Fill in a name (say f2838x_iddk) and click OK.
- Now that the project is created,
verify that a realtime Ethernet adapter is installed.
- In Visual Studio, select
the TwinCAT menu from the main toolbar and select Show
Realtime Ethernet Compatible Devices
- In the popup window, under
Installed and ready to use devices (realtime capable)
category, if no connections are shown, select one from the list of
Compatible devices and click Install.
- TwinCAT setup is now complete.