McBinaryHelperBuildReadSmartModule 方法 |
构建读取智能模块的命令,需要指定模块编号,起始地址,读取的长度,注意,该长度以字节为单位。
命名空间:
HslCommunication.Profinet.Melsec.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildReadSmartModule(
ushort module,
string address,
ushort length
)
Public Shared Function BuildReadSmartModule (
module As UShort,
address As String,
length As UShort
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildReadSmartModule(
unsigned short module,
String^ address,
unsigned short length
)
static member BuildReadSmartModule :
module : uint16 *
address : string *
length : uint16 -> OperateResult<byte[]>
参数
- module
- 类型:SystemUInt16
模块编号 - address
- 类型:SystemString
智能模块的起始地址 - length
- 类型:SystemUInt16
读取的字长度
返回值
类型:
OperateResultByte报文的结果内容
参见