在工业的设备监控领域,S7协议使用比较普遍下面简单教大家使用 1、添加包 2、添加帮助类(读写数据就研究该类即可,具体的理论就不多说了) //plc中类型与c#类型 bool => Bit//Byte => byte//word => ushort//DWord => uint//Int => short//DInt => int//Real => float//LReal => double//String => string//DateTimeLong=>datetime//s7wstring=>string//ReadTimeout,WriteTimeout,分别为读取和写入等待时间/// <summary>/// plc帮助类/// </summary>public class PlcHelper{ /// <summary> /// 是否连接 /// </summary> /// <returns></returns> public bool IsConnected(Plc Plc) { if (Plc.IsConnected) { return true; }...
Write Timeout
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Write
Contact Write, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack