KeyenceNanoHelperBuildReadCommand 方法 (KeyenceNanoAddress, UInt16, Boolean) |
建立读取PLC数据的指令,需要传入地址数据,以及读取的长度,地址示例参照类的说明文档
To create a command to read PLC data, you need to pass in the address data, and the length of the read. For an example of the address, refer to the class documentation
命名空间:
HslCommunication.Profinet.Keyence
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.2.0.0 (12.2.0.0)
语法 public static OperateResult<List<byte[]>> BuildReadCommand(
KeyenceNanoAddress address,
ushort length,
bool isBit
)
Public Shared Function BuildReadCommand (
address As KeyenceNanoAddress,
length As UShort,
isBit As Boolean
) As OperateResult(Of List(Of Byte()))
public:
static OperateResult<List<array<unsigned char>^>^>^ BuildReadCommand(
KeyenceNanoAddress^ address,
unsigned short length,
bool isBit
)
static member BuildReadCommand :
address : KeyenceNanoAddress *
length : uint16 *
isBit : bool -> OperateResult<List<byte[]>>
参数
- address
- 类型:HslCommunication.Core.AddressKeyenceNanoAddress
软元件地址 - length
- 类型:SystemUInt16
读取长度 - isBit
- 类型:SystemBoolean
[缺少 "M:HslCommunication.Profinet.Keyence.KeyenceNanoHelper.BuildReadCommand(HslCommunication.Core.Address.KeyenceNanoAddress,System.UInt16,System.Boolean)" 的 <param name="isBit"/> 文档]
返回值
类型:
OperateResultListByte是否建立成功
参见