Join us today!
Compatibility Ethercat Simulation (TE1111) & Automation Interface (TE1000)
I am simulating an EtherCAT loop with slaves and various behaviours. This approach involves using the Automation Interface within a C# program to generate specific behaviors based on a generic TwinCAT template, which will adapt to individual systems through configuration files.
In relation to the simulation aspect, we have seen that within TwinCAT XAE, it is possible to create a device and import its configuration using an ENI file. We would like to know if it is also feasible to import the ENI file via the Automation Interface and automatically generate the associated mappings Within the c# program.
I have found the information if anyone has the same problem one day. Here is an example of code I used to import my ENI file :
// Import ENI
ITcSmTreeItem ecMaster = sysManager.LookupTreeItem("TIID^Device 3 (EtherCAT Simulation)");
ecMaster.ConsumeXml("<TreeItem><EtherCAT> <ImportConfigurationFile>C:/temp/eni.xml</ImportConfigurationFile></EtherCAT></TreeItem>");
- 17 Forums
- 267 Topics
- 942 Posts
- 0 Online
- 722 Members