public void WriteBit(DataType dataType, int db, int startByteAdr, int bitAdr, bool value);
public enum DataType
{
Counter = 28,
Timer = 29,
Input = 129,
Output = 130,
Memory = 131,
DataBlock = 132
}
1
2
3
4
5
6
7
8
9
10
public byte[] ReadBytes(DataType dataType, int db, int startByteAdr, int count);
1
public void WriteBytes(DataType dataType, int db, int startByteAdr, byte[] value);
1
(二)PLC设置


(三)C#程序
using S7.Net;
1