OmronFinsNetHelperRunAsync 方法 |
将CPU单元的操作模式更改为RUN,从而使PLC能够执行其程序。
Changes the CPU Unit’s operating mode to RUN, enabling the PLC to execute its program.
命名空间:
HslCommunication.Profinet.Omron
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult> RunAsync(
IReadWriteDevice omron
)
Public Shared Function RunAsync (
omron As IReadWriteDevice
) As Task(Of OperateResult)
public:
static Task<OperateResult^>^ RunAsync(
IReadWriteDevice^ omron
)
static member RunAsync :
omron : IReadWriteDevice -> Task<OperateResult>
参数
- omron
- 类型:HslCommunication.CoreIReadWriteDevice
PLC设备的连接对象
返回值
类型:
TaskOperateResult是否启动成功
备注
当执行RUN时,CPU单元将开始运行。 在执行RUN之前,您必须确认系统的安全性。 启用“禁止覆盖受保护程序”设置时,无法执行此命令。
The CPU Unit will start operation when RUN is executed. You must confirm the safety of the system before executing RUN.
When the “prohibit overwriting of protected program” setting is enabled, this command cannot be executed.
参见