Ejemplo n.º 1
0
 //public IOdevice[] devices = {
 //        new IOdevice(1, 1, "EL1004", 4),
 //        new IOdevice(2, 2, "EL2004", 4),
 //        new IOdevice(3, 3, "EL3008", 8),
 //        new IOdevice(4, 4, "EL4002", 2),
 //    };
 public FormDevice()
 {
     InitializeComponent();
     ethercat = EtherCAT.getEtherCAT(true);
     //临时的
     ethercat.getAdapter();
     ethercat.setAdapter(2);
 }
Ejemplo n.º 2
0
 public FormNIC()
 {
     InitializeComponent();
     ethercat = EtherCAT.getEtherCAT(true);
 }