• 大小: 0.07M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 串口  

资源简介

使用基于串口的MODBUS通信RTU模式

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO.Ports;
using System.Threading;
using System.IO;

namespace Demo
{
    public partial class myForm : Form
    {

        private string btn_sender = ““;
        private const int read_num = 99;
        private const int read_num2 = 60;

        private Boolean received = false;

        public myForm()
        {
            InitializeComponent();
        }

        private void myForm_Load(object sender EventArgs e)
        {
            comboBoxPortName.SelectedIndex = 0;
            comboBoxBaudRate.SelectedIndex = 6;
            comboBoxParity.SelectedIndex =

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

     文件      36352  2012-10-10 15:41  C#串口Modbus\Demo\bin\Debug\Demo.exe

     文件      60928  2012-10-10 15:41  C#串口Modbus\Demo\bin\Debug\Demo.pdb

     文件      14328  2015-11-30 21:15  C#串口Modbus\Demo\bin\Debug\Demo.vshost.exe

     文件        490  2007-07-21 01:33  C#串口Modbus\Demo\bin\Debug\Demo.vshost.exe.manifest

     文件       3754  2012-10-07 08:31  C#串口Modbus\Demo\Demo.csproj

     文件      39159  2012-10-10 15:41  C#串口Modbus\Demo\Form1.cs

     文件      55435  2012-10-10 15:10  C#串口Modbus\Demo\Form1.Designer.cs

     文件       6382  2012-10-10 15:10  C#串口Modbus\Demo\Form1.resx

     文件       2672  2015-11-30 21:15  C#串口Modbus\Demo\obj\Debug\Demo.csproj.FileListAbsolute.txt

     文件        847  2012-10-10 15:37  C#串口Modbus\Demo\obj\Debug\Demo.csproj.GenerateResource.Cache

     文件      36352  2012-10-10 15:41  C#串口Modbus\Demo\obj\Debug\Demo.exe

     文件        180  2012-10-10 15:37  C#串口Modbus\Demo\obj\Debug\Demo.myForm.resources

     文件      60928  2012-10-10 15:41  C#串口Modbus\Demo\obj\Debug\Demo.pdb

     文件        180  2012-10-07 08:31  C#串口Modbus\Demo\obj\Debug\Demo.Properties.Resources.resources

     文件        486  2010-09-25 13:17  C#串口Modbus\Demo\Program.cs

     文件       1364  2010-09-25 13:03  C#串口Modbus\Demo\Properties\AssemblyInfo.cs

     文件       2858  2010-09-25 13:03  C#串口Modbus\Demo\Properties\Resources.Designer.cs

     文件       5612  2010-09-25 13:03  C#串口Modbus\Demo\Properties\Resources.resx

     文件       1089  2010-09-25 13:03  C#串口Modbus\Demo\Properties\Settings.Designer.cs

     文件        249  2010-09-25 13:03  C#串口Modbus\Demo\Properties\Settings.settings

     文件        902  2010-09-25 13:03  C#串口Modbus\Demo.sln

    ..A..H.     25600  2015-11-30 21:15  C#串口Modbus\Demo.suo

     目录          0  2010-09-25 13:17  C#串口Modbus\Demo\obj\Debug\Refactor

     目录          0  2010-09-25 13:03  C#串口Modbus\Demo\obj\Debug\TempPE

     目录          0  2010-09-25 13:03  C#串口Modbus\Demo\bin\Debug

     目录          0  2012-10-10 15:41  C#串口Modbus\Demo\obj\Debug

     目录          0  2010-09-25 13:03  C#串口Modbus\Demo\bin

     目录          0  2010-09-25 13:03  C#串口Modbus\Demo\obj

     目录          0  2010-09-25 13:03  C#串口Modbus\Demo\Properties

     目录          0  2012-10-10 15:41  C#串口Modbus\Demo

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

评论

共有 条评论