[商业授权] 读取缓冲寄存器的数据信息,地址直接为偏移地址
[Authorization] Read the data information of the buffer register, the address is directly the offset address
命名空间:
HslCommunication.Profinet.Melsec.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> ReadMemory(
IReadWriteMc mc,
string address,
ushort length
)
Public Shared Function ReadMemory (
mc As IReadWriteMc,
address As String,
length As UShort
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ ReadMemory(
IReadWriteMc^ mc,
String^ address,
unsigned short length
)
static member ReadMemory :
mc : IReadWriteMc *
address : string *
length : uint16 -> OperateResult<byte[]>
参数
- mc
- 类型:HslCommunication.Profinet.Melsec.HelperIReadWriteMc
MC通信对象 - address
- 类型:SystemString
偏移地址 - length
- 类型:SystemUInt16
读取长度
返回值
类型:
OperateResultByte读取的内容
备注
本指令不可以访问下述缓冲存储器:
1. 本站(SLMP对应设备)上安装的智能功能模块
2. 其它站缓冲存储器
参见