BeckhoffAdsNetWriteAdsStateAsync 方法 |
写入Ads的状态,可以携带数据信息,数据可以为空
Write the status of Ads, can carry data information, and the data can be empty
命名空间:
HslCommunication.Profinet.Beckhoff
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult> WriteAdsStateAsync(
short state,
short deviceState,
byte[] data
)
Public Function WriteAdsStateAsync (
state As Short,
deviceState As Short,
data As Byte()
) As Task(Of OperateResult)
public:
Task<OperateResult^>^ WriteAdsStateAsync(
short state,
short deviceState,
array<unsigned char>^ data
)
member WriteAdsStateAsync :
state : int16 *
deviceState : int16 *
data : byte[] -> Task<OperateResult>
参数
- state
- 类型:SystemInt16
ads state - deviceState
- 类型:SystemInt16
device state - data
- 类型:SystemByte
数据信息
返回值
类型:
TaskOperateResult是否写入成功
参见