OmronFinsNetHelperBuildReadCommand 方法 (OmronPlcType, String, UInt16, Boolean, Int32) |
根据读取的地址,长度,是否位读取创建Fins协议的核心报文
According to the read address, length, whether to read the core message that creates the Fins protocol
命名空间:
HslCommunication.Profinet.Omron
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<List<byte[]>> BuildReadCommand(
OmronPlcType plcType,
string address,
ushort length,
bool isBit,
int splitLength = 500
)
Public Shared Function BuildReadCommand (
plcType As OmronPlcType,
address As String,
length As UShort,
isBit As Boolean,
Optional splitLength As Integer = 500
) As OperateResult(Of List(Of Byte()))
public:
static OperateResult<List<array<unsigned char>^>^>^ BuildReadCommand(
OmronPlcType plcType,
String^ address,
unsigned short length,
bool isBit,
int splitLength = 500
)
static member BuildReadCommand :
plcType : OmronPlcType *
address : string *
length : uint16 *
isBit : bool *
?splitLength : int
(* Defaults:
let _splitLength = defaultArg splitLength 500
*)
-> OperateResult<List<byte[]>>
参数
- plcType
- 类型:HslCommunication.Profinet.OmronOmronPlcType
PLC的类型信息 - address
- 类型:SystemString
地址,具体格式请参照示例说明 - length
- 类型:SystemUInt16
读取的数据长度 - isBit
- 类型:SystemBoolean
是否使用位读取 - splitLength (Optional)
- 类型:SystemInt32
读取的长度切割,默认500
返回值
类型:
OperateResultListByte带有成功标识的Fins核心报文
参见