登录
首页 » 通信 » 把串口读写重定向到tcp

把串口读写重定向到tcp

于 2022-04-14 发布 文件大小:12.39 kB
0 99
下载积分: 2 下载次数: 1

代码说明:

把串口读写重定向到tcp-put serial reader redirected to tcp

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

发表评论

0 个回复

  • c# plc modibus
    c# 串口 以太网通信 modibus  连接 plc  从文本框输入负数 -2 补码=反+1=进位+原数 Vb 清除输入缓冲区 输出缓冲区 c#用不用清除??哪个函数?? //發送二進制數據 ?????????????? private void SendBytesData(SerialPort serialPort) { ////从 文本框取得数据 如果负数 -2 怎么办???? byte[] bytesSend = Encoding.Default.GetBytes(txtSend.Text); spcom.Write(bytesSend, 0, bytesSend.Length); } 通过MODBUS TCP读写PLC源码 功能模块一:读写PLC主模块 using System; using System.Net; using System.Net.Sockets; public static void WriteWord(int mwAddress,int mwValue) {写字到以太网 if (init_plc() == 0) { try { hi = mwAddress / 256; low = mwAddress - hi * 256; hi1 = mwValue / 256; ///////////16bit low1 = mwValue - hi * 256; sendBuf[7] = 6; sendBuf[8] = (byte)hi; sendBuf[9] = (byte)low; sendBuf[10]
    2022-07-10 15:42:30下载
    积分:1
  • 这是软输入软输出程序可以使用。MATLAB是similati…
    This is sofe input and soft output programme you can use. Matlab is the similation tool.
    2022-02-07 16:56:31下载
    积分:1
  • Modbus串口程序
    一个简单而全面的基于Modbus协议的范例程序,具有打开串口、发送数据、接受数据和CRT校验和检查数据,该项目中封装了Modbus类和SerialPort类,可以直接将这两个类导入工程中使用,通过调用Modbus类的接口来收发数据。。。谢谢大家支持!
    2022-03-21 04:20:58下载
    积分:1
  • MATLAB绘圆柱波导二维、三维模场分布和动态演示
        压缩包有六个文件,分别是绘制圆波导TE波和TM波各模式的横截面场分布、三维静态场分布、三维动态演示。能够绘制的模式有TE波或TM波01-23共2*9种。除截面场分布文件是运行程序后自动生成9种模式分布图外,其余文件是运行后根据提示输入参数(如绘TE11就找到对应的文件,由提示输入1,1即可),参数是模式下标。圆波导模多存在极化兼并,图中可以看出,但是只绘制了余弦情况下对应的场分布(正弦只是旋转了90度)。压缩包里有程序运行的部分结果。时间仓促,结果没来得及仔细核对,有错误希望指出。
    2022-08-15 19:32:35下载
    积分:1
  • 聊天室 全方位的WEB开发学习应用交流共享服务 ASP技术 .NET技术...
    聊天室 全方位的WEB开发学习应用交流共享服务 ASP技术 .NET技术-chat rooms comprehensive Web application development learning-sharing services ASP technology.NET Technology
    2022-10-24 03:45:04下载
    积分:1
  • 本程序包括一组子程序和中断程序,过S7
    本程序包括一组子程序和中断程序,通过S7-200自由端口功能来产生从Modbus RTU. 它支持下列Modbus功能:----1.读输出(线圈)----2.读输入(触点)----3.读保持寄存器(V 存储器).----4.读输入寄存器----5.写单路输出----6.写单路保持寄存器----15.写多路输出----16.写多路保持寄存器-this includes a subroutine and the interruption procedure for the adoption of the S7-200 free port functions to generate from the Modbus RTU. It supports the following functions : a Modbus. Reading output (2) coil. Reading input (contact)---- 3. Reading maintain registers (V memory ).---- 4. Reading input register---- 5. write single-output---- 6. write to maintain the single-route Register---- 15. write multiple output---- 16. write multiple maintain registers
    2022-09-13 08:20:03下载
    积分:1
  • 这是经过改进后的加法器源代码,改进后运算速度更快
    这是经过改进后的加法器源代码,改进后运算速度更快-This is the result of the improved adder source code, improved faster
    2022-06-28 14:36:44下载
    积分:1
  • 过该网络系统的概述
    an overview of GSM network system by aircom
    2022-12-09 00:40:04下载
    积分:1
  • nodejs C++扩展
    把公司用的 通信库 移植到 nodejs下使用全套代码 包括 全部代码 通信库代码 不包含静态库
    2022-06-26 19:47:05下载
    积分:1
  • 该tcl文件包含的代码是在ns2下用于仿真视频数据流的
    该tcl文件包含的代码是在ns2下用于仿真视频数据流的-this tcl file inclde the code which can simulate a video data flow
    2022-05-20 23:28:30下载
    积分:1
  • 696518资源总数
  • 105540会员总数
  • 37今日下载