I want to connect to an OKUMA Windows based control from external PC (i.e. Other than OKUMA controller) and utilize the OKUMA Open API on that machine. Is it possible? (If yes then How?)
Below is my code which I want to run from my laptop to check machine running mode. I'm getting errors because Okuma.CLDATAPI can't run on my local PC :
using Okuma.CLDATAPI.Enumerations; // Part of the API on the machine
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace OKUMA_TRIAL
{
public partial class Form1 : Form
{
Okuma.CLDATAPI.DataAPI.CMachine objCMachine;
public Form1()
{
InitializeComponent();
objCMachine = new Okuma.CLDATAPI.DataAPI.CMachine();
objCMachine.Init();
}
private ExecutionModeEnum fnGetRunMode()
{
return objCMachine.GetExecutionMode();
}
private void btnRead_Click(object sender, EventArgs e)
{
txtRunMode.Text = fnGetRunMode().ToString();
}
}
}
If this isn't possible, is there another way to communicate with the machine?