点击或拖拽改变大小

ModbusTcpNetWrite 方法 (String, Boolean)

向线圈中写入bool数组,返回是否写入成功,如果富文本地址不指定,默认使用的功能码是 0x0F
Write the bool array to the coil, and return whether the writing is successful. If the rich text address is not specified, the default function code is 0x0F.

命名空间:  HslCommunication.ModBus
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public override OperateResult Write(
	string address,
	bool[] values
)

参数

address
类型:SystemString
要写入的数据地址,比如"1234"
values
类型:SystemBoolean
要写入的实际数组

返回值

类型:OperateResult
返回写入结果

实现

IReadWriteNetWrite(String, Boolean)
IReadWriteNetWrite(String, Boolean)
参见