KeyenceNanoHelperReadExpansionMemory 方法 |
[商业授权] 从扩展单元缓冲存储器连续读取指定个数的数据,单位为字
[Authorization] Continuously read the specified number of data from the expansion unit buffer memory, the unit is word
命名空间:
HslCommunication.Profinet.Keyence
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> ReadExpansionMemory(
IReadWriteDevice keyence,
byte unit,
ushort address,
ushort length
)
Public Shared Function ReadExpansionMemory (
keyence As IReadWriteDevice,
unit As Byte,
address As UShort,
length As UShort
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ ReadExpansionMemory(
IReadWriteDevice^ keyence,
unsigned char unit,
unsigned short address,
unsigned short length
)
static member ReadExpansionMemory :
keyence : IReadWriteDevice *
unit : byte *
address : uint16 *
length : uint16 -> OperateResult<byte[]>
参数
- keyence
- 类型:HslCommunication.CoreIReadWriteDevice
PLC的通信对象 - unit
- 类型:SystemByte
单元编号 - address
- 类型:SystemUInt16
偏移地址 - length
- 类型:SystemUInt16
读取的长度,单位为字
返回值
类型:
OperateResultByte包含是否成功的原始字节数组
参见