BeckhoffAdsNetReadBoolAsync 方法 (String, UInt16) |
读取PLC的数据,地址共有三种格式,一:I,Q,M数据信息,举例M0,M100;二:内存地址,i=100000;三:标签地址,s=A
Read PLC data, there are three formats of address, one: I, Q, M data information, such as M0, M100; two: memory address, i = 100000; three: tag address, s = A
命名空间:
HslCommunication.Profinet.Beckhoff
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public override Task<OperateResult<bool[]>> ReadBoolAsync(
string address,
ushort length
)
Public Overrides Function ReadBoolAsync (
address As String,
length As UShort
) As Task(Of OperateResult(Of Boolean()))
public:
virtual Task<OperateResult<array<bool>^>^>^ ReadBoolAsync(
String^ address,
unsigned short length
) override
abstract ReadBoolAsync :
address : string *
length : uint16 -> Task<OperateResult<bool[]>>
override ReadBoolAsync :
address : string *
length : uint16 -> Task<OperateResult<bool[]>>
参数
- address
- 类型:SystemString
PLC的地址信息,例如 M10 - length
- 类型:SystemUInt16
数据长度
返回值
类型:
TaskOperateResultBoolean包含是否成功的结果对象
实现
IReadWriteNetReadBoolAsync(String, UInt16)参见