| McHelperReadRandomInt16Async 方法  | 
 
            随机读取PLC的数据信息,可以跨地址,跨类型组合,但是每个地址只能读取一个word,也就是2个字节的内容。收到结果后,自动转换为了short类型的数组
            Randomly read PLC data information, which can be combined across addresses and types, but each address can only read one word, 
            which is the content of 2 bytes. After receiving the result, it is automatically converted to an array of type short.
            
 
        命名空间: 
     HslCommunication.Profinet.Melsec.Helper
        程序集:
     HslCommunication (在 HslCommunication.dll 中) 版本:12.5.1.0 (12.5.1.0)
 语法
语法public static Task<OperateResult<short[]>> ReadRandomInt16Async(
	IReadWriteMc mc,
	string[] address
)
Public Shared Function ReadRandomInt16Async ( 
	mc As IReadWriteMc,
	address As String()
) As Task(Of OperateResult(Of Short()))
public:
static Task<OperateResult<array<short>^>^>^ ReadRandomInt16Async(
	IReadWriteMc^ mc, 
	array<String^>^ address
)
static member ReadRandomInt16Async : 
        mc : IReadWriteMc * 
        address : string[] -> Task<OperateResult<int16[]>> 
参数
- mc
- 类型:HslCommunication.Profinet.Melsec.HelperIReadWriteMc
 MC协议的通信对象
- address
- 类型:SystemString
 所有的地址的集合
返回值
类型:
TaskOperateResultInt16包含是否成功的结果对象
 备注
备注
            访问安装有 Q 系列 C24/E71 的站 QCPU 上位站 经由 Q 系列兼容网络系统 MELSECNET/H MELSECNET/10 Ethernet 的 QCPU 其他站 时
            访问点数········1≦ 字访问点数 双字访问点数 ≦192
            
            访问 QnACPU 其他站 经由 QnA 系列兼容网络系统 MELSECNET/10 Ethernet 的 Q/QnACPU 其他站 时访问点数········1≦ 字访问点数 双字访问点数 ≦96
            
            访问上述以外的 PLC CPU 其他站 时访问点数········1≦字访问点数≦10
            
 参见
参见