A very popular industrial Internet of Things communication plug-in. Using this dll can be very convenient, stable, and fast to obtain data from PLC equipment of multiple brands, and also supports redis, mqtt, websocket, etc., which can let your data on the network Free transmission, reducing enterprise development costs.
var result = await siemensTcpNet.ReadAsync(addressArray, lenArray);
var byteArray = result.Content;
case "BOOL":
result = siemensS7Net.ByteTransform.TransBool(byteArray, startIndex);
break;
逐条采集代码
批量采集代码
用两种方式采集的数据,核对发现一次性采集BOOL类型的值解析有误。