AUBO SDK  0.26.0
Loading...
Searching...
No Matches
register_control.h File Reference

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

#include <stdint.h>
#include <memory>
#include <vector>
#include <aubo/type_def.h>
#include <aubo/global_config.h>
Include dependency graph for register_control.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  arcs::common_interface::RegisterControl
 General Registers. More...
 

Namespaces

namespace  arcs
 
namespace  arcs::common_interface
 

Typedefs

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

Enumerations

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
}
 

Detailed Description

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

Definition in file register_control.h.

Enumeration Type Documentation

◆ ModbusErrorNum

Enumerator
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.

Definition at line 14 of file register_control.h.