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

  • 大小: 1.71MB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發布日期: 2023-10-03
  • 語言: 其他
  • 標簽: 555??666??

資源簡介

新代API DLL函數庫 有C的例子 可以行開發上位機通訊軟件

資源截圖

代碼片段和文件信息

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

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????1306624??2017-02-22?14:33??新代API\bin_v4\MMICommon32.dll

?????文件?????151552??2014-12-16?19:26??新代API\bin_v4\nunit.framework.dll

?????文件??????98304??2017-02-22?14:33??新代API\bin_v4\OCAPI.dll

?????文件????1552384??2017-02-22?14:33??新代API\bin_v4\OCKrnl.dll

?????文件??????11776??2017-02-22?14:33??新代API\bin_v4\OCKrnlDrv.dll

?????文件?????552960??2017-02-22?14:33??新代API\bin_v4\OCUser.dll

?????文件?????393216??2017-02-22?14:33??新代API\bin_v4\Syntec.OpenCNC.dll

?????文件??????36864??2017-02-22?16:41??新代API\bin_v4\Syntec.RemoteCNC.dll

?????文件??????53248??2017-02-22?16:41??新代API\bin_v4\Syntec.RemoteObj.dll

?????文件??????50176??2019-05-30?20:12??新代API\bin_v4\SyntecRemoteAPIExample.exe

?????文件??????77312??2019-05-30?20:12??新代API\bin_v4\SyntecRemoteAPIExample.pdb

?????文件???????5621??2017-02-22?14:39??新代API\Release.txt

????..A..H.?????52224??2019-06-22?17:08??新代API\SyntecRemoteExample\.vs\SyntecRemoteExample_NewDipole\v16\.suo

????..A..H.?????22016??2019-06-21?10:28??新代API\SyntecRemoteExample\Backup\.vs\SyntecRemoteExample_NewDipole\v16\.suo

?????文件??????????0??2019-06-21?10:28??新代API\SyntecRemoteExample\Backup\.vs\SyntecRemoteExample_NewDipole\v16\Server\sqlite3\db.lock

?????文件?????565248??2019-06-21?10:29??新代API\SyntecRemoteExample\Backup\.vs\SyntecRemoteExample_NewDipole\v16\Server\sqlite3\storage.ide

?????文件??????39314??2016-09-20?13:49??新代API\SyntecRemoteExample\Backup\Backup\ExampleForm.cs

?????文件??????40727??2016-09-20?13:49??新代API\SyntecRemoteExample\Backup\Backup\ExampleForm.Designer.cs

?????文件???????5814??2016-09-20?13:49??新代API\SyntecRemoteExample\Backup\Backup\ExampleForm.resx

?????文件????????494??2016-09-20?13:49??新代API\SyntecRemoteExample\Backup\Backup\Program.cs

?????文件???????1284??2016-09-20?13:49??新代API\SyntecRemoteExample\Backup\Backup\Properties\AssemblyInfo.cs

?????文件???????2871??2016-09-20?13:49??新代API\SyntecRemoteExample\Backup\Backup\Properties\Resources.Designer.cs

?????文件???????5612??2016-09-20?13:49??新代API\SyntecRemoteExample\Backup\Backup\Properties\Resources.resx

?????文件???????1103??2016-09-20?13:49??新代API\SyntecRemoteExample\Backup\Backup\Properties\Settings.Designer.cs

?????文件????????249??2016-09-20?13:49??新代API\SyntecRemoteExample\Backup\Backup\Properties\Settings.settings

?????文件???????4478??2017-02-22?15:41??新代API\SyntecRemoteExample\Backup\Backup\SyntecRemoteExample_NewDipole.csproj

?????文件????????898??2016-09-20?13:49??新代API\SyntecRemoteExample\Backup\Backup\SyntecRemoteExample_NewDipole.sln

?????文件??????39314??2016-09-20?13:49??新代API\SyntecRemoteExample\Backup\ExampleForm.cs

?????文件??????40727??2016-09-20?13:49??新代API\SyntecRemoteExample\Backup\ExampleForm.Designer.cs

?????文件???????5814??2016-09-20?13:49??新代API\SyntecRemoteExample\Backup\ExampleForm.resx

............此處省略70個文件信息

評論

共有 條評論