beckhoff — 12.4.2 Methods of the ActiveX control

Appendix | Appendix D: EtherCAT Topology ActiveX Control ShowAdvancedSettingsMenu Description The property ShowAdvancedSettingsMenu defines, if the entry AdvancedSettings... should be added to the context menu of an EtherCAT slave. If this menu entry is selected, the event OnAdvancedSettings is fired. Property type Read-write property Default value false Syntax (C#) bool ShowAdvancedSettingsMenu { set; get; } Member of IEcTopologyCtrl BackColor Description The property BackColor determines the backgroud color.

Property type Read-write property Default value 0x00FFFFFF(white) Syntax (C#) uint BackColor { set; get; } Member of IEcTopologyCtrl ShowOnlineTopology Description Displays the online topology of an EtherCAT device. The device is selected with the help of the properties DeviceId and TargetNetId.

With the help of the parameter OnlineMode one can additionally specify, how the topology is determined Syntax (C#) void ShowOnlineTopology() Member of IEcTopologyCtrl Example(C#) axEcTopologyCtrl1.TargetNetId = "172.16.2.122.1.1"; // Connection TwinCAT- System wtih AMS NetId 172.16.2.122.1.1 axEcTopologyCtrl1.DeviceId = 1; // EtherCAT device with Id 1 axEcTopologyCtrl1.ShowOnlineTopology(); // show topology ShowOfflineTopology Description Displays the offline topology of an EtherCAT device belonging to an opened System Manager configuration. TwinCAT 2 449 Version: 1.7