SecsHsmsSendByCommandAsync 方法 (Byte, Byte, SecsValue, Boolean) |
将数据发送到设备方去,只是单纯的发送数据过去,并不等待设备的数据返回,返回是否发送成功。
Sending data to the device side simply sends the data to the past, and does not wait for the data from the device to return, and returns whether the transmission is successful.
命名空间:
HslCommunication.Secs
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult> SendByCommandAsync(
byte stream,
byte function,
SecsValue data,
bool back
)
Public Function SendByCommandAsync (
stream As Byte,
function As Byte,
data As SecsValue,
back As Boolean
) As Task(Of OperateResult)
public:
Task<OperateResult^>^ SendByCommandAsync(
unsigned char stream,
unsigned char function,
SecsValue^ data,
bool back
)
member SendByCommandAsync :
stream : byte *
function : byte *
data : SecsValue *
back : bool -> Task<OperateResult>
参数
- stream
- 类型:SystemByte
功能码1 - function
- 类型:SystemByte
功能码2 - data
- 类型:HslCommunication.Secs.TypesSecsValue
Secs格式的对象信息 - back
- 类型:SystemBoolean
是否必须返回,此标记仅仅是secs报文的是否返回标记,不表示问答模式
返回值
类型:
TaskOperateResult是否发送成功的结果对象
参见