MelsecFxLinksHelperReadPlcTypeAsync 方法 |
[商业授权] 读取PLC的型号信息,可以携带额外的参数信息,指定站号。举例:s=2; 注意:分号是必须的。
[Authorization] Read the PLC model information, you can carry additional parameter information, and specify the station number. Example: s=2; Note: The semicolon is required.
命名空间:
HslCommunication.Profinet.Melsec.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<string>> ReadPlcTypeAsync(
IReadWriteFxLinks plc,
string parameter = ""
)
Public Shared Function ReadPlcTypeAsync (
plc As IReadWriteFxLinks,
Optional parameter As String = ""
) As Task(Of OperateResult(Of String))
public:
static Task<OperateResult<String^>^>^ ReadPlcTypeAsync(
IReadWriteFxLinks^ plc,
String^ parameter = L""
)
static member ReadPlcTypeAsync :
plc : IReadWriteFxLinks *
?parameter : string
(* Defaults:
let _parameter = defaultArg parameter ""
*)
-> Task<OperateResult<string>>
参数
- plc
- 类型:HslCommunication.Profinet.Melsec.HelperIReadWriteFxLinks
PLC通信对象 - parameter (Optional)
- 类型:SystemString
允许携带的参数信息,例如s=2; 也可以为空
返回值
类型:
TaskOperateResultString带PLC型号的结果信息
参见