点击或拖拽改变大小

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.0.0.0 (12.0.0.0)
语法
public static OperateResult<List<byte[]>> BuildReadCommand(
	OmronPlcType plcType,
	string address,
	ushort length,
	bool isBit,
	int splitLength = 500
)

参数

plcType
类型:HslCommunication.Profinet.OmronOmronPlcType
PLC的类型信息
address
类型:SystemString
地址,具体格式请参照示例说明
length
类型:SystemUInt16
读取的数据长度
isBit
类型:SystemBoolean
是否使用位读取
splitLength (Optional)
类型:SystemInt32
读取的长度切割,默认500

返回值

类型:OperateResultListByte
带有成功标识的Fins核心报文
参见