KeyenceNanoHelperBuildReadCommand 方法 (String, UInt16) |
建立读取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.1.2.0 (12.1.2.0)
语法 public static OperateResult<List<byte[]>> BuildReadCommand(
string address,
ushort length
)
Public Shared Function BuildReadCommand (
address As String,
length As UShort
) As OperateResult(Of List(Of Byte()))
public:
static OperateResult<List<array<unsigned char>^>^>^ BuildReadCommand(
String^ address,
unsigned short length
)
static member BuildReadCommand :
address : string *
length : uint16 -> OperateResult<List<byte[]>>
参数
- address
- 类型:SystemString
软元件地址 - length
- 类型:SystemUInt16
读取长度
返回值
类型:
OperateResultListByte是否建立成功
参见