I want to implement TwinCAT3 automation script(C#) for scanning I/O devices. I want to scan CANOpen devices which are connected to TwinCAT3 coupler and select from the appropriate CANOpen device from GUI.
I did not find any information about scanning I/O devices from Beckhoff documentation. I just found some information for scanning the CANOpen devices from Beckhoff documentation. But, It is not well documented.
ITcSmTreeItem5 can_master = (ITcSmTreeItem5)io.CreateChild("Device 2 (EL6751)", 87, "", null);
String availableMaster = can_master .ResourceCount;
can_master.ClaimResources(1);
They did not specify where can we save scanned devices. They just simply activating the device with index.
Please suggest me, How can I scan CANopen devices and save the available devices through automation C# scripting?