GeSRTPNetWriteAsync 方法 (String, Boolean) |
按照位为单位,批量写入 bool 数组到指定的地址里,不支持 AI,AQ,R 地址类型,地址比如从1开始,例如 I1,Q1,M1,T1,SA1,SB1,SC1,S1,G1
In units of bits, write bool arrays in batches to the specified addresses. AI, AQ, and R address types are not supported. For example,
the address starts from 1, such as I1, Q1, M1, T1, SA1, SB1, SC1, S1, G1
命名空间:
HslCommunication.Profinet.GE
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public override Task<OperateResult> WriteAsync(
string address,
bool[] value
)
Public Overrides Function WriteAsync (
address As String,
value As Boolean()
) As Task(Of OperateResult)
public:
virtual Task<OperateResult^>^ WriteAsync(
String^ address,
array<bool>^ value
) override
abstract WriteAsync :
address : string *
value : bool[] -> Task<OperateResult>
override WriteAsync :
address : string *
value : bool[] -> Task<OperateResult>
参数
- address
- 类型:SystemString
PLC的地址信息,例如 M1, G1 - value
- 类型:SystemBoolean
bool 数组
返回值
类型:
TaskOperateResult是否写入成功的结果对象
实现
IReadWriteNetWriteAsync(String, Boolean)参见