OmronHostLinkCModeHelperChangePlcMode 方法 |
[商业授权] 将当前PLC的模式变更为指定的模式,0: 编程模式 1: 运行模式 2: 监视模式
[Authorization] Change the current PLC mode to the specified mode, 0: programming mode 1: running mode 2: monitoring mode
命名空间:
HslCommunication.Profinet.Omron.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult ChangePlcMode(
IReadWriteDevice omron,
byte unitNumber,
byte mode
)
Public Shared Function ChangePlcMode (
omron As IReadWriteDevice,
unitNumber As Byte,
mode As Byte
) As OperateResult
public:
static OperateResult^ ChangePlcMode(
IReadWriteDevice^ omron,
unsigned char unitNumber,
unsigned char mode
)
static member ChangePlcMode :
omron : IReadWriteDevice *
unitNumber : byte *
mode : byte -> OperateResult
参数
- omron
- 类型:HslCommunication.CoreIReadWriteDevice
PLC连接对象 - unitNumber
- 类型:SystemByte
站号信息 - mode
- 类型:SystemByte
0: 编程模式 1: 运行模式 2: 监视模式
返回值
类型:
OperateResult是否变更成功
参见