SecsHsmsReadSecsMessageAsync 方法 (Byte, Byte, SecsValue, Boolean) |
根据指定的功能码将数据报文发送给设备,并且等待从SECS设备返回Secs消息,本访问机制是问答模式的。
Send the data message to the device according to the specified function code, and wait for the Secs message to be returned from the SECS device. This access mechanism is in question-and-answer mode.
命名空间:
HslCommunication.Secs
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult<SecsMessage>> ReadSecsMessageAsync(
byte stream,
byte function,
SecsValue data,
bool back
)
Public Function ReadSecsMessageAsync (
stream As Byte,
function As Byte,
data As SecsValue,
back As Boolean
) As Task(Of OperateResult(Of SecsMessage))
public:
Task<OperateResult<SecsMessage^>^>^ ReadSecsMessageAsync(
unsigned char stream,
unsigned char function,
SecsValue^ data,
bool back
)
member ReadSecsMessageAsync :
stream : byte *
function : byte *
data : SecsValue *
back : bool -> Task<OperateResult<SecsMessage>>
参数
- stream
- 类型:SystemByte
功能码1 - function
- 类型:SystemByte
功能码2 - data
- 类型:HslCommunication.Secs.TypesSecsValue
Secs格式的对象信息 - back
- 类型:SystemBoolean
是否必须返回,此标记仅仅是secs报文的是否返回标记,不表示问答模式
返回值
类型:
TaskOperateResultSecsMessage返回SECS消息结果对象
参见