McHelperReadSmartModuleAsync 方法 |
[商业授权] 读取智能模块的数据信息,需要指定模块地址,偏移地址,读取的字节长度
[Authorization] To read the extended data information, you need to enter the extended value information in addition to the original address and length information
命名空间:
HslCommunication.Profinet.Melsec.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<byte[]>> ReadSmartModuleAsync(
IReadWriteMc mc,
ushort module,
string address,
ushort length
)
Public Shared Function ReadSmartModuleAsync (
mc As IReadWriteMc,
module As UShort,
address As String,
length As UShort
) As Task(Of OperateResult(Of Byte()))
public:
static Task<OperateResult<array<unsigned char>^>^>^ ReadSmartModuleAsync(
IReadWriteMc^ mc,
unsigned short module,
String^ address,
unsigned short length
)
static member ReadSmartModuleAsync :
mc : IReadWriteMc *
module : uint16 *
address : string *
length : uint16 -> Task<OperateResult<byte[]>>
参数
- mc
- 类型:HslCommunication.Profinet.Melsec.HelperIReadWriteMc
MC通信对象 - module
- 类型:SystemUInt16
模块地址 - address
- 类型:SystemString
地址 - length
- 类型:SystemUInt16
数据长度
返回值
类型:
TaskOperateResultByte返回结果
参见