Difference between revisions of "EtherCAT:EC ETHERCAT INIT"
m (Text replace - "Axystems:" to "") |
|||
| Line 2: | Line 2: | ||
|DESCRIPTION= | |DESCRIPTION= | ||
| − | Initialize EtherCAT. This subroutine uses two flags.<br/> | + | Initialize EtherCAT. This subroutine uses two global flags.<br/> |
The flag EC_ADDRESS_BY_ALIAS determines whether slave addressing is position based (ZERO) or is done according | The flag EC_ADDRESS_BY_ALIAS determines whether slave addressing is position based (ZERO) or is done according | ||
to dip switch setting (ONE).<br/> | to dip switch setting (ONE).<br/> | ||
| Line 10: | Line 10: | ||
|INPUT= | |INPUT= | ||
| − | + | None | |
|OUTPUT= | |OUTPUT= | ||
| Line 19: | Line 19: | ||
|DECLARATION= | |DECLARATION= | ||
| − | public sub EC_ETHERCAT_INIT | + | public sub EC_ETHERCAT_INIT |
|EXAMPLE= | |EXAMPLE= | ||
| − | call EC_ETHERCAT_INIT | + | call EC_ETHERCAT_INIT |
}} | }} | ||
Revision as of 08:52, 6 October 2014
Initialize EtherCAT. This subroutine uses two global flags.
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
None
Output
None
Return Value
void
Declaration
public sub EC_ETHERCAT_INIT
Examples
call EC_ETHERCAT_INIT