FanucInterfaceNetWriteAsync 方法 (String, Boolean) |
批量写入Boolean数组数据,返回是否写入成功,需要指定起始地址,地址示例:M1,I1,Q1,共计3个区的数据,注意地址的起始为1
Write Boolean array data in batches. If the write success is returned, you need to specify the starting address. Example address: M1, I1, Q1, a total of 3 areas of data. Note that the starting address is 1.
命名空间:
HslCommunication.Robot.FANUC
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public override Task<OperateResult> WriteAsync(
string address,
bool[] value
)
Public Overrides Function WriteAsync (
address As String,
value As Boolean()
) As Task(Of OperateResult)
public:
virtual Task<OperateResult^>^ WriteAsync(
String^ address,
array<bool>^ value
) override
abstract WriteAsync :
address : string *
value : bool[] -> Task<OperateResult>
override WriteAsync :
address : string *
value : bool[] -> Task<OperateResult>
参数
- address
- 类型:SystemString
起始地址,地址示例:M1,I1,Q1,共计3个区的数据,注意地址的起始为1 - value
- 类型:SystemBoolean
等待写入的数据值
返回值
类型:
TaskOperateResult是否写入成功
实现
IReadWriteNetWriteAsync(String, Boolean)IReadWriteNetWriteAsync(String, Boolean)备注
地址也支持直接使用 SDO100, SDI100, RDI100, RDO100, UI100, UO100, SI100, SO100
参见