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