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.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult> WriteAsync(
IReadWriteDevice plc,
string address,
bool value
)
Public Shared Function WriteAsync (
plc As IReadWriteDevice,
address As String,
value As Boolean
) As Task(Of OperateResult)
public:
static Task<OperateResult^>^ WriteAsync(
IReadWriteDevice^ plc,
String^ address,
bool value
)
static member WriteAsync :
plc : IReadWriteDevice *
address : string *
value : bool -> Task<OperateResult>
参数
- plc
- 类型:HslCommunication.CoreIReadWriteDevice
PLC通信对象 - address
- 类型:SystemString
地址信息 - value
- 类型:SystemBoolean
是否为通
返回值
类型:
TaskOperateResult是否写入成功的结果对象
参见