ecrt.h文件目录结构

基于linux环境和ethecat的igh库控制汇川620N的主站代码 #include "ecrt.h" #include <stdio.h> #include "ethercatdef.h" #include "initInovance.h" #include <errno.h> #include <signal.h> #include <stdio.h> #include <string.h> #include <sys/resource.h> #include <sys/time.h>. 阅读详情

目录
版权    4
1    Global definitions 全局定义    7
2    Feature flags 特性标志    8
3    Data types数据类型    9
3.1    Master state.主站状态    10
3.2    Redundant link state.冗余链路状态。    11
3.3    Slave configuration state.从站配置状态    11
3.4    Master information.主站信息    12
3.5    EtherCAT slave port descriptor. EherCAT 从站端口描述    12
3.6    EtherCAT slave port information.从站端口信息    13
3.7    Slave information.从站信息    13
3.8    Domain working counter interpretation. *域工作计数解释    14
3.9    Domain state.域状态    14
3.10    Direction type for PDO assignment functions.PDO分配函数的方向类型。    15
3.11    Watchdog mode for sync manager configuration.同步管理器配置看门狗模式    15
3.12    PDO entry configuration information. PDO表项配置信息    15
3.13    PDO configuration information. PDO配置信息。    16
3.14    Sync manager configuration information.同步管理器配置信息    16
3.15    List record type for PDO entry mass-registration.列出PDO输入批量注册的记录类型    17
3.16    Request state.请求状态    18
3.17    Application-layer state.应用层状态    18
4    Global functions  全局函数    18
4.1    Returns the version magic of the realtime interface.返回实时接口的版本魔法。    18
4.2    Requests an EtherCAT master for realtime operation.请求EtherCAT主机进行实时操作。    19
4.3    Opens an EtherCAT master for userspace access.打开一个ethercat主站给应用层使用    19
4.4    Releases a requested EtherCAT master.释放请求的EtherCAT主站    20
5    Master methods 主站方法    20
5.1    Reserves an EtherCAT master for realtime operation.为实时操作保留一个EtherCAT主机。    21
5.2    Sets the locking callbacks.设置锁定回调    21
5.3    Creates a new process data domain.创建一个新的流程数据域    22
5.4    Obtains a slave configuration.获取slave配置    22
5.5    Selects the reference clock for distributed clocks.为分布式时钟选择参考时钟    23
5.6    Obtains master information.得到主站的信息    24
5.7    Obtains slave information获得从站信息    24
5.8    Returns the proposed configuration of a slave's sync manager.返回slave的同步管理器的建议配置    25
5.9    Returns information about a currently assigned PDO返回当前分配的PDO的信息    25
5.10    Returns information about a currently mapped PDO entry返回关于当前映射的PDO条目的信息    26
5.11    Executes an SDO download request to write data to a slave.    26
5.12    Executes an SDO download request to write data to a slave via complete    27
5.13    Executes an SDO upload request to read data from a slave.    27
5.14    Executes an SoE write request.    28
5.15    Executes an SoE read request.    28
5.16    Finishes the configuration phase and prepares for cyclic operation完成配置阶段并准备循环操作。    29
5.17    Deactivates the master.    29
5.18    Set interval between calls to ecrt_master_send().    30
5.19    Sends all datagrams in the queue发送队列中的所有数据报。    30
5.20    Fetches received frames from the hardware and processes the datagrams从硬件中获取接收的帧并处理数据报    31
5.21    Sends non-application datagrams.    31
5.22    Reads the current master state读当前主站状态    31
5.23    Reads the current state of a redundant link.    32
5.24    Sets the application time.设置应用程序时间    32
5.25    Queues the DC reference clock drift compensation datagram for sending将DC参考时钟漂移补偿数据报排队以便发送    33
5.26    Queues the DC reference clock drift compensation datagram for sending.    33
5.27    Queues the DC clock drift compensation datagram for sending.    34
5.28    Get the lower 32 bit of the reference clock system time.    34
5.29    Queues the DC synchrony monitoring datagram for sending.    34
5.30    Processes the DC synchrony monitoring datagram处理DC同步监控数据    35
5.31    Retry configuring slaves重试配置从站    35
6    Slave configuration methods 从站配置方法    36
6.1    Configure a sync manager配置同步管理器    36
6.2    Configure a slave's watchdog times配置一个从站看门狗时间    36
6.3    Add a PDO to a sync manager's PDO assignment添加一个PDO到同步管理器的PDO分配中    37
6.4    Clear a sync manager's PDO assignment清除同步管理器的PDO分配    37
6.5    Add a PDO entry to the given PDO's mapping.添加一个PDO条目到给定的PDO映射    38
6.6    Clear the mapping of a given PDO清除给定PDo的映射    38
6.7    Specify a complete PDO configuration指定一个完整的PDO配置    39
6.8    Registers a PDO entry for process data exchange in a domain为域中的进程数据交换注册一个PDO条目    41
6.9    Registers a PDO entry using its position使用其位置重新注册PDO条目    41
6.10    Configure distributed clocks配置分布式时钟    42
6.11    Add an SDO configuration添加SDO配置    42
6.12    Add a configuration value for an 8-bit SDO添加一个8位SDO的配置值    43
6.13    Add a configuration value for a 16-bit SDO.    44
6.14    Add a configuration value for a 32-bit SDO.    44
6.15    Add configuration data for a complete SDO.    45
6.16    Set the size of the CoE emergency ring buffer.    45
6.17    Read and remove one record from the CoE emergency ring buffer.    46
6.18    Clears CoE emergency ring buffer and the overrun counter.    46
6.19    Read the number of CoE emergency overruns.    46
6.20    Create an SDO request to exchange SDOs during realtime operation创建一个SDO请求以在实时操作期间交换SDO    47
6.21    Create an VoE handler to exchange vendor-specific data during realtime    47
6.22    Create a register request to exchange EtherCAT register contents during    48
6.23    Outputs the state of the slave configuration输出从站的配置状态    48
6.24    Add an SoE IDN configuration.    49
7    Domain methods 域操作方法    50
7.1    Registers a bunch of PDO entries for a domain为一个域注册一堆PDO条目    50
7.2    Returns the current size of the domain's process data返回域进程数据的当前大小    50
7.3    Provide external memory to store the domain's process data提供外部内存来存储域的进程数据    51
7.4    Returns the domain's process data返回域的进程数据    51
7.5    Determines the states of the domain's datagrams确定域的数据报的状态    52
7.6    (Re-)queues all domain datagrams in the master's datagram queue.重新排列所有域数据报    52
7.7    Reads the state of a domain读取域状态    52
8    SDO request methods. SDO请求方法    53
8.1    Set the SDO index and subindex.    53
8.2    Set the timeout for an SDO request.    53
8.3    Access to the SDO request's data.    53
8.4    Returns the current SDO data size.    54
8.5    Get the current state of the SDO request.    54
8.6    Schedule an SDO write operation.    55
8.7    Schedule an SDO read operation.    55
9    VoE handler methods. VoE处理方法    55
9.1    Sets the VoE header for future send operations.    56
9.2    Reads the header data of a received VoE message.    56
9.3    Access to the VoE handler's data.    56
9.4    Returns the current data size.    57
9.5    Start a VoE write operation.    57
9.6    Start a VoE read operation.    58
9.7    Start a VoE read operation without querying the sync manager status.    58
9.8    Execute the handler.    59
10    Register request methods.寄存器请求方法    59
10.1    Access to the register request's data.    59
10.2    Schedule an register write operation.    60
10.3    Schedule a register read operation.    60
11    Bitwise read/write macros 位读/写宏    61
11.1    Read a certain bit of an EtherCAT data byte.    61
11.2    Write a certain bit of an EtherCAT data byte.    61
12    Byte-swapping functions for user space用户空间的字节交换函数    62
13    Read macros 读宏    63
14    Floating-point read functions and macros (userspace only)浮点读取函数和宏(仅限用户空间)    65
15    Write macros 写宏    66
16    Floating-point write functions and macros (userspace only)浮点写函数和宏(仅限用户空间)    67




 

目录
版权	4
1	Global definitions 全局定义	7
2	Feature flags 特性标志	8
3	Data types数据类型	9
3.1	Master state.主站状态	10
3.2	Redundant link state.冗余链路状态。	11
3.3	Slave configuration state.从站配置状态	11
3.4	Master information.主站信息	12
3.5	EtherCAT slave port descriptor. EherCAT 从站端口描述	12
3.6	EtherCAT slave port information.从站端口信息	13
3.7	Slave information.从站信息	13
3.8	Domain working counter interpretation. *域工作计数解释	14
3.9	Domain state.域状态	14
3.10	Direction type for PDO assignment functions.PDO分配函数的方向类型。	15
3.11	Watchdog mode for sync manager configuration.同步管理器配置看门狗模式	15
3.12	PDO entry configuration information. PDO表项配置信息	15
3.13	PDO configuration information. PDO配置信息。	16
3.14	Sync manager configuration information.同步管理器配置信息	16
3.15	List record type for PDO entry mass-registration.列出PDO输入批量注册的记录类型	17
3.16	Request state.请求状态	18
3.17	Application-layer state.应用层状态	18
4	Global functions  全局函数	18
4.1	Returns the version magic of the realtime interface.返回实时接口的版本魔法。	18
4.2	Requests an EtherCAT master for realtime operation.请求EtherCAT主机进行实时操作。	19
4.3	Opens an EtherCAT master for userspace access.打开一个ethercat主站给应用层使用	19
4.4	Releases a requested EtherCAT master.释放请求的EtherCAT主站	20
5	Master methods 主站方法	20
5.1	Reserves an EtherCAT master for realtime operation.为实时操作保留一个EtherCAT主机。	21
5.2	Sets the locking callbacks.设置锁定回调	21
5.3	Creates a new process data domain.创建一个新的流程数据域	22
5.4	Obtains a slave configuration.获取slave配置	22
5.5	Selects the reference clock for distributed clocks.为分布式时钟选择参考时钟	23
5.6	Obtains master information.得到主站的信息	24
5.7	Obtains slave information获得从站信息	24
5.8	Returns the proposed configuration of a slave's sync manager.返回slave的同步管理器的建议配置	25
5.9	Returns information about a currently assigned PDO返回当前分配的PDO的信息	25
5.10	Returns information about a currently mapped PDO entry返回关于当前映射的PDO条目的信息	26
5.11	Executes an SDO download request to write data to a slave.	26
5.12	Executes an SDO download request to write data to a slave via complete	27
5.13	Executes an SDO upload request to read data from a slave.	27
5.14	Executes an SoE write request.	28
5.15	Executes an SoE read request.	28
5.16	Finishes the configuration phase and prepares for cyclic operation完成配置阶段并准备循环操作。	29
5.17	Deactivates the master.	29
5.18	Set interval between calls to ecrt_master_send().	30
5.19	Sends all datagrams in the queue发送队列中的所有数据报。	30
5.20	Fetches received frames from the hardware and processes the datagrams从硬件中获取接收的帧并处理数据报	31
5.21	Sends non-application datagrams.	31
5.22	Reads the current master state读当前主站状态	31
5.23	Reads the current state of a redundant link.	32
5.24	Sets the application time.设置应用程序时间	32
5.25	Queues the DC reference clock drift compensation datagram for sending将DC参考时钟漂移补偿数据报排队以便发送	33
5.26	Queues the DC reference clock drift compensation datagram for sending.	33
5.27	Queues the DC clock drift compensation datagram for sending.	34
5.28	Get the lower 32 bit of the reference clock system time.	34
5.29	Queues the DC synchrony monitoring datagram for sending.	34
5.30	Processes the DC synchrony monitoring datagram处理DC同步监控数据	35
5.31	Retry configuring slaves重试配置从站	35
6	Slave configuration methods 从站配置方法	36
6.1	Configure a sync manager配置同步管理器	36
6.2	Configure a slave's watchdog times配置一个从站看门狗时间	36
6.3	Add a PDO to a sync manager's PDO assignment添加一个PDO到同步管理器的PDO分配中	37
6.4	Clear a sync manager's PDO assignment清除同步管理器的PDO分配	37
6.5	Add a PDO entry to the given PDO's mapping.添加一个PDO条目到给定的PDO映射	38
6.6	Clear the mapping of a given PDO清除给定PDo的映射	38
6.7	Specify a complete PDO configuration指定一个完整的PDO配置	39
6.8	Registers a PDO entry for process data exchange in a domain为域中的进程数据交换注册一个PDO条目	41
6.9	Registers a PDO entry using its position使用其位置重新注册PDO条目	41
6.10	Configure distributed clocks配置分布式时钟	42
6.11	Add an SDO configuration添加SDO配置	42
6.12	Add a configuration value for an 8-bit SDO添加一个8位SDO的配置值	43
6.13	Add a configuration value for a 16-bit SDO.	44
6.14	Add a configuration value for a 32-bit SDO.	44
6.15	Add configuration data for a complete SDO.	45
6.16	Set the size of the CoE emergency ring buffer.	45
6.17	Read and remove one record from the CoE emergency ring buffer.	46
6.18	Clears CoE emergency ring buffer and the overrun counter.	46
6.19	Read the number of CoE emergency overruns.	46
6.20	Create an SDO request to exchange SDOs during realtime operation创建一个SDO请求以在实时操作期间交换SDO	47
6.21	Create an VoE handler to exchange vendor-specific data during realtime	47
6.22	Create a register request to exchange EtherCAT register contents during	48
6.23	Outputs the state of the slave configuration输出从站的配置状态	48
6.24	Add an SoE IDN configuration.	49
7	Domain methods 域操作方法	50
7.1	Registers a bunch of PDO entries for a domain为一个域注册一堆PDO条目	50
7.2	Returns the current size of the domain's process data返回域进程数据的当前大小	50
7.3	Provide external memory to store the domain's process data提供外部内存来存储域的进程数据	51
7.4	Returns the domain's process data返回域的进程数据	51
7.5	Determines the states of the domain's datagrams确定域的数据报的状态	52
7.6	(Re-)queues all domain datagrams in the master's datagram queue.重新排列所有域数据报	52
7.7	Reads the state of a domain读取域状态	52
8	SDO request methods. SDO请求方法	53
8.1	Set the SDO index and subindex.	53
8.2	Set the timeout for an SDO request.	53
8.3	Access to the SDO request's data.	53
8.4	Returns the current SDO data size.	54
8.5	Get the current state of the SDO request.	54
8.6	Schedule an SDO write operation.	55
8.7	Schedule an SDO read operation.	55
9	VoE handler methods. VoE处理方法	55
9.1	Sets the VoE header for future send operations.	56
9.2	Reads the header data of a received VoE message.	56
9.3	Access to the VoE handler's data.	56
9.4	Returns the current data size.	57
9.5	Start a VoE write operation.	57
9.6	Start a VoE read operation.	58
9.7	Start a VoE read operation without querying the sync manager status.	58
9.8	Execute the handler.	59
10	Register request methods.寄存器请求方法	59
10.1	Access to the register request's data.	59
10.2	Schedule an register write operation.	60
10.3	Schedule a register read operation.	60
11	Bitwise read/write macros 位读/写宏	61
11.1	Read a certain bit of an EtherCAT data byte.	61
11.2	Write a certain bit of an EtherCAT data byte.	61
12	Byte-swapping functions for user space用户空间的字节交换函数	62
13	Read macros 读宏	63
14	Floating-point read functions and macros (userspace only)浮点读取函数和宏(仅限用户空间)	65
15	Write macros 写宏	66
16	Floating-point write functions and macros (userspace only)浮点写函数和宏(仅限用户空间)	67



1     Global definitions 全局定义... 7

2     Feature flags 特性标志... 8

3     Data types数据类型... 9

3.1      Master state.主站状态... 10

3.2      Redundant link state.冗余链路状态。... 11

3.3      Slave configuration state.从站配置状态... 11

3.4      Master information.主站信息... 12

3.5      EtherCAT slave port descriptor. EherCAT 从站端口描述... 12

3.6      EtherCAT slave port information.从站端口信息... 13

3.7      Slave information.从站信息... 13

3.8      Domain working counter interpretation. *域工作计数解释... 14

3.9      Domain state.域状态... 14

3.10    Direction type for PDO assignment functions.PDO分配函数的方向类型。... 15

3.11    Watchdog mode for sync manager configuration.同步管理器配置看门狗模式... 15

3.12    PDO entry configuration information. PDO表项配置信息... 15

3.13    PDO configuration information. PDO配置信息。... 16

3.14    Sync manager configuration information.同步管理器配置信息... 16

3.15    List record type for PDO entry mass-registration.列出PDO输入批量注册的记录类型    17

3.16    Request state.请求状态... 18

3.17    Application-layer state.应用层状态... 18

4     Global functions  全局函数... 18

4.1      Returns the version magic of the realtime interface.返回实时接口的版本魔法。... 18

4.2      Requests an EtherCAT master for realtime operation.请求EtherCAT主机进行实时操作。... 19

4.3      Opens an EtherCAT master for userspace access.打开一个ethercat主站给应用层使用    19

4.4      Releases a requested EtherCAT master.释放请求的EtherCAT主站... 20

5     Master methods 主站方法... 20

5.1      Reserves an EtherCAT master for realtime operation.为实时操作保留一个EtherCAT主机。... 21

5.2      Sets the locking callbacks.设置锁定回调... 21

5.3      Creates a new process data domain.创建一个新的流程数据域... 22

5.4      Obtains a slave configuration.获取slave配置... 22

5.5      Selects the reference clock for distributed clocks.为分布式时钟选择参考时钟... 23

5.6      Obtains master information.得到主站的信息... 24

5.7      Obtains slave information获得从站信息... 24

5.8      Returns the proposed configuration of a slave's sync manager.返回slave的同步管理器的建议配置... 25

5.9      Returns information about a currently assigned PDO返回当前分配的PDO的信息    25

5.10    Returns information about a currently mapped PDO entry返回关于当前映射的PDO条目的信息... 26

5.11    Executes an SDO download request to write data to a slave. 26

5.12    Executes an SDO download request to write data to a slave via complete. 27

5.13    Executes an SDO upload request to read data from a slave. 27

5.14    Executes an SoE write request. 28

5.15    Executes an SoE read request. 28

5.16    Finishes the configuration phase and prepares for cyclic operation完成配置阶段并准备循环操作。... 29

5.17    Deactivates the master. 29

5.18    Set interval between calls to ecrt_master_send(). 30

5.19    Sends all datagrams in the queue发送队列中的所有数据报。... 30

5.20    Fetches received frames from the hardware and processes the datagrams从硬件中获取接收的帧并处理数据报... 31

5.21    Sends non-application datagrams. 31

5.22    Reads the current master state读当前主站状态... 31

5.23    Reads the current state of a redundant link. 32

5.24    Sets the application time.设置应用程序时间... 32

5.25    Queues the DC reference clock drift compensation datagram for sending将DC参考时钟漂移补偿数据报排队以便发送... 33

5.26    Queues the DC reference clock drift compensation datagram for sending. 33

5.27    Queues the DC clock drift compensation datagram for sending. 34

5.28    Get the lower 32 bit of the reference clock system time. 34

5.29    Queues the DC synchrony monitoring datagram for sending. 34

5.30    Processes the DC synchrony monitoring datagram处理DC同步监控数据... 35

5.31    Retry configuring slaves重试配置从站... 35

6     Slave configuration methods 从站配置方法... 36

6.1      Configure a sync manager配置同步管理器... 36

6.2      Configure a slave's watchdog times配置一个从站看门狗时间... 36

6.3      Add a PDO to a sync manager's PDO assignment添加一个PDO到同步管理器的PDO分配中... 37

6.4      Clear a sync manager's PDO assignment清除同步管理器的PDO分配... 37

6.5      Add a PDO entry to the given PDO's mapping.添加一个PDO条目到给定的PDO映射    38

6.6      Clear the mapping of a given PDO清除给定PDo的映射... 38

6.7      Specify a complete PDO configuration指定一个完整的PDO配置... 39

6.8      Registers a PDO entry for process data exchange in a domain为域中的进程数据交换注册一个PDO条目... 41

6.9      Registers a PDO entry using its position使用其位置重新注册PDO条目... 41

6.10    Configure distributed clocks配置分布式时钟... 42

6.11    Add an SDO configuration添加SDO配置... 42

6.12    Add a configuration value for an 8-bit SDO添加一个8位SDO的配置值... 43

6.13    Add a configuration value for a 16-bit SDO. 44

6.14    Add a configuration value for a 32-bit SDO. 44

6.15    Add configuration data for a complete SDO. 45

6.16    Set the size of the CoE emergency ring buffer. 45

6.17    Read and remove one record from the CoE emergency ring buffer. 46

6.18    Clears CoE emergency ring buffer and the overrun counter. 46

6.19    Read the number of CoE emergency overruns. 46

6.20    Create an SDO request to exchange SDOs during realtime operation创建一个SDO请求以在实时操作期间交换SDO.. 47

6.21    Create an VoE handler to exchange vendor-specific data during realtime. 47

6.22    Create a register request to exchange EtherCAT register contents during. 48

6.23    Outputs the state of the slave configuration输出从站的配置状态... 48

6.24    Add an SoE IDN configuration. 49

7     Domain methods 域操作方法... 50

7.1      Registers a bunch of PDO entries for a domain为一个域注册一堆PDO条目... 50

7.2      Returns the current size of the domain's process data返回域进程数据的当前大小    50

7.3      Provide external memory to store the domain's process data提供外部内存来存储域的进程数据... 51

7.4      Returns the domain's process data返回域的进程数据... 51

7.5      Determines the states of the domain's datagrams确定域的数据报的状态... 52

7.6      (Re-)queues all domain datagrams in the master's datagram queue.重新排列所有域数据报... 52

7.7      Reads the state of a domain读取域状态... 52

8     SDO request methods. SDO请求方法... 53

8.1      Set the SDO index and subindex. 53

8.2      Set the timeout for an SDO request. 53

8.3      Access to the SDO request's data. 53

8.4      Returns the current SDO data size. 54

8.5      Get the current state of the SDO request. 54

8.6      Schedule an SDO write operation. 55

8.7      Schedule an SDO read operation. 55

9     VoE handler methods. VoE处理方法... 55

9.1      Sets the VoE header for future send operations. 56

9.2      Reads the header data of a received VoE message. 56

9.3      Access to the VoE handler's data. 56

9.4      Returns the current data size. 57

9.5      Start a VoE write operation. 57

9.6      Start a VoE read operation. 58

9.7      Start a VoE read operation without querying the sync manager status. 58

9.8      Execute the handler. 59

10       Register request methods.寄存器请求方法... 59

10.1    Access to the register request's data. 59

10.2    Schedule an register write operation. 60

10.3    Schedule a register read operation. 60

11       Bitwise read/write macros 位读/写宏... 61

11.1    Read a certain bit of an EtherCAT data byte. 61

11.2    Write a certain bit of an EtherCAT data byte. 61

12       Byte-swapping functions for user space用户空间的字节交换函数... 62

13       Read macros 读宏... 63

14       Floating-point read functions and macros (userspace only)浮点读取函数和宏(仅限用户空间) 65

15       Write macros 写宏... 66

16       Floating-point write functions and macros (userspace only)浮点写函数和宏(仅限用户空间) 67

EtherCAT 伺服控制功能块实现 EtherCAT 是运动控制领域主要的通信协议,开源EtherCAT 主站协议栈 IgH 和SOEM 两个项目,IgH 相对更普及一些,但是它是基于Linux 内核的方式,比SOEM更复杂一些。使用IgH 协议栈编写一个应用程序,控制EtherCAT 伺服电机驱动器是比较简单的。但是要实现一个通用的EtherCAT 组件库(例如IEC61131-3 ,或者IEC61499功能块)就复杂一些了,例如动态地加入一个从站驱动器,通过组件控制某一个从站。本博文研究基于组件的EtherCAT 程序架构及其实现方法。 阅读详情

相关推荐

Igh Ethercat 从机做为DC参考时钟的个人理解

/** Queues the DC reference clock drift compensation datagram for sending. * * The reference clock will by synchronized to the application time provided * by the last call off ecrt_master_application_time(). */ void ecrt_master_sync_reference_clock( ...

exat500g的博客 5093

IGH(ethercat)引用头文件ecrt.h说明(example)

/** Master state. *主站状态 * This is used for the output parameter of ecrt_master_state(). *函数ecrt_master_state()的输出参数 * \see ecrt_master_state(). */ typedef struct { unsigned int slaves_responding; /**< Sum of responding slaves on all ...

关注工业机器人应用 1442

TwinCAT走伺服的操作模式

1.操作模式种类TwinCAT走伺服的操作模式基于CANopen协议,想要深入了解的可以看ETG6010,本文主要写如何走这些模式。模式种类由下表所示:2.Profile Position Mode伺服从上位机接收命令后,控制伺服电机达到目标位置。操作步骤:a.6060h mode of operation:设置为0x01。b.607Ah target position:设定目标位置。c.6081...

JojenZz的博客 1万+

ethercat igh 应用层调用接口

是 IgH EtherCAT Master 提供的核心应用层接口头文件,它定义了与主站交互、配置从站、管理过程数据域 (Process Data Domain) 以及执行 SDO (Service Data Object) 访问等所需的函数、类型和常量。在使用时,请务必参考你所使用的具体 IgH EtherCAT Master 版本的头文件和官方文档。用于配置从站的同步管理器 (SyncManager, SM),主要用于 PDO 通信。配置必须在主站激活前完成。用于配置和管理支持 DC 的从站的时钟同步。

u013304893的博客 2186

igh ethercat 台达电机控制代码

ethercat主站资料较少,相关应用就更少了。好不容易找到一段控制台达电机的代码,亲自测试过能驱动点击标准的ds402协议

Zemax非序列模式微透镜阵列仿真:从建模到优化完整指南

光线追迹是光学系统仿真的核心技术,其原理基于几何光学与物理光学的光线传播模型,通过精确计算光线在光学元件中的折射、反射与散射路径,实现对系统性能的预测与评估。在微透镜阵列等复杂多通道光学系统中,传统序列模式因光线路径受限而难以准确模拟串扰与杂散光,非序列光线追迹技术则凭借其灵活的空间传播机制成为关键手段。该技术广泛应用于激光整形、光束匀化、3D传感及光场成像等领域,能够有效支持阵列结构设计与优化。Zemax非序列模式为微透镜阵列仿真提供了完整的建模、优化与公差分析流程,是光学工程师进行复杂系统设计的核心工具

weixin_29967003的博客 346

ecrt_master_application_time

Added the distributed clocks feature and the respective method * ecrt_slave_config_dc() to configure a slave for cyclic operation, and * ecrt_master_application_time(), ecrt_master_sync_referenc...

老鹰不捉小鸡 1728

汽车诊断之UDS入门-0x19 0x0A服务

0x19 0x0A解析

weixin_44842720的博客 3850

EtherCAT源代码分析(1)

主站应用层代码(example/user/main.c)为入口,好好探究一下主站都做了什么,一点点分析。 master = ecrt_request_master(0); 在文件ecrt.h中对于这个函数的描述是这样的 /** Requests an EtherCAT master for realtime operation. * * Before an application can ...

qq_43530144的博客 6141

二次规划问题(qp)和序列二次规划问题(sqp)的简单理解

当二次规划的约束为非线性约束时,通常会采用sqp进行求解,用连续求解qp的方法来得到非线性约束条件下的最优解,上述的qpoases和osqp均无法直接求解非线性约束问题,所以如果使用这两个库的话,注意,sqp是结果,而不是原因,只有在非线性约束的情况下才会考虑sqp求解,如果问题本身就是线性约束,则直接用qp解就行。对于工程师而言,我们在编写代码的时候,并不关心二次规划问题的求解细节,所以一般是把二次规划问题建立好后,直接调用三方库进行求解。因为约束为非线性约束,所以先将约束进行线性化,约束原方程为。

zmhzmhzm的博客 1万+

Synopsys工具链实战:如何用VCS、DC、ICC和Calibre跑通你的第一个数字IC设计项目?

本文详细介绍了如何使用Synopsys工具链(VCS、Design Compiler、ICC和Calibre)完成数字IC设计项目,从RTL代码到GDSII版图的全流程。涵盖环境配置、RTL设计验证、逻辑综合、物理实现及签核验证等关键步骤,帮助工程师掌握高效的数字IC设计流程。

weixin_42525005的博客 202

EtherCAT 开源主站 IGH 在 linux 开发板的移植和伺服通信测试

EtherCAT的开源主站协议 栈IgH ,是用的最多且实时性最好的 EtherCAT 开源主站。很多公司项目软件主站都是用的它,有很多软件专利可以挖掘。一些公司的机器人主控四肢电机驱动器通讯,采用的也是IgH。关于EtherCAT主站协议栈,目前有两大主流开源代码为SOEM(即支持Linux,又支持windows )和IgH EtherCAT Master只支持Linux )。本文以IgH最新稳定版本1.6来移植,简单记录下IgH EtherCAT Master在嵌入式系统中的移植过程。

猫哥 的沉淀、积累、总结。天天学习,好好向上...c/c++,嵌入式 linux,Android,HarmonyOS,AIOT) 1万+

Dify工作流自动化:如何用Trae AI助手10倍提升你的开发效率(含避坑指南)

本文详细介绍了如何利用Trae AI助手自动化生成Dify工作流,实现开发效率的10倍提升。通过构建DSL示例库、精准需求描述和四步实战法,开发者可将重复的配置工作交给AI,快速生成可运行的工作流,并提供了关键的避坑指南。

weixin_29062865的博客 374

IGH 控制伺服的一个例子(验证中)

介绍了一个伺服控制的程序例子(使用子线程通讯交换数据),主线程与用户交互。还在测试中。

关注工业机器人应用 2436

别再折腾环境了!Windows 11 + VSCode + CMake 3.31.4 + MinGW-w64 一键式配置指南(附常见报错解决)

本文提供Windows 11下VSCode、CMake 3.31.4和MinGW-w64的一键式配置指南,帮助开发者快速搭建高效C++开发环境。涵盖工具链选型、环境变量配置、项目初始化及常见报错解决方案,大幅提升开发效率。

weixin_28841265的博客 191

将CityScapes数据集转换为COCO格式的实例分割数据集

##¥##2019年结束前最后两小时,写出本年度最后一篇博客,不是博主没地方去跨年,实在是Coding乐趣无穷ahhhh ##¥## COCO数据集是研究实例分割的通用数据集,但是针对道路环境的数据较少,对于自动驾驶和移动机器人的应用并不适配。而提供道路环境的实例分割数据的数据集目前有KITTI、CityScapes、Apllo等,CityScapes算是应用较广,数据质量较高的一个,所以,本篇...

陆羽飞的博客 9945

iGH EtherCAT初始化流程分析(四)

用户程序通过ecrt_request_master请求主站设备,该函数调用ecrt_request_master_err(),取得master设备,并执行ec_master_enter_operation_phase()函数。

zhandl的博客 5808

[ vulhub漏洞复现篇 ] Jetty WEB-INF 文件读取复现CVE-2021-34429

[ vulhub漏洞复现篇 ] Jetty WEB-INF 文件读取复现CVE-2021-34429 可以使用一些编码字符来制作URI,以访问WEB-INF目录的内容和/或绕过一些安全限制。默认合规模式允许带有包含 %u002e 段的 URI 的请求访问WEB-INF目录中的受保护资源。

qq_51577576的博客 3211

深度解析 IGH EtherCAT 主站核心文件体系:构成、作用与生成逻辑

深度解析 IGH EtherCAT 主站核心文件体系:构成、作用与生成逻辑

h542812556sdu的博客 1078

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

EtherCAT State Machine Transitions

SyncManagers are enabled by the following settings of the master during network initialization. - Physical address of ESC - Data length - SyncManager control input: i. Operation mode (mailbox-mode

烟酒僧的专栏 1777

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

EtherCAT使用与解析-关于PDO映射生效以及主站状态机在此过程的作用

在PDO映射配置一文https://blog.csdn.net/lswdcyy/article/details/105453144,已经针对从站的同步管理器配置已经基本描述了,本章描述关于PDO映射如何在从站中生效的相关内容。 PDO映射交换目前我已知的内容涉及到3个部分:sync同步管理器配置,FMMU配置以及PDO映射关系配置: 先说sync同步管理器配置和FMMU配置,两者差别不大,sy...

lswdcyy的博客 5426

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

igh ethercat DC同步 -- 基于rtai_rtdm_dc/main.c

/选择参考时钟,从机设备为sc_ek1100。通过线程休眠使主从站循环周期对齐,时间补偿调整休眠时间。DC同步分为静态同步:在非周期任务下同步 --- > 计算时钟偏移以及传输延时 --- >预运行阶段进行。

weixin_58059347的博客 1022

Ethercat Process data过程数据参考

同步管理器(SM)可通过 “过程数据” 选项卡更改可用过程数据的范围(见下图)。

flyflyfly12345的博客 949

基于STM32构建EtherCAT主站(SOEM方案)5

基于stm32构建ethercat主站

cln512的博客 4445

Etherlab IGH DC问题

同步时钟有两种方式:1.使用主站时钟作为整个从机时钟的DC同步方式(同步时间长,误差大)2.使用第一个带DC的从站作为参考时钟,然后将主站时钟锁定至参考时钟(同步时间短,误差小)以下来自[etherlab-users] DC questions:Igh-EthercatMaster的dc_user例子里给的是使用主站时钟作为整个从机时钟的DC同步方式a) EtherCAT master is th...

PI_sunyang的博客 3567
上一篇: IGH(ethercat)命令行不能进入OP原因
下一篇: 03 ethercat(IGH)主要的数据类型
leecheni
博客等级 码龄16年 1976粉丝 62原创
评论 2
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址