protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == true)
            {
                return;
            }

            if (ioUnit == null)
            {
                ioUnit = new IO_401();
            }
            else
            {
                return;
            }

            ioUnit.canHardwareConnect(0, 125000);

            can_monitor = new CanMonitor_NET();

            can_monitor.canHardwareConnect(0, 125000);

            can_monitor.canDispatcherPerformance(5, 5);

            can_monitor.registerCanReceiveCallback((Object)this, new CanReceiveDelegate(canReceiveCallback));

            CanGrid.DataSource = frames;

            ioUnit.startupNode(7);

            receive_pdo = new ReceivePDO_NET();

            receive_pdo.canHardwareConnect(0, 125000);

            receive_pdo.setCobid(0x207);

            receive_pdo.registerReceivePdoMessageCallBack((object)this, receive_pdo_callback);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == true)
            {
                return;
            }


            Console.Beep(100, 500);


            CanOpenStatus stat;

            if (client_SDO == null || nmt_Master == null || can_monitor == null)
            {
                client_SDO       = new ClientSDO_NET();
                nmt_Master       = new NMT_Master_NET();
                can_monitor      = new CanMonitor_NET();
                server_SDO       = new ServerSDO_NET();
                client_SDO_local = new ClientSDO_NET();

                stat = can_monitor.canHardwareConnect(0, 125000);
                if (stat != CanOpenStatus.CANOPEN_OK)
                {
                }

                stat = can_monitor.canDispatcherPerformance(5, 5);
                if (stat != CanOpenStatus.CANOPEN_OK)
                {
                }

                stat = server_SDO.canHardwareConnect(0, 125000);
                if (stat != CanOpenStatus.CANOPEN_OK)
                {
                }

                stat = server_SDO.nodeSetId(5);
                if (stat != CanOpenStatus.CANOPEN_OK)
                {
                }

                server_SDO.registerObjectReadCallback(new SrvReadDelegate(canopenReadCallback), (Object)server_SDO);
                server_SDO.registerObjectWriteCallback(new SrvWriteDelegate(canopenWriteCallback), (Object)server_SDO);
                server_SDO.registerObjectGetAttributesCallback(new SrvGetAttrDelegate(getAttributesCallback), (Object)server_SDO);

                can_monitor.registerCanReceiveCallback((Object)this, new CanReceiveDelegate(canReceiveCallback));

                stat = client_SDO.canHardwareConnect(0, 125000);
                if (stat != CanOpenStatus.CANOPEN_OK)
                {
                }
                stat = client_SDO.connect(3);

                stat = client_SDO_local.canHardwareConnect(0, 125000);
                if (stat != CanOpenStatus.CANOPEN_OK)
                {
                }
                stat = client_SDO_local.connect(5);

                nmt_Master.registerNodeStateCallback(new NMTOperationalStateDelegate(nmtCallback), this);

                stat = nmt_Master.canHardwareConnect(0, 125000);
                if (stat != CanOpenStatus.CANOPEN_OK)
                {
                }

                CanGrid.DataSource = frames;
            }
        }