Join us today!

Notifications
Clear all

Compatibility Ethercat Simulation (TE1111) & Automation Interface (TE1000)

2 Posts
1 Users
0 Reactions
110 Views
Posts: 2
Topic starter
(@lucassp)
New Member
Joined: 3 months ago

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.

 

Reply
1 Reply
1 Reply
(@lucassp)
Joined: 3 months ago

New Member
Posts: 2

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>");

Reply
Share: