ECAT_Slave_in_ПЧ2П_c402  0.8
Реализация EtherCAT Slave для CM TMS320F28388D

CAN application profile over EtherCAT object dictionary. Подробнее...

#include "sdoserv.h"
Граф включаемых заголовочных файлов для objdef.h:
Граф файлов, в которые включается этот файл:

См. исходные тексты.

Структуры данных

struct  OBJ_ENTRY
 Object dictionary entry structure. Подробнее...
 
struct  OBJ_STRUCT_PACKED_START
 0x1600 (csp/csv RxPDO) data structure Подробнее...
 

Макросы

#define DEFTYPE_NULL   0x0000
 Null. Подробнее...
 
#define DEFTYPE_BOOLEAN   0x0001
 BOOLEAN. Подробнее...
 
#define DEFTYPE_INTEGER8   0x0002
 INTEGER8. Подробнее...
 
#define DEFTYPE_INTEGER16   0x0003
 INTEGER16. Подробнее...
 
#define DEFTYPE_INTEGER24   0x0010
 INTEGER24. Подробнее...
 
#define DEFTYPE_INTEGER32   0x0004
 INTEGER32. Подробнее...
 
#define DEFTYPE_INTEGER40   0x0012
 INTEGER40. Подробнее...
 
#define DEFTYPE_INTEGER48   0x0013
 INTEGER48. Подробнее...
 
#define DEFTYPE_INTEGER56   0x0014
 INTEGER56. Подробнее...
 
#define DEFTYPE_UNSIGNED8   0x0005
 UNSIGNED8. Подробнее...
 
#define DEFTYPE_UNSIGNED16   0x0006
 UNSIGNED16. Подробнее...
 
#define DEFTYPE_UNSIGNED24   0x0016
 UNSIGNED24. Подробнее...
 
#define DEFTYPE_UNSIGNED32   0x0007
 UNSIGNED32. Подробнее...
 
#define DEFTYPE_REAL32   0x0008
 REAL32. Подробнее...
 
#define DEFTYPE_VISIBLESTRING   0x0009
 VISIBLE_STRING. Подробнее...
 
#define DEFTYPE_OCTETSTRING   0x000A
 OCTET_STRING. Подробнее...
 
#define DEFTYPE_UNICODE_STRING   0x000B
 UNICODE_STRING. Подробнее...
 
#define DEFTYPE_TIME_OF_DAY   0x000C
 TIME_OF_DAY. Подробнее...
 
#define DEFTYPE_TIME_DIFFERENCE   0x000D
 TIME_DIFFERENCE. Подробнее...
 
#define DEFTYPE_INTEGER24   0x0010
 INTEGER24. Подробнее...
 
#define DEFTYPE_REAL64   0x0011
 REAL64. Подробнее...
 
#define DEFTYPE_INTEGER40   0x0012
 INTEGER40. Подробнее...
 
#define DEFTYPE_INTEGER48   0x0013
 INTEGER48. Подробнее...
 
#define DEFTYPE_INTEGER56   0x0014
 INTEGER56. Подробнее...
 
#define DEFTYPE_INTEGER64   0x0015
 INTEGER64. Подробнее...
 
#define DEFTYPE_UNSIGNED24   0x0016
 UNSIGNED24. Подробнее...
 
#define DEFTYPE_UNSIGNED40   0x0018
 UNSIGNED40. Подробнее...
 
#define DEFTYPE_UNSIGNED48   0x0019
 UNSIGNED48. Подробнее...
 
#define DEFTYPE_UNSIGNED56   0x001A
 UNSIGNED56. Подробнее...
 
#define DEFTYPE_UNSIGNED64   0x001B
 UNSIGNED64. Подробнее...
 
#define DEFTYPE_GUID   0x001D
 DEFTYPE_GUID. Подробнее...
 
#define DEFTYPE_BYTE   0x001E
 DEFTYPE_BYTE. Подробнее...
 
#define DEFTYPE_WORD   0x001F
 DEFTYPE_WORD. Подробнее...
 
#define DEFTYPE_DWORD   0x0020
 DEFTYPE_DWORD. Подробнее...
 
#define DEFTYPE_PDOMAPPING   0x0021
 PDO_MAPPING. Подробнее...
 
#define DEFTYPE_IDENTITY   0x0023
 IDENTITY. Подробнее...
 
#define DEFTYPE_COMMAND   0x0025
 COMMAND_PAR. Подробнее...
 
#define DEFTYPE_PDOCOMPAR   0x0027
 PDO_PARAMETER. Подробнее...
 
#define DEFTYPE_ENUM   0x0028
 DEFTYPE_ENUM. Подробнее...
 
#define DEFTYPE_SMPAR   0x0029
 SM_SYNCHRONISATION. Подробнее...
 
#define DEFTYPE_RECORD   0x002A
 DEFTYPE_RECORD. Подробнее...
 
#define DEFTYPE_BACKUP   0x002B
 BACKUP_PARAMETER. Подробнее...
 
#define DEFTYPE_MDP   0x002C
 MODULAR_DEVICE_PROFILE. Подробнее...
 
#define DEFTYPE_BITARR8   0x002D
 BITARR8. Подробнее...
 
#define DEFTYPE_BITARR16   0x002E
 BITARR16. Подробнее...
 
#define DEFTYPE_BITARR32   0x002F
 BITARR32. Подробнее...
 
#define DEFTYPE_BIT1   0x0030
 BIT1. Подробнее...
 
#define DEFTYPE_BIT2   0x0031
 BIT2. Подробнее...
 
#define DEFTYPE_BIT3   0x0032
 BIT3. Подробнее...
 
#define DEFTYPE_BIT4   0x0033
 BIT4. Подробнее...
 
#define DEFTYPE_BIT5   0x0034
 BIT5. Подробнее...
 
#define DEFTYPE_BIT6   0x0035
 BIT6. Подробнее...
 
#define DEFTYPE_BIT7   0x0036
 BIT7. Подробнее...
 
#define DEFTYPE_BIT8   0x0037
 BIT8. Подробнее...
 
#define DEFTYPE_ARRAY_OF_INT   0x0260
 DEFTYPE_ARRAY_OF_INT. Подробнее...
 
#define DEFTYPE_ARRAY_OF_SINT   0x0261
 DEFTYPE_ARRAY_OF_SINT. Подробнее...
 
#define DEFTYPE_ARRAY_OF_DINT   0x0262
 DEFTYPE_ARRAY_OF_DINT. Подробнее...
 
#define DEFTYPE_ARRAY_OF_UDINT   0x0263
 DEFTYPE_ARRAY_OF_UDINT. Подробнее...
 
#define DEFTYPE_ERRORHANDLING   0x0281
 DEFTYPE_ERRORHANDLING. Подробнее...
 
#define DEFTYPE_DIAGHISTORY   0x0282
 DEFTYPE_DIAGHISTORY. Подробнее...
 
#define DEFTYPE_SYNCSTATUS   0x0283
 DEFTYPE_SYNCSTATUS. Подробнее...
 
#define DEFTYPE_SYNCSETTINGS   0x0284
 DEFTYPE_SYNCSETTINGS. Подробнее...
 
#define DEFTYPE_FSOEFRAME   0x0285
 DEFTYPE_FSOEFRAME. Подробнее...
 
#define DEFTYPE_FSOECOMMPAR   0x0286
 DEFTYPE_FSOECOMMPAR. Подробнее...
 
#define SYNCTYPE_FREERUNSUPP   0x0001
 FreeRun supported. Подробнее...
 
#define SYNCTYPE_SYNCHRONSUPP   0x0002
 SyncManager synchron supported. Подробнее...
 
#define SYNCTYPE_DCSYNC0SUPP   0x0004
 Sync0 synchron supported. Подробнее...
 
#define SYNCTYPE_DCSYNC1SUPP   0x0008
 Sync1 synchron supported. Подробнее...
 
#define SYNCTYPE_SUBCYCLESUPP   0x0010
 Subordinated Application with fixed Sync0 supported. Подробнее...
 
#define SYNCTYPE_LOCALSHIFTSUPP   0x0020
 Event shift with local timer supported. Output shift : 0x1C32.4 ; Input shift : 0x1C33.4 (not supported by the default SSC) Подробнее...
 
#define SYNCTYPE_SHIFTBYSYNC1SUPP   0x0040
 Event shift with Sync1 event supported. Output shift : 0x1C32.4 ; Input shift : 0x1C33.4. Подробнее...
 
#define SYNCTYPE_MEASURE_DELAYSUPP   0x0200
 Delay times should be measured (not supported by the default SSC, only the cycle time can be measured (1ms resolution) Подробнее...
 
#define SYNCTYPE_FIXED_DELAYSUPP   0x0400
 Delay times are fixed. Подробнее...
 
#define SYNCTYPE_TIMESVARIABLE   0x4000
 Dynamic Cycle Times supported. Подробнее...
 
#define IS_PDO_ASSIGN(x)   ((x >= 0x1C10) && (x <= 0x1C2F))
 Macro to check if object index is SyncManager assign object. Подробнее...
 
#define IS_RX_PDO(x)   (((x) >= 0x1600) && ((x) <= 0x17FF))
 Macro to check if object index RxPDO mapping object. Подробнее...
 
#define IS_TX_PDO(x)   (((x) >= 0x1A00) && ((x) <= 0x1BFF))
 Macro to check if object index TxPDO mapping object. Подробнее...
 
#define PROTO   extern
 

Определения типов

typedef struct OBJ_ENTRY TOBJECT
 Object dictionary entry structure. Подробнее...
 
typedef struct OBJ_STRUCT_PACKED_START TSYNCMANPAR
 
typedef struct OBJ_STRUCT_PACKED_START TCYCLEDIAG
 
typedef struct OBJ_STRUCT_PACKED_START TOBJ10F1
 

Функции

OBJCONST TOBJECT OBJMEMOBJ_GetObjectHandle (UINT16 index)
 The function looks in all objects of the dictionary after the indicated index and returns a handle if found. Подробнее...
 
UINT32 OBJ_GetObjectLength (UINT16 index, UINT8 subindex, OBJCONST TOBJECT OBJMEM *pObjEntry, UINT8 bCompleteAccess)
 This function returns the size of the requested entry. If bCompleteaccess is set the size of the complete object is returned (the returned size is byte packed, gaps based on the used platform/compiler are not taken into account) Подробнее...
 
UINT16 OBJ_GetNoOfObjects (UINT8 listType)
 The function counts the number of objects of the requested list type. Подробнее...
 
UINT16 OBJ_GetObjectList (UINT16 listType, UINT16 *pIndex, UINT16 size, UINT16 MBXMEM *pData, UINT8 *pAbort)
 The function copies (the part of) the object list in the mailbox buffer. Подробнее...
 
UINT16 OBJ_GetDesc (UINT16 index, UINT8 subindex, OBJCONST TOBJECT OBJMEM *pObjEntry, UINT16 MBXMEM *pData)
 The function returns size and description string of the requested entry. Подробнее...
 
OBJCONST TSDOINFOENTRYDESC OBJMEMOBJ_GetEntryDesc (OBJCONST TOBJECT OBJMEM *pObjEntry, UINT8 Subindex)
 The function returns the Entry-Desc of a subindex to allow the application to define the object dictionary independent of the sdoserv-files. Подробнее...
 
OBJCONST TSDOINFOOBJDESC OBJMEMOBJ_GetObjDesc (OBJCONST TOBJECT OBJMEM *pObjEntry)
 The function returns the Obj-Desc of an object to allow the application to define the object dictionary independent of the sdoserv-files. Подробнее...
 
UINT16 OBJ_GetEntryOffset (UINT8 subindex, OBJCONST TOBJECT OBJMEM *pObjEntry)
 This function calculates the bit offset of the entry in the object's variable. Подробнее...
 
UINT8 CheckSyncTypeValue (UINT16 index, UINT16 NewSyncType)
 Checks if the new Sync type value is valid. Подробнее...
 
UINT8 OBJ_Read (UINT16 index, UINT8 subindex, UINT32 objSize, OBJCONST TOBJECT OBJMEM *pObjEntry, UINT16 MBXMEM *pData, UINT8 bCompleteAccess)
 This function reads the requested object. Подробнее...
 
UINT8 OBJ_Write (UINT16 index, UINT8 subindex, UINT32 dataSize, OBJCONST TOBJECT OBJMEM *pObjEntry, UINT16 MBXMEM *pData, UINT8 bCompleteAccess)
 This function writes the requested object. Подробнее...
 
PROTO void COE_WriteBackupEntry (UINT8 subindex, OBJCONST TOBJECT OBJMEM *pObjEntry)
 

Переменные

PROTO BOOL bSyncSetByUser
 
PROTO TCYCLEDIAG sCycleDiag
 Cycle diagnosis variable. Подробнее...
 
PROTO TSYNCMANPAR MBXMEM sSyncManOutPar
 Object 0x1C32 (SyncManager 2 Parameter) object variable. Подробнее...
 
PROTO TSYNCMANPAR MBXMEM sSyncManInPar
 Object 0x1C33 (SyncManager 3 Parameter) object variable. Подробнее...
 
PROTO TOBJ10F1 sErrorSettings
 Object 0x10F1 (Error Settings) object variable. Подробнее...
 
PROTO CHAR OBJMEM aSubindexDesc [13]
 Default entry name "SubIndex 000". Подробнее...
 

Подробное описание

CAN application profile over EtherCAT object dictionary.

Автор
Ether.nosp@m.catS.nosp@m.SC@be.nosp@m.ckho.nosp@m.ff.co.nosp@m.m
Версия
5.11


Changes to version V5.10:
V5.11 COE2: update synctype supported flag for freerun
V5.11 COE3: change 0x10F3.2 (Sync Error limit) from UINT32 to UINT16 (according to the ETG.1020)
V5.11 ECAT10: change PROTO handling to prevent compiler errors

Changes to version V5.01:
V5.10 COE1: Define one entry description for all 0x1C3x objects and change data type of SI11,12,13 to UINT16 (according ETG.1020)
V5.10 COE2: Change return value of Get ObjectSize to UINT32
Change object size to UINT32
V5.10 ECAT13: Update Synchronisation handling (FreeRun,SM Sync, Sync0, Sync1)
Compare DC UINT configuration (by ESC Config data) vs. DC activation register settings
Update 0x1C3x entries
V5.10 ECAT8: Update Datatype defines according ETG.1020

Changes to version - :
V5.01 : Start file change log

См. определение в файле objdef.h