-> Hier kostenlos registrieren
Hallo
Ich versuche die EtherCat Topolgie einer Beckhoff Steuerung mit TwinCat 2.11 in einer Benutzer-Oberfäche anzuzeigen.
Im Beckhoff Info-System gibt es einen Hinweis zum einbinden einer DLL, um die EtherCat Topologie anzuzeigen wie im System-Manager.
http://bkinfosys.beckhoff.com/engli...ercat/html/ectopology_interfaces.htm&id=20175
Leider habe ich keinen Erfolg. Das Visual Basic und das C# Programm stürzen mit einer unbehandelten COM-Ausnahme ab beim Befehl: axEcTopologyCtrl1.ShowOnlineTopology();
Hier der Code eines minimal-Programmes:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication6
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
axEcTopologyCtrl1.TargetNetId = ""; // Verbindung zum lokalen TwinCAT-System
axEcTopologyCtrl1.DeviceId = 2; // Device ID 2
axEcTopologyCtrl1.ShowOnlineTopology();
}
}
}
Hat jemand Erfahrung mit dem TopologyCtrl ?
Besten Dank.
Ich versuche die EtherCat Topolgie einer Beckhoff Steuerung mit TwinCat 2.11 in einer Benutzer-Oberfäche anzuzeigen.
Im Beckhoff Info-System gibt es einen Hinweis zum einbinden einer DLL, um die EtherCat Topologie anzuzeigen wie im System-Manager.
http://bkinfosys.beckhoff.com/engli...ercat/html/ectopology_interfaces.htm&id=20175
Leider habe ich keinen Erfolg. Das Visual Basic und das C# Programm stürzen mit einer unbehandelten COM-Ausnahme ab beim Befehl: axEcTopologyCtrl1.ShowOnlineTopology();
Hier der Code eines minimal-Programmes:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication6
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
axEcTopologyCtrl1.TargetNetId = ""; // Verbindung zum lokalen TwinCAT-System
axEcTopologyCtrl1.DeviceId = 2; // Device ID 2
axEcTopologyCtrl1.ShowOnlineTopology();
}
}
}
Hat jemand Erfahrung mit dem TopologyCtrl ?
Besten Dank.