MelsecFxSerialHelperActivePlcAsync 方法 |
激活PLC的接收状态,需要再和PLC交互之前进行调用,之后就需要再调用了。
命名空间:
HslCommunication.Profinet.Melsec.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult> ActivePlcAsync(
IReadWriteDevice plc
)
Public Shared Function ActivePlcAsync (
plc As IReadWriteDevice
) As Task(Of OperateResult)
public:
static Task<OperateResult^>^ ActivePlcAsync(
IReadWriteDevice^ plc
)
static member ActivePlcAsync :
plc : IReadWriteDevice -> Task<OperateResult>
参数
- plc
- 类型:HslCommunication.CoreIReadWriteDevice
PLC通信对象
返回值
类型:
TaskOperateResult是否激活成功
参见