点击或拖拽改变大小

ModbusTcpServerReadDiscrete 方法 (String, UInt16)

批量读取地址的离散线圈的通断情况

命名空间:  HslCommunication.ModBus
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public bool[] ReadDiscrete(
	string address,
	ushort length
)

参数

address
类型:SystemString
起始地址,示例:"100"
length
类型:SystemUInt16
读取长度

返回值

类型:Boolean
True或是False
异常
异常条件
IndexOutOfRangeException
参见