点击或拖拽改变大小

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
)

参数

pipe
类型:HslCommunication.Core.NetPipeSession
会话信息
stream
类型:SystemByte
功能码S
function
类型:SystemByte
功能码F
data
类型:HslCommunication.Secs.TypesSecsValue
数据内容
wBit
类型:SystemBoolean
是否返回
timeout (Optional)
类型:SystemInt32
超时时间,单位毫秒

返回值

类型:OperateResultSecsMessage
读取结果信息
参见