ConOpSys V2970  P004.07
ANVILEX control operating system
Classes | Macros
MODBUS_PDU.h File Reference

Communication protocol MODBUS over UART class header file. More...

#include "Defines.h"
Include dependency graph for MODBUS_PDU.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TMODBUS_PDU_Base
 MODBUS generic PDU base class. More...
 

Macros

#define MODBUS_RESPONCE_CODE_ILLEGAL_FUNCTION   ( (U8)0x01 )
 
#define MODBUS_RESPONCE_CODE_ILLEGAL_DATA_ADDRESS   ( (U8)0x02 )
 
#define MODBUS_RESPONCE_CODE_ILLEGAL_DATA_VALUE   ( (U8)0x03 )
 
#define MODBUS_RESPONCE_CODE_SERVER_DEVICE_FAILURE   ( (U8)0x04 )
 
#define MODBUS_RESPONCE_CODE_ACKNOWLEDGE   ( (U8)0x05 )
 
#define MODBUS_RESPONCE_CODE_SERVER_DEVICE_BUSY   ( (U8)0x06 )
 
#define MODBUS_RESPONCE_CODE_MEMORY_PARITY_ERROR   ( (U8)0x07 )
 
#define MODBUS_RESPONCE_CODE_GATEWAY_PATH_UNAVAILABLE   ( (U8)0x0A )
 
#define MODBUS_RESPONCE_CODE_GATAWAY_TARGET_DEVICE_FAILED_TO_RESPOND   ( (U8)0x0B )
 
#define MODBUS_FC_0x01_READ_COILS   ( (U8)0x01 )
 
#define MODBUS_FC_0x02_READ_DISCRETE_INPUTS   ( (U8)0x02 )
 
#define MODBUS_FC_0x03_READ_HOLDING_REGISTERS   ( (U8)0x03 )
 
#define MODBUS_FC_0x04_READ_INPUT_REGISTER   ( (U8)0x04 )
 
#define MODBUS_FC_0x05_WRITE_SINGLE_COIL   ( (U8)0x05 )
 
#define MODBUS_FC_0x06_WRITE_SINGLE_REGISTER   ( (U8)0x06 )
 
#define MODBUS_FC_0x07_READ_EXCEPTION_STATUS   ( (U8)0x07 )
 
#define MODBUS_FC_0x08_DIAGNOSTIC   ( (U8)0x08 )
 
#define MODBUS_FC_0x0B_GET_COMMUNICATION_EVENT_COUNTER   ( (U8)0x0B )
 
#define MODBUS_FC_0x0C_GET_COMMUNICATION_EVENT_LOG   ( (U8)0x0C )
 
#define MODBUS_FC_0x0F_WRITE_MULTIPLE_COILS   ( (U8)0x0F )
 
#define MODBUS_FC_0x10_WRITE_MULTIPLE_REGISTERS   ( (U8)0x10 )
 
#define MODBUS_FC_0x11_REPORT_SERVER_ID   ( (U8)0x11 )
 
#define MODBUS_FC_0x14_READ_FILE_RECORD   ( (U8)0x14 )
 
#define MODBUS_FC_0x15_WRITE_FILE_RECORD   ( (U8)0x15 )
 
#define MODBUS_FC_0x16_MASK_WRITE_REGISTER   ( (U8)0x16 )
 
#define MODBUS_FC_0x17_READ_WRITE_MULTIPLE_REGISTERS   ( (U8)0x17 )
 
#define MODBUS_FC_0x18_READ_FIFO_QUEUE   ( (U8)0x18 )
 
#define MODBUS_FC_0x2B_ENCAPSULATED_INTERFACE_TRANSPORT   ( (U8)0x2B )
 
#define MODBUS_MEI_0x0D_CANOPEN_GENERAL_REFERENCE   ( (U8)0x0D )
 
#define MODBUS_MEI_0x0E_READ_DEVICE_IDENTEFICATION   ( (U8)0x0E )
 
#define MODBUS_PDU_BUFFER_SIZE   (0x100)
 MODBUS PDU buffer side definition. More...
 

Detailed Description

Communication protocol MODBUS over UART class header file.

Attention
No special attention requered.
Revision
2826
Date
2021-07-28 13:46:37 +0500 (Mi, 28 Jul 2021)
Author
minch

Macro Definition Documentation

◆ MODBUS_FC_0x01_READ_COILS

#define MODBUS_FC_0x01_READ_COILS   ( (U8)0x01 )

◆ MODBUS_FC_0x02_READ_DISCRETE_INPUTS

#define MODBUS_FC_0x02_READ_DISCRETE_INPUTS   ( (U8)0x02 )

◆ MODBUS_FC_0x03_READ_HOLDING_REGISTERS

#define MODBUS_FC_0x03_READ_HOLDING_REGISTERS   ( (U8)0x03 )

◆ MODBUS_FC_0x04_READ_INPUT_REGISTER

#define MODBUS_FC_0x04_READ_INPUT_REGISTER   ( (U8)0x04 )

◆ MODBUS_FC_0x05_WRITE_SINGLE_COIL

#define MODBUS_FC_0x05_WRITE_SINGLE_COIL   ( (U8)0x05 )

◆ MODBUS_FC_0x06_WRITE_SINGLE_REGISTER

#define MODBUS_FC_0x06_WRITE_SINGLE_REGISTER   ( (U8)0x06 )

◆ MODBUS_FC_0x07_READ_EXCEPTION_STATUS

#define MODBUS_FC_0x07_READ_EXCEPTION_STATUS   ( (U8)0x07 )

◆ MODBUS_FC_0x08_DIAGNOSTIC

#define MODBUS_FC_0x08_DIAGNOSTIC   ( (U8)0x08 )

◆ MODBUS_FC_0x0B_GET_COMMUNICATION_EVENT_COUNTER

#define MODBUS_FC_0x0B_GET_COMMUNICATION_EVENT_COUNTER   ( (U8)0x0B )

◆ MODBUS_FC_0x0C_GET_COMMUNICATION_EVENT_LOG

#define MODBUS_FC_0x0C_GET_COMMUNICATION_EVENT_LOG   ( (U8)0x0C )

◆ MODBUS_FC_0x0F_WRITE_MULTIPLE_COILS

#define MODBUS_FC_0x0F_WRITE_MULTIPLE_COILS   ( (U8)0x0F )

◆ MODBUS_FC_0x10_WRITE_MULTIPLE_REGISTERS

#define MODBUS_FC_0x10_WRITE_MULTIPLE_REGISTERS   ( (U8)0x10 )

◆ MODBUS_FC_0x11_REPORT_SERVER_ID

#define MODBUS_FC_0x11_REPORT_SERVER_ID   ( (U8)0x11 )

◆ MODBUS_FC_0x14_READ_FILE_RECORD

#define MODBUS_FC_0x14_READ_FILE_RECORD   ( (U8)0x14 )

◆ MODBUS_FC_0x15_WRITE_FILE_RECORD

#define MODBUS_FC_0x15_WRITE_FILE_RECORD   ( (U8)0x15 )

◆ MODBUS_FC_0x16_MASK_WRITE_REGISTER

#define MODBUS_FC_0x16_MASK_WRITE_REGISTER   ( (U8)0x16 )

◆ MODBUS_FC_0x17_READ_WRITE_MULTIPLE_REGISTERS

#define MODBUS_FC_0x17_READ_WRITE_MULTIPLE_REGISTERS   ( (U8)0x17 )

◆ MODBUS_FC_0x18_READ_FIFO_QUEUE

#define MODBUS_FC_0x18_READ_FIFO_QUEUE   ( (U8)0x18 )

◆ MODBUS_FC_0x2B_ENCAPSULATED_INTERFACE_TRANSPORT

#define MODBUS_FC_0x2B_ENCAPSULATED_INTERFACE_TRANSPORT   ( (U8)0x2B )

◆ MODBUS_MEI_0x0D_CANOPEN_GENERAL_REFERENCE

#define MODBUS_MEI_0x0D_CANOPEN_GENERAL_REFERENCE   ( (U8)0x0D )

◆ MODBUS_MEI_0x0E_READ_DEVICE_IDENTEFICATION

#define MODBUS_MEI_0x0E_READ_DEVICE_IDENTEFICATION   ( (U8)0x0E )

◆ MODBUS_PDU_BUFFER_SIZE

#define MODBUS_PDU_BUFFER_SIZE   (0x100)

MODBUS PDU buffer side definition.

◆ MODBUS_RESPONCE_CODE_ACKNOWLEDGE

#define MODBUS_RESPONCE_CODE_ACKNOWLEDGE   ( (U8)0x05 )

◆ MODBUS_RESPONCE_CODE_GATAWAY_TARGET_DEVICE_FAILED_TO_RESPOND

#define MODBUS_RESPONCE_CODE_GATAWAY_TARGET_DEVICE_FAILED_TO_RESPOND   ( (U8)0x0B )

◆ MODBUS_RESPONCE_CODE_GATEWAY_PATH_UNAVAILABLE

#define MODBUS_RESPONCE_CODE_GATEWAY_PATH_UNAVAILABLE   ( (U8)0x0A )

◆ MODBUS_RESPONCE_CODE_ILLEGAL_DATA_ADDRESS

#define MODBUS_RESPONCE_CODE_ILLEGAL_DATA_ADDRESS   ( (U8)0x02 )

◆ MODBUS_RESPONCE_CODE_ILLEGAL_DATA_VALUE

#define MODBUS_RESPONCE_CODE_ILLEGAL_DATA_VALUE   ( (U8)0x03 )

◆ MODBUS_RESPONCE_CODE_ILLEGAL_FUNCTION

#define MODBUS_RESPONCE_CODE_ILLEGAL_FUNCTION   ( (U8)0x01 )

◆ MODBUS_RESPONCE_CODE_MEMORY_PARITY_ERROR

#define MODBUS_RESPONCE_CODE_MEMORY_PARITY_ERROR   ( (U8)0x07 )

◆ MODBUS_RESPONCE_CODE_SERVER_DEVICE_BUSY

#define MODBUS_RESPONCE_CODE_SERVER_DEVICE_BUSY   ( (U8)0x06 )

◆ MODBUS_RESPONCE_CODE_SERVER_DEVICE_FAILURE

#define MODBUS_RESPONCE_CODE_SERVER_DEVICE_FAILURE   ( (U8)0x04 )