OmronHostLinkCModeHelperReadPlcMode 方法 |
[商业授权] 读取PLC当前的操作模式,0: 编程模式 1: 运行模式 2: 监视模式
[Authorization] Reads the Operation mode of the CPU Unit. 0: PROGRAM mode 1: RUN mode 2: MONITOR mode
命名空间:
HslCommunication.Profinet.Omron.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<int> ReadPlcMode(
IReadWriteDevice omron,
byte unitNumber
)
Public Shared Function ReadPlcMode (
omron As IReadWriteDevice,
unitNumber As Byte
) As OperateResult(Of Integer)
public:
static OperateResult<int>^ ReadPlcMode(
IReadWriteDevice^ omron,
unsigned char unitNumber
)
static member ReadPlcMode :
omron : IReadWriteDevice *
unitNumber : byte -> OperateResult<int>
参数
- omron
- 类型:HslCommunication.CoreIReadWriteDevice
PLC连接对象 - unitNumber
- 类型:SystemByte
站号信息
返回值
类型:
OperateResultInt320: 编程模式 1: 运行模式 2: 监视模式
参见