登录
首页 » Windows开发 » Modbus TCP VB.net

Modbus TCP VB.net

于 2023-01-14 发布 文件大小:29.06 kB
0 180
下载积分: 2 下载次数: 1

代码说明:

这是用于阅读和写作 Modbus TCP 寄存器 VB.net 项目。开始是我找示例程序 VB.net 的 Modbus TCP 的通信。然后我一个样例项目在 CodeProject.com,在这里找到:http://www.codeproject.com/Tips/16260/Modbus-TCP-class这是用 C# 语言,由 Stephan 史翠克的 Modbus TCP 通信 VB.net 项目。原始项目包含 2 个项目。我打开所有这一切,与上述网站转换。提出了用 VB 语言的新项目。我选择.Net 2.0 框架。这个新的项目名为 Modbus 样品 vb。在我的新项目,我只是创建一个项目,是由一种形式、 一个模块组成。我将 Modbus TCP 类移至模块 ModbusTCP,和我在 frmStart 中复制所有的 objek 和 frmStart 将它粘贴在我的新项目。它令人惊叹,翻译的剧本是几乎是完美的只有几行错误。下面图片显示错误行在 ModuleTCP 事件 OnReceive,对代码 ElseIf......我不知道还如何修复这条线,所以我将该行更改为唯一 Else。我的新项目完成后,建立了用 VB 语言编写的 Modbus TCP 客户端。我尝试连接到本地 IP 127.0.0.1,Modbus 模拟器和成功,它可以读取和写入寄存器。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 样本类实现读/写registrity。
    Sample class to implement read/write registrity. Represents values as array: MyIntVar := MyReg.IntVal[ Value 1 ] MyStrVar := MyReg.StrVal[ Value 2 ] -Sample class to implement read/write registrity. Represents values as array: MyIntVar := MyReg.IntVal[ Value 1 ] MyStrVar := MyReg.StrVal[ Value 2 ]
    2022-03-05 02:58:14下载
    积分:1
  • C语言工程的学生一本书。
    a book on c language for engineering students.. engineering students can find this book very useful
    2022-03-22 17:51:15下载
    积分:1
  • D3D9黑屏优化-vs2010源码
    可以用来优化游戏的CPU占用率,D3D9黑屏优化插件
    2022-05-26 11:14:16下载
    积分:1
  • Material features, including the content for the coal used in program developmen...
    料的功能、包含内容为煤矿用的程序开发,用使用文件说明-Material features, including the content for the coal used in program development, with the use of documented
    2022-10-17 01:25:03下载
    积分:1
  • 编程技巧(多媒体与系统篇)
    编程技巧(多媒体与系统篇)-programming skills (multimedia system with Part 1)
    2022-09-27 10:40:02下载
    积分:1
  • 扩频解扩和小m序列
    本文件夹中包括四个.m文件分别是扩频调制,解扩和小m序列的产生程序,最后在MSK系统中调用前3个子程序,以观测DS-MSK系统的误比特性能。
    2022-12-11 14:35:03下载
    积分:1
  • 用C语言编写的一个文本界面,可以实现十进制、二进制、八进制、十六进制的转化。...
    用C语言编写的一个文本界面,可以实现十进制、二进制、八进制、十六进制的转化。-c code,can translate decimal,binary,octal and hex
    2023-05-17 09:20:03下载
    积分:1
  • 最长公共子序列算法的实现,还有实验报告,欢迎大家下载
    最长公共子序列算法的实现,还有实验报告,欢迎大家下载-The longest common sub-sequence algorithm, as well as experimental reports, welcomed everyone to download
    2022-01-24 18:41:16下载
    积分:1
  • 窗口网络编程源码
    windows 网络编程 的源代码,原书的配套cd附带的代码,包含了书中的大部分例程-windows network programming source code
    2022-08-22 14:24:45下载
    积分:1
  • 医院管理系统:
    Rational rose医院管理系统: -hospital.mdl -hospital.wsp -生成代码.rar: ----hospital.opt ----hospital.ncb ----hospital.dsw ----hospital.dsp ----CPatient.h ----CPatient.cpp ----CLeechdom.h ----CLeechdom.cpp ----CHospital.h ----CHospital.cpp ----CDrugstore.h ----CDrugstore.cpp ----CDoctor.h ----CDoctor.cpp ----CCasehistory.h ----CCasehistory.cpp ----Restore.1 ----Debug-hospital management system :- hospital.mdl- hospital.wsp-generated code. rar :---- hospital. opt-hospital. ncb- hosp ital.dsw---- hospital. dsp- CPatient. h---- CPatient. cpp- CLeechdom. h-CLeechd om.cpp---- CHospital. h-CHospital. cpp---- CDrugstore. h-CDrugstore. cpp- CDoc tor.h---- CDoctor. cpp- CCasehistory. h---- CCasehistory. cpp Restore .1-------- Debug
    2022-09-19 09:50:02下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载