点击或拖拽改变大小

IReadWriteDeviceReadFromCoreServerAsync 方法 (Byte)

将当前的数据报文发送到设备去,具体使用什么通信方式取决于设备信息,然后从设备接收数据回来,并返回给调用者。
Send the current data message to the device, the specific communication method used depends on the device information, and then receive the data back from the device and return it to the caller.

命名空间:  HslCommunication.Core
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
Task<OperateResult<byte[]>> ReadFromCoreServerAsync(
	byte[] send
)

参数

send
类型:SystemByte
发送的完整的报文信息

返回值

类型:TaskOperateResultByte
接收的完整的报文信息
备注
本方法用于实现本组件还未实现的一些报文功能,例如有些modbus服务器会有一些特殊的功能码支持,需要收发特殊的报文,详细请看示例
参见