ARCS SDK API  0.24.0
| 命名空间 | 宏定义 | 类型定义 | 枚举
register_control.h 文件参考

寄存器操作接口,用于三个模块之间的数据交换功能 更多...

#include <stdint.h>
#include <memory>
#include <vector>
#include <aubo/type_def.h>
#include <aubo/global_config.h>
register_control.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

class  arcs::common_interface::RegisterControl
 通用寄存器 更多...
 

命名空间

 arcs
 
 arcs::common_interface
 

宏定义

#define RegisterControl_DECLARES
 

类型定义

using arcs::common_interface::RegisterControlPtr = std::shared_ptr< RegisterControl >
 

枚举

enum  ModbusErrorNum {
  MB_ERR_NOT_INIT = -1, MB_ERR_DISCONNECTED = -2, MB_ERR_ILLEGAL_FUNCTION = 1, MB_ERR_ILLEGAL_DATA_ADDRESS = 2,
  MB_ERR_ILLEGAL_DATA_VALUE = 3, MB_ERR_SLAVE_DEVICE_FAILURE = 4, MB_ERR_ACKNOWLEDGE = 5, MB_ERR_SLAVE_DEVICE_BUSY = 6
}
 

详细描述

寄存器操作接口,用于三个模块之间的数据交换功能

在文件 register_control.h 中定义.

宏定义说明

#define RegisterControl_DECLARES

在文件 register_control.h1547 行定义.

枚举类型说明

枚举值
MB_ERR_NOT_INIT 

MODBUS unit not initiallized.

MB_ERR_DISCONNECTED 

MODBUS unit disconnected.

MB_ERR_ILLEGAL_FUNCTION 

The function code received in the query is not an allowable action for the server (or slave).

MB_ERR_ILLEGAL_DATA_ADDRESS 

The function code received in the query is not an allowable action for the server (or slave), check that the entered signal address corresponds to the setup of the remote MODBUS server.

MB_ERR_ILLEGAL_DATA_VALUE 

A value contained in the query data field is not an allowable value for server (or slave), check that the enterd signal value is valid for the specified address on the remote MODBUS server.

MB_ERR_SLAVE_DEVICE_FAILURE 

An unrecoverable error occurred while the server (or slave) was attempting to perform the requested action.

MB_ERR_ACKNOWLEDGE 

Specialized use in conjunction with programming commands sent to the remote MODBUS unit.

MB_ERR_SLAVE_DEVICE_BUSY 

Specialized use in conjunction with programming commands sent to the remote MODBUS unit, the slave (server) is not able to respond now.

在文件 register_control.h14 行定义.