IReadWriteNet.ReadUInt64Async 方法 (String) |
异步读取64位的无符号整型
Asynchronously read 64-bit unsigned integer
命名空间:
HslCommunication.Core
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 Task<OperateResult<ulong>> ReadUInt64Async(
string address
)
Function ReadUInt64Async (
address As String
) As Task(Of OperateResult(Of ULong))
Task<OperateResult<unsigned long long>^>^ ReadUInt64Async(
String^ address
)
abstract ReadUInt64Async :
address : string -> Task<OperateResult<uint64>>
参数
- address
- 类型:System.String
起始地址
返回值
类型:
Task<OperateResult<UInt64>>带有成功标识的ulong数据
示例
以下为三菱的连接对象示例,其他的设备读写情况参照下面的代码:
MelsecMcNet melsec_net = new MelsecMcNet( "192.168.0.100", 6000 );
ulong d100 = (await melsec_net.ReadUInt64Async( "D100" )).Content;
OperateResult<ulong> R_d100 = await melsec_net.ReadUInt64Async( "D100" );
if (R_d100.IsSuccess)
{
double value = R_d100.Content;
}
else
{
}
参见