Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As an extension to this simple example you can optionally set the define HOST_APPLICATION_SETS_OEM_DATA in AppECS_DemoApplication_Config.h


8 Using TwinCAT

The following scrennshots give a shot introduction to bring the slave to Operational mode using TwinCAT as a master and configuration tool.

1st DownloadTwinCAT from the Beckhoff homepage and install. It is free to use for test purpose.

Than copy your ESI file from the example to the folder which Twincat uses to search for ESI files: C:\TwinCAT\3.1\Config\Io\EtherCAT

Than start TwinCAT and open a new project.

Hint: If you add your ESI file later, you must click 'Reload Configuration files' in TwinCAT. Otherwise TwinCAT will not find your device and create an own temporary ESI file called 'OnlineDescritionCache'. It can only be seen in the folder for ESI files if you close TwinCAT. This can be confusing because it is prefered by TwinCAT if you add your file and do not delete it. 

Image Added or it may look like this: Image Added

Than you have to add a networkadapter (TwinCAT will install some protocols on it).

Image Added


Choose a Networadapter from the list even if ther are no comaptible devices and click the 'Install' button.

The decice will be added above under 'Installed and ready to use ...'


Image Added

Now you can connect your slave with the example running.

Than go on scaning the network


Image Added

The device shall be found and should still be in Operational.

Image Added

To send data you can add a value to the RX-PDO (recive from slave view))

Image Added


The example will increment the value and send it back

Image Added



If you want to do wireshark traces you must activate the Promeiscous mode on the master device by setting the check mark.

Image Added


Than cklick the 'reload' button to apply your changes.

Image Added