AllenBradleyNetReadBoolArrayAsync 方法 |
批量读取的bool数组信息,如果你有个Bool数组变量名为 A, 那么读第0个位,可以通过 ReadBool("A"),但是第二个位需要使用
ReadBoolArray("A[0]") // 返回32个bool长度,0-31的索引,如果我想读取32-63的位索引,就需要 ReadBoolArray("A[1]") ,以此类推。
For batch read bool array information, if you have a Bool array variable named A, then you can read the 0th bit through ReadBool("A"),
but the second bit needs to use ReadBoolArray("A[0]" ) // Returns the length of 32 bools, the index is 0-31,
if I want to read the bit index of 32-63, I need ReadBoolArray("A[1]"), and so on.
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult<bool[]>> ReadBoolArrayAsync(
string address
)
Public Function ReadBoolArrayAsync (
address As String
) As Task(Of OperateResult(Of Boolean()))
public:
Task<OperateResult<array<bool>^>^>^ ReadBoolArrayAsync(
String^ address
)
member ReadBoolArrayAsync :
address : string -> Task<OperateResult<bool[]>>
参数
- address
- 类型:SystemString
节点的名称 -> Name of the node
返回值
类型:
TaskOperateResultBoolean带有结果对象的结果数据 -> Result data with result info
参见