自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 将整数转成二进制 进行截取,进而转成Bool量

将整数转成二进制 进行截取,进而转成Bool量

2023-02-02 21:51:11 162

原创 C#与200Smart S7协议

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 S7.Net;using System.Threading;usi.

2022-05-02 20:13:42 1619

原创 ModBus——Tcp

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 System.Net.Sockets;using System.Net

2022-04-13 10:08:35 122

原创 C# 根据主机名称获得IP

一:C# 根据主机名称获得IP;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 System.Net;using S

2022-01-20 08:46:20 1986

原创 C# 连接数据库,做带有 注册功能的 登录窗口

**话不多说 直接上代码**1:窗口1的代码: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.Windo...

2021-12-13 17:58:27 818

原创 C#与200smart ModbusTcp 多字、位、单字 写入

1:PLC 程序:2:C# 程序: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 System.Net.Socke

2021-12-12 15:33:25 796

原创 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.Threading.Tasks;using System.Windows.Forms;using System.IO.Ports;using System.Thread

2021-12-11 21:47:15 756

原创 C# 与1200PLC走 232或者485 自由口通讯

1:PLC程序2:C# 程序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 System.IO.Ports;us

2021-12-11 21:28:07 1015

原创 C#与200smart 1200PLC同时走 Modbus Tcp

1:PLC程序2:C#程序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 System.Net;using S

2021-12-11 21:06:10 658

原创 C#与 1200PLC 走 Tcp通讯,1200做服务器,C#做客户端

1:PLC的地址是:192.168.1.1:2000;第一步:编辑PLC程序第二步:写C#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.

2021-12-08 14:02:05 2801

原创 C#与1200PLC 走Modbus Tcp通讯,

C# Modbus Tcp与1200PLC 通讯:1:建立Tcp连接2.循环接收PLC返回的数据3:上面图片是发送格式 0x97,0x79,0x00,0x00,0x00,0x06,0x04,是固定开头 0x03 功能码,0x00,0x00 表示起始地址,0x00,100 表示读取100个字,参考网址:https://www.cnblogs.com/ioufev/articles/10830028.html...

2021-12-08 13:37:12 2175

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除