AllenBradleyNetReadTagAsync 方法 |
从PLC里读取一个指定标签名的原始数据信息及其数据类型信息
Read the original data information of a specified tag name and its data type information from the PLC
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.0.0 (12.1.0.0)
语法public Task<OperateResult<ushort, byte[]>> ReadTagAsync(
string address,
ushort length = 1
)
Public Function ReadTagAsync (
address As String,
Optional length As UShort = 1
) As Task(Of OperateResult(Of UShort, Byte()))
public:
Task<OperateResult<unsigned short, array<unsigned char>^>^>^ ReadTagAsync(
String^ address,
unsigned short length = 1
)
member ReadTagAsync :
address : string *
?length : uint16
(* Defaults:
let _length = defaultArg length 1
*)
-> Task<OperateResult<uint16, byte[]>>
参数
- address
- 类型:SystemString
PLC的标签地址信息 - length (Optional)
- 类型:SystemUInt16
读取的数据长度
返回值
类型:
TaskOperateResultUInt16,
Byte包含原始数据信息及数据类型的结果对象
备注
参见