AllenBradleyHelperReadPlcTypeAsync 方法 |
从PLC里读取当前PLC的型号信息
Read the current PLC model information from the PLC
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<string>> ReadPlcTypeAsync(
IReadWriteDevice plc
)
Public Shared Function ReadPlcTypeAsync (
plc As IReadWriteDevice
) As Task(Of OperateResult(Of String))
public:
static Task<OperateResult<String^>^>^ ReadPlcTypeAsync(
IReadWriteDevice^ plc
)
static member ReadPlcTypeAsync :
plc : IReadWriteDevice -> Task<OperateResult<string>>
参数
- plc
- 类型:HslCommunication.CoreIReadWriteDevice
PLC对象
返回值
类型:
TaskOperateResultString型号数据信息
参见