KeyenceNanoHelperBuildWriteExpansionMemoryCommand 方法 |
构建写入扩展单元缓冲寄存器的报文命令,需要传入单元编号,地址,写入的数据,实际写入的数据格式才有无符号的方式
To construct a message command to write to the buffer register of the expansion unit, the unit number, address,
and data to be written need to be passed in, and the format of the actually written data is unsigned.
命名空间:
HslCommunication.Profinet.Keyence
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildWriteExpansionMemoryCommand(
byte unit,
ushort address,
byte[] value
)
Public Shared Function BuildWriteExpansionMemoryCommand (
unit As Byte,
address As UShort,
value As Byte()
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildWriteExpansionMemoryCommand(
unsigned char unit,
unsigned short address,
array<unsigned char>^ value
)
static member BuildWriteExpansionMemoryCommand :
unit : byte *
address : uint16 *
value : byte[] -> OperateResult<byte[]>
参数
- unit
- 类型:SystemByte
单元编号0~48 - address
- 类型:SystemUInt16
地址0~32767 - value
- 类型:SystemByte
写入的数据信息,单次交互最大256个字
返回值
类型:
OperateResultByte包含是否成功的报文对象
参见