基本信息
源码名称:翠欧控制器以太网连接
源码大小:0.07M
文件格式:.rar
开发语言:C#
更新时间:2022-02-28
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559

本次赞助数额为: 2 元 
   源码介绍
翠欧控制器以太网连接

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;

namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            axTrioPC1.HostAddress = "127.0.0.1";
            //打开以太网连接
            axTrioPC1.Open(2,0);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            //设置速度
           double d;
            axTrioPC1.SetVr(100,123.321);
            axTrioPC1.GetVr(101,out d);
            //点动
            axTrioPC1.MoveRel(1, 500, 0);
        }
    }
}

.
├── WindowsFormsApp1
│   ├── App.config
│   ├── Form1.Designer.cs
│   ├── Form1.cs
│   ├── Form1.resx
│   ├── Program.cs
│   ├── Properties
│   │   ├── AssemblyInfo.cs
│   │   ├── Resources.Designer.cs
│   │   ├── Resources.resx
│   │   ├── Settings.Designer.cs
│   │   └── Settings.settings
│   ├── WindowsFormsApp1.csproj
│   ├── WindowsFormsApp1.sln
│   ├── bin
│   │   └── Debug
│   │       ├── AxInterop.TrioPCLib.dll
│   │       ├── Interop.TrioPCLib.dll
│   │       ├── WindowsFormsApp1.exe
│   │       ├── WindowsFormsApp1.exe.config
│   │       └── WindowsFormsApp1.pdb
│   └── obj
│       └── Debug
│           ├── AxInterop.TrioPCLib.dll
│           ├── DesignTimeResolveAssemblyReferences.cache
│           ├── DesignTimeResolveAssemblyReferencesInput.cache
│           ├── Interop.TrioPCLib.dll
│           ├── TempPE
│           ├── WindowsFormsApp1.Form1.resources
│           ├── WindowsFormsApp1.Properties.Resources.resources
│           ├── WindowsFormsApp1.csproj.AssemblyReference.cache
│           ├── WindowsFormsApp1.csproj.CoreCompileInputs.cache
│           ├── WindowsFormsApp1.csproj.FileListAbsolute.txt
│           ├── WindowsFormsApp1.csproj.GenerateResource.cache
│           ├── WindowsFormsApp1.csproj.ResolveComReference.cache
│           ├── WindowsFormsApp1.csproj.SuggestedBindingRedirects.cache
│           ├── WindowsFormsApp1.exe
│           └── WindowsFormsApp1.pdb
└── 好例子网_WindowsFormsApp1.rar

7 directories, 32 files