Difference between revisions of "EtherCAT:EC ETHERCAT INIT"
(Created page with "{{Axystems:Template:EtherCAT-Function |DESCRIPTION= Initialize EtherCAT |INPUT= Bus ID, Address by alias |OUTPUT= None |RETURN VALUE= void |DECLARATION= public sub EC_ETH...") |
|||
| Line 2: | Line 2: | ||
|DESCRIPTION= | |DESCRIPTION= | ||
| − | Initialize EtherCAT | + | Initialize EtherCAT. This subroutine uses two flags.<br/> |
| + | The flag EC_ADDRESS_BY_ALIAS determines whether slave addressing is position based (ZERO) or is done according | ||
| + | to dip switch setting (ONE). | ||
| + | The global flag EC_BUSID determines the field bus that will be used. At the moment only EtherCAT exists, and the flag | ||
| + | is automatically set to zero. In the future it will have a bigger role. | ||
| + | |||
|INPUT= | |INPUT= | ||
| − | + | EC_BUSID, EC_ADDRESS_BY_ALIAS | |
|OUTPUT= | |OUTPUT= | ||
| Line 18: | Line 23: | ||
|EXAMPLE= | |EXAMPLE= | ||
| − | call EC_ETHERCAT_INIT( | + | call EC_ETHERCAT_INIT(EC_BUSID, EC_ADDRESS_BY_ALIAS) |
}} | }} | ||