ModbusTcpServerReadCoil 方法 (String, UInt16) |
批量读取地址的线圈的通断情况
命名空间:
HslCommunication.ModBus
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public bool[] ReadCoil(
string address,
ushort length
)
Public Function ReadCoil (
address As String,
length As UShort
) As Boolean()
public:
array<bool>^ ReadCoil(
String^ address,
unsigned short length
)
member ReadCoil :
address : string *
length : uint16 -> bool[]
参数
- address
- 类型:SystemString
起始地址,示例:"100" - length
- 类型:SystemUInt16
读取长度
返回值
类型:
BooleanTrue或是
False异常 异常 | 条件 |
---|
IndexOutOfRangeException | |
参见