资源简介

基于C#的三菱机床实时数据采集可运行demo源码及.exe打包(VS2017打开项目)

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using EZNCAUTLib;

namespace Mitsubishi_Communication {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();
            IPTextBox.Text = “172.18.0.2“;
            PortTextBox.Text = “683“;
            TimeTextBox.Text = “100“;
        }

        private void button1_Click(object sender EventArgs e) {
            string ipAddress = IPTextBox.Text;
            int port = Convert.ToInt32(PortTextBox.Text);
            int timeOut = Convert.ToInt32(TimeTextBox.Text);
            DispEZNcCommunication oEZNcCom = null;
            oEZNcCom = new DispEZNcCommunication();
            long lRet = 0;
            lRet = oEZNcCom.SetTCPIPProtocol(ipAddress port);
            if (lRet == 0) {
                lRet = oEZNcCom.Open2(6 1 timeOut “EZNC_LOCALHOST“);
                if (lRet == 0) {
                    Console.WriteLine(“连接成功“);
                    int time = 0;
                    oEZNcCom.Time_GetAliveTime(out time);
                    Console.WriteLine(time.ToString());
                    oEZNcCom.Close();
                } else {
                    Console.WriteLine(“连接失败“);
                }
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     82432  2018-10-11 11:09  Mitsubishi_Communication\.vs\Mitsubishi_Communication\v15\.suo

     文件          0  2018-09-04 17:26  Mitsubishi_Communication\.vs\Mitsubishi_Communication\v15\Server\sqlite3\db.lock

     文件    2240512  2018-10-09 13:59  Mitsubishi_Communication\.vs\Mitsubishi_Communication\v15\Server\sqlite3\storage.ide

     文件        186  2018-09-05 15:22  Mitsubishi_Communication\Mitsubishi_Communication\App.config

     文件      11264  2018-10-08 15:52  Mitsubishi_Communication\Mitsubishi_Communication\bin\Debug\Mitsubishi_Communication.exe

     文件        186  2018-09-05 15:22  Mitsubishi_Communication\Mitsubishi_Communication\bin\Debug\Mitsubishi_Communication.exe.config

     文件      19968  2018-10-08 15:52  Mitsubishi_Communication\Mitsubishi_Communication\bin\Debug\Mitsubishi_Communication.pdb

     文件      10752  2018-09-05 15:14  Mitsubishi_Communication\Mitsubishi_Communication\bin\Release\Mitsubishi_Communication.exe

     文件        184  2018-09-05 15:14  Mitsubishi_Communication\Mitsubishi_Communication\bin\Release\Mitsubishi_Communication.exe.config

     文件      19968  2018-09-05 15:14  Mitsubishi_Communication\Mitsubishi_Communication\bin\Release\Mitsubishi_Communication.pdb

     文件     163840  2014-12-15 09:18  Mitsubishi_Communication\Mitsubishi_Communication\EZNcAut310.dll

     文件       1475  2018-10-08 15:52  Mitsubishi_Communication\Mitsubishi_Communication\Form1.cs

     文件       5020  2018-09-05 14:05  Mitsubishi_Communication\Mitsubishi_Communication\Form1.Designer.cs

     文件       5817  2018-09-05 14:05  Mitsubishi_Communication\Mitsubishi_Communication\Form1.resx

     文件       5054  2018-09-05 15:22  Mitsubishi_Communication\Mitsubishi_Communication\Mitsubishi_Communication.csproj

     文件        479  2018-09-05 15:22  Mitsubishi_Communication\Mitsubishi_Communication\Mitsubishi_Communication.csproj.user

     文件        868  2018-09-05 15:22  Mitsubishi_Communication\Mitsubishi_Communication\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7354  2018-09-05 15:22  Mitsubishi_Communication\Mitsubishi_Communication\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件      36864  2018-09-05 15:23  Mitsubishi_Communication\Mitsubishi_Communication\obj\Debug\Interop.EZNCAUTLib.dll

     文件         42  2018-09-05 15:23  Mitsubishi_Communication\Mitsubishi_Communication\obj\Debug\Mitsubishi_Communication.csproj.CoreCompileInputs.cache

     文件       1403  2018-09-05 15:23  Mitsubishi_Communication\Mitsubishi_Communication\obj\Debug\Mitsubishi_Communication.csproj.FileListAbsolute.txt

     文件       1012  2018-09-05 15:23  Mitsubishi_Communication\Mitsubishi_Communication\obj\Debug\Mitsubishi_Communication.csproj.GenerateResource.Cache

     文件        802  2018-09-05 15:23  Mitsubishi_Communication\Mitsubishi_Communication\obj\Debug\Mitsubishi_Communication.csproj.ResolveComReference.cache

     文件       2384  2018-09-05 15:23  Mitsubishi_Communication\Mitsubishi_Communication\obj\Debug\Mitsubishi_Communication.csprojResolveAssemblyReference.cache

     文件      11264  2018-10-08 15:52  Mitsubishi_Communication\Mitsubishi_Communication\obj\Debug\Mitsubishi_Communication.exe

     文件        180  2018-09-05 15:23  Mitsubishi_Communication\Mitsubishi_Communication\obj\Debug\Mitsubishi_Communication.Form1.resources

     文件      19968  2018-10-08 15:52  Mitsubishi_Communication\Mitsubishi_Communication\obj\Debug\Mitsubishi_Communication.pdb

     文件        180  2018-09-05 15:23  Mitsubishi_Communication\Mitsubishi_Communication\obj\Debug\Mitsubishi_Communication.Properties.Resources.resources

     文件          0  2018-09-04 17:26  Mitsubishi_Communication\Mitsubishi_Communication\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2018-09-04 17:26  Mitsubishi_Communication\Mitsubishi_Communication\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

............此处省略49个文件信息

评论

共有 条评论