点击或拖拽改变大小

MelsecFxLinksHelperBuildReadCommand 方法

创建一条读取的指令信息,需要指定一些参数

命名空间:  HslCommunication.Profinet.Melsec.Helper
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.9.1.0 (12.9.1.0)
语法
public static OperateResult<List<byte[]>> BuildReadCommand(
	IReadWriteFxLinks plc,
	byte station,
	string address,
	ushort length,
	bool isBool
)

参数

plc
类型:HslCommunication.Profinet.Melsec.HelperIReadWriteFxLinks
PLC通信的对象
station
类型:SystemByte
PLC的站号
address
类型:SystemString
地址信息
length
类型:SystemUInt16
数据长度
isBool
类型:SystemBoolean
是否位读取

返回值

类型:OperateResultListByte
是否成功的结果对象
参见