|
@@ -36,7 +36,7 @@ namespace HEIDENHAIN
|
|
|
//private JHError m_Error = null;
|
|
|
|
|
|
|
|
|
- string Http_Request_Url = "http://127.0.0.1:8011/heidenhain/";
|
|
|
+ string Http_Request_Url = "http://20.20.47.107:8011/heidenhain/";
|
|
|
bool _contine = true;//用于线程循环
|
|
|
private AutoResetEvent autoConnectEvent = new AutoResetEvent(false);//此处需要调用System.Threading;用于触发等待的线程已发生的事件(连接)
|
|
|
public delegate void RecvAndSendHandler(HttpListenerContext s);//此处需要调用System.Net用于请求和响应HttpListener类
|
|
@@ -278,6 +278,15 @@ namespace HEIDENHAIN
|
|
|
YG.Log.Instance.WriteLogAdd($"海德汉执行程序地址--->>{dncPath}\r\n");
|
|
|
m_Automatic.StartProgram(dncPath);
|
|
|
}
|
|
|
+ else if(hdhBody.Type == ActionTypeEnum.ApplyFeeding.ToString()) //申请上料功能处理
|
|
|
+ {
|
|
|
+ JHAutomatic m_Automatic = Machine.GetInterface(DNC_INTERFACE_OBJECT.DNC_INTERFACE_JHAUTOMATIC);
|
|
|
+ RemotePath = RemotePath + "\\" + hdhBody.Address;
|
|
|
+ string dncPath = GenPath(RemotePath, hdhBody.Path);
|
|
|
+ m_Automatic.SelectProgram(iChannel, dncPath);
|
|
|
+ YG.Log.Instance.WriteLogAdd($"海德汉执行程序地址--->>{dncPath}\r\n");
|
|
|
+ m_Automatic.StartProgram(dncPath);
|
|
|
+ }
|
|
|
else if (hdhBody.Type == ActionTypeEnum.Read.ToString())
|
|
|
{
|
|
|
IJHDataEntry2 DataLine = null;
|