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