comit_job ver new modbus
This commit is contained in:
@@ -240,17 +240,17 @@ typedef __PACKED_STRUCT
|
||||
|
||||
|
||||
|
||||
word coils[3]; //32
|
||||
word coils[3]; //48
|
||||
uint16_t reserve1[mb_fill_rsv(128/16, word[3])];
|
||||
STATUS_TSENS status_tSens[MAX_SENSE/16]; //32
|
||||
uint16_t reserve2[mb_fill_rsv(128/16, STATUS_TSENS[MAX_SENSE/16])];
|
||||
RELAY_Struct relay_struct[MAX_SENSE/16*2];//16 2 реле на 1 датчик
|
||||
uint16_t reserve3[mb_fill_rsv(128/16, RELAY_Struct[MAX_SENSE/16*2])];
|
||||
|
||||
unsigned init_param:1;
|
||||
unsigned init_Tsens:1;
|
||||
unsigned Save_Param_to_Flash:1;
|
||||
unsigned reserved2:14;
|
||||
unsigned init_param:1; //384
|
||||
unsigned init_Tsens:1; //385
|
||||
unsigned Save_Param_to_Flash:1; //386
|
||||
unsigned reserved2:13;
|
||||
|
||||
}MB_DataCoilsTypeDef;
|
||||
|
||||
@@ -277,33 +277,6 @@ typedef struct // tester modbus data
|
||||
}MB_DataStructureTypeDef;
|
||||
extern MB_DataStructureTypeDef MB_DATA;
|
||||
|
||||
|
||||
/**
|
||||
* @brief Структура для объекта Modbus
|
||||
* @ingroup MODBUS_DATA
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
unsigned length;
|
||||
char *name;
|
||||
}MB_DeviceObjectTypeDef;
|
||||
/**
|
||||
* @brief Структура для объектов Modbus
|
||||
* @ingroup MODBUS_DATA
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
MB_DeviceObjectTypeDef VendorName;
|
||||
MB_DeviceObjectTypeDef ProductCode;
|
||||
MB_DeviceObjectTypeDef Revision;
|
||||
MB_DeviceObjectTypeDef VendorUrl;
|
||||
MB_DeviceObjectTypeDef ProductName;
|
||||
MB_DeviceObjectTypeDef ModelName;
|
||||
MB_DeviceObjectTypeDef UserApplicationName;
|
||||
}MB_DeviceIdentificationTypeDef;
|
||||
void MB_DevoceInentificationInit(void);
|
||||
|
||||
|
||||
#endif //_MODBUS_DATA_H_
|
||||
|
||||
/////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user