点击或拖拽改变大小

OmronFinsNetHelperWrite 方法 (IOmronFins, 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 中) 版本:12.1.2.0 (12.1.2.0)
语法
public static OperateResult Write(
	IOmronFins omron,
	string address,
	bool[] values
)

参数

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

返回值

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