点击或拖拽改变大小

OmronFinsNetHelperWriteAsync 方法 (IReadWriteDevice, String, Boolean)

向PLC中位软元件写入bool数组,返回是否写入成功,比如你写入D100,values[0]对应D100.0,地址格式为"D100.0","C100.0","W100.0","H100.0","A100.0"
Write the bool array to the PLC's median device and return whether the write was successful. For example, if you write D100, values [0] corresponds to D100.0 and the address format is "D100.0", "C100.0", "W100. 0 "," H100.0 "," A100.0 "

命名空间:  HslCommunication.Profinet.Omron
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public static Task<OperateResult> WriteAsync(
	IReadWriteDevice omron,
	string address,
	bool[] values
)

参数

omron
类型:HslCommunication.CoreIReadWriteDevice
PLC设备的连接对象
address
类型:SystemString
要写入的数据地址
values
类型:SystemBoolean
要写入的实际数据,可以指定任意的长度

返回值

类型:TaskOperateResult
返回写入结果
参见