SiemensWebApiReadAsync 方法 (String) |
[商业授权] 从PLC读取多个地址的数据信息,每个地址的数据类型可以不一致,需要自动从JToken中提取出正确的数据
[Authorization] Read the data information of multiple addresses from the PLC, the data type of each address can be inconsistent,
you need to automatically extract the correct data from JToken
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult<JToken[]>> ReadAsync(
string[] address
)
Public Function ReadAsync (
address As String()
) As Task(Of OperateResult(Of JToken()))
public:
Task<OperateResult<array<JToken^>^>^>^ ReadAsync(
array<String^>^ address
)
member ReadAsync :
address : string[] -> Task<OperateResult<JToken[]>>
参数
- address
- 类型:SystemString
"全局DB".Static_21
返回值
类型:
TaskOperateResultJToken返回是否读取成功的结果对象
备注
一旦中间有一个地址失败了,本方法就会返回失败,所以在调用本方法时,需要确保所有的地址正确。
参见