SecsHsmsServerReadSecsMessage 方法 |
以同步应答的方式从设备读取数据,设备收到本消息后,必须回复一个相同消息号的消息
Read data from the device in a synchronous response manner. After the device receives this message, it must reply with a message of the same message number
命名空间:
HslCommunication.Secs
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.3.1.0 (12.3.1.0)
语法public OperateResult<SecsMessage> ReadSecsMessage(
PipeSession pipe,
byte stream,
byte function,
SecsValue data,
bool wBit,
int timeout = 5000
)
Public Function ReadSecsMessage (
pipe As PipeSession,
stream As Byte,
function As Byte,
data As SecsValue,
wBit As Boolean,
Optional timeout As Integer = 5000
) As OperateResult(Of SecsMessage)
public:
OperateResult<SecsMessage^>^ ReadSecsMessage(
PipeSession^ pipe,
unsigned char stream,
unsigned char function,
SecsValue^ data,
bool wBit,
int timeout = 5000
)
member ReadSecsMessage :
pipe : PipeSession *
stream : byte *
function : byte *
data : SecsValue *
wBit : bool *
?timeout : int
(* Defaults:
let _timeout = defaultArg timeout 5000
*)
-> OperateResult<SecsMessage>
参数
- pipe
- 类型:HslCommunication.Core.NetPipeSession
会话信息 - stream
- 类型:SystemByte
功能码S - function
- 类型:SystemByte
功能码F - data
- 类型:HslCommunication.Secs.TypesSecsValue
数据内容 - wBit
- 类型:SystemBoolean
是否返回 - timeout (Optional)
- 类型:SystemInt32
超时时间,单位毫秒
返回值
类型:
OperateResultSecsMessage读取结果信息
参见