YRC1000TcpNetIOWriteAsync 方法 |
写入I/O信号状态,写入接点数请指定8的倍数。IO 信号的网络写入仅可是( #27010 ~ #29567)。
To write I/O signal status, please specify a multiple of 8 for the number of write contacts.
The network write of IO signal is only available (#27010 to #29567).
命名空间:
HslCommunication.Robot.YASKAWA
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult> IOWriteAsync(
int address,
bool[] value
)
Public Function IOWriteAsync (
address As Integer,
value As Boolean()
) As Task(Of OperateResult)
public:
Task<OperateResult^>^ IOWriteAsync(
int address,
array<bool>^ value
)
member IOWriteAsync :
address : int *
value : bool[] -> Task<OperateResult>
参数
- address
- 类型:SystemInt32
写入开始接点编号 - value
- 类型:SystemBoolean
写入的bool值,写入接点数请指定8的倍数。
返回值
类型:
TaskOperateResult是否写入成功
参见