ModbusTcpServerWriteDiscrete 方法 (String, Boolean) |
写入离散线圈数组的通断值
命名空间:
HslCommunication.ModBus
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public void WriteDiscrete(
string address,
bool[] data
)
Public Sub WriteDiscrete (
address As String,
data As Boolean()
)
public:
void WriteDiscrete(
String^ address,
array<bool>^ data
)
member WriteDiscrete :
address : string *
data : bool[] -> unit
参数
- address
- 类型:SystemString
起始地址,示例:"100" - data
- 类型:SystemBoolean
是否通断
异常 异常 | 条件 |
---|
IndexOutOfRangeException | |
参见