点击或拖拽改变大小

MelsecFxSerialHelperWriteAsync 方法 (IReadWriteDevice, String, Boolean)

强制写入位数据的通断,支持的类型参考文档说明
The on-off of the forced write bit data, please refer to the document description for the supported types

命名空间:  HslCommunication.Profinet.Melsec.Helper
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static Task<OperateResult> WriteAsync(
	IReadWriteDevice plc,
	string address,
	bool value
)

参数

plc
类型:HslCommunication.CoreIReadWriteDevice
PLC通信对象
address
类型:SystemString
地址信息
value
类型:SystemBoolean
是否为通

返回值

类型:TaskOperateResult
是否写入成功的结果对象
参见