点击或拖拽改变大小

SiemensFetchWriteNetWrite 方法 (String, Byte)

向PLC中写入byte数据,返回是否写入成功
Writes byte data to the PLC and returns whether the write succeeded

命名空间:  HslCommunication.Profinet.Siemens
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public OperateResult Write(
	string address,
	byte value
)

参数

address
类型:SystemString
起始地址,格式为M100,I100,Q100,DB1.100 -> Starting address, formatted as M100,I100,Q100,DB1.100
value
类型:SystemByte
要写入的实际数据 -> The actual data to write

返回值

类型:OperateResult
是否写入成功的结果对象 -> Whether to write a successful result object
参见