91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.02MB
    文件類型: .zip
    金幣: 2
    下載: 2 次
    發布日期: 2023-08-27
  • 語言: 其他
  • 標簽: 新代??remoteAPI??

資源簡介

SyntecRemoteAPI_v3_1.0.12 該版本適合于控制器軟件版本 10.116.16x 看好控制器軟件版本再下載

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Runtime.Remoting;
using?System.Runtime.Remoting.Channels;
using?System.Runtime.Remoting.Channels.Tcp;
using?System.Diagnostics;
using?System.Threading;

using?Syntec.Remote;

namespace?SyntecRemoteClient
{
public?partial?class?ExampleForm?:?Form
{
List?m_CNC;
SyntecRemoteCNC?API1?=?null;
System.Windows.Forms.Timer?m_tmr300ms;

public?ExampleForm()
{
InitializeComponent();
RemoveUnusedProcess();

m_tmr300ms?=?new?System.Windows.Forms.Timer();
m_tmr300ms.Interval?=?300;
m_tmr300ms.Tick?+=?new?EventHandler(?m_tmr300ms_Tick?);
m_tmr300ms.Enabled?=?true;
buttonTimerOn.Enabled?=?false;
buttonTimerOff.Enabled?=?true;

m_CNC?=?new?List();

//?Add?your?CNCs‘?host-ip?here
SyntecRemoteCNC?cnc?=?new?SyntecRemoteCNC(?“10.10.80.163“?);
m_CNC.Add(?cnc?);

//cnc?=?new?SyntecRemoteCNC(?“10.10.1.207“?);
//m_CNC.Add(?cnc?);
//cnc?=?new?SyntecRemoteCNC(?“10.10.1.96“?);
//m_CNC.Add(?cnc?);

foreach(?SyntecRemoteCNC?tmp?in?m_CNC?)?{
listBox1.Items.Add(?tmp.Host?);
}
}

private?void?m_tmr300ms_Tick(?object?sender?EventArgs?e?)
{
if(?m_CNC.Count?>=?1?)?{
SyntecRemoteCNC?cnc?=?m_CNC[?0?];
short?DecPoint?=?0;
string[]?AxisName?=?null?Unit?=?null;
float[]?Mach?=?null?Abs?=?null?Rel?=?null?Dist?=?null;

short?result?=?cnc.READ_position(?out?AxisName?out?DecPoint?out?Unit?out?Mach?out?Abs?out?Rel?out?Dist?);
if(?result?==?0?)?{
if(?AxisName.Length?>?0?)?{
label1.Text?=?AxisName[?0?]?+?“?:?“?+?Mach[?0?].ToString();
}
if(?AxisName.Length?>?1?)?{
label2.Text?=?AxisName[?1?]?+?“?:?“?+?Mach[?1?].ToString();
}
if(?AxisName.Length?>?2?)?{
label3.Text?=?AxisName[?2?]?+?“?:?“?+?Mach[?2?].ToString();
}
if(?AxisName.Length?>?3?)?{
label4.Text?=?AxisName[?3?]?+?“?:?“?+?Mach[?3?].ToString();
}
}
else?{
label1.Text?=?“Err?:?“?+?result.ToString();
label2.Text?=?“Err?:?“?+?result.ToString();
label3.Text?=?“Err?:?“?+?result.ToString();
label4.Text?=?“Err?:?“?+?result.ToString();
}
}
}
private?void?btnTimerOn_Click(?object?sender?EventArgs?e?)
{
m_tmr300ms.Enabled?=?true;

buttonTimerOn.Enabled?=?false;
buttonTimerOff.Enabled?=?true;
}
private?void?btnTimerOff_Click(?object?sender?EventArgs?e?)
{
m_tmr300ms.Enabled?=?false;

buttonTimerOn.Enabled?=?true;
buttonTimerOff.Enabled?=?false;
}


~ExampleForm()
{
deinit();
RemoveUnusedProcess();
}
private?void?RemoveUnusedProcess()
{
Process[]?process?=?Process.GetProcessesByName(?“SyntecRemoteServer“?);
foreach(?Process?p?in?process?)?{
p.Kill();
}
}
private

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-02-22?16:42??Example\
?????目錄???????????0??2017-02-22?16:42??Example\bin_v3\
?????文件?????1204224??2016-09-20?13:49??Example\bin_v3\MMICommon32.dll
?????文件??????151552??2014-12-16?19:26??Example\bin_v3\nunit.framework.dll
?????文件??????106496??2016-09-20?13:49??Example\bin_v3\OCAPI.dll
?????文件??????466944??2016-09-20?13:49??Example\bin_v3\OCUser.dll
?????文件??????299008??2016-09-20?13:49??Example\bin_v3\Syntec.OpenCNC.dll
?????文件???????36864??2017-02-22?16:41??Example\bin_v3\Syntec.RemoteCNC.dll
?????文件???????53248??2017-02-22?16:41??Example\bin_v3\Syntec.RemoteObj.dll
?????文件????????5621??2017-02-22?14:39??Example\Release.txt
?????目錄???????????0??2017-02-22?16:42??Example\SyntecRemoteExample\
?????文件???????39314??2016-09-20?13:49??Example\SyntecRemoteExample\ExampleForm.cs
?????文件???????40727??2016-09-20?13:49??Example\SyntecRemoteExample\ExampleForm.Designer.cs
?????文件????????5814??2016-09-20?13:49??Example\SyntecRemoteExample\ExampleForm.resx
?????文件?????????494??2016-09-20?13:49??Example\SyntecRemoteExample\Program.cs
?????目錄???????????0??2017-02-22?16:42??Example\SyntecRemoteExample\Properties\
?????文件????????1284??2016-09-20?13:49??Example\SyntecRemoteExample\Properties\AssemblyInfo.cs
?????文件????????2871??2016-09-20?13:49??Example\SyntecRemoteExample\Properties\Resources.Designer.cs
?????文件????????5612??2016-09-20?13:49??Example\SyntecRemoteExample\Properties\Resources.resx
?????文件????????1103??2016-09-20?13:49??Example\SyntecRemoteExample\Properties\Settings.Designer.cs
?????文件?????????249??2016-09-20?13:49??Example\SyntecRemoteExample\Properties\Settings.settings
?????文件????????4385??2017-02-22?15:41??Example\SyntecRemoteExample\SyntecRemoteExample_KrnlAPI_116.24.csproj
?????文件?????????908??2016-09-20?13:49??Example\SyntecRemoteExample\SyntecRemoteExample_KrnlAPI_116.24.sln
?????文件??????776192??2017-02-22?14:33??Example\穝м夾非癸API砏.doc

評論

共有 條評論