点击或拖拽改变大小

SiemensWebApiRead 方法 (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.0.0.0 (12.0.0.0)
语法
public OperateResult<JToken[]> Read(
	string[] address
)

参数

address
类型:SystemString
"全局DB".Static_21

返回值

类型:OperateResultJToken
返回是否读取成功的结果对象
备注
一旦中间有一个地址失败了,本方法就会返回失败,所以在调用本方法时,需要确保所有的地址正确。
参见