Exemplo n.º 1
0
        private void button_Connect_Click(object sender, EventArgs e)
        {
            button_Connect.Enabled = false;

            // Create a link to the RC7 controller via the engine (CAO.exe)
            
            RC7Controller = ORiN_Engine.Workspaces.Item(0).AddController(
                                "Sample",						// This is the name of the connection to the RC7 controller; Pass an empty string to have the controller auto-generate a name
                                "CaoProv.DENSO.NetwoRC",	// This is the name of the DENSO ORiN provider for RC7; It must be exactly as shown
                                "",             			// This is the name of the machine executing the DENSO ORiN provider (usually the machine running this program)
                                "Conn=eth:192.168.0.2");	// This is the IP address of the physical RC7 controller

            //In order to perform motion commands on the pc side you should start the RobSlave.pac program on the RC7
            RC7Task_RobSlave = RC7Controller.AddTask("RobSlave", "");
            RC7Task_RobSlave.Start(1, "");
            

            // Add a local variable that is linked to string variable S10 on the physical RC7 controller
            RC7variable_S10 = RC7Controller.AddVariable("S10");

            button_ReadVariable.Enabled = true;
            button_WriteVariable.Enabled = true;
            button_Close.Enabled = true;
        }
Exemplo n.º 2
0
 public void Start()
 {
     task.Start(1, null);
 }