Difference between revisions of "EtherCAT:EC ETHERCAT INIT"
m (Miborich moved page Axystems:EtherCAT:EC ETHERCAT INIT to EtherCAT:EC ETHERCAT INIT: Global renaming of Axystems: namespace into (Main):) |
m (Text replace - "Axystems:" to "") |
||
| Line 1: | Line 1: | ||
| − | {{ | + | {{Template:EtherCAT-Function |
|DESCRIPTION= | |DESCRIPTION= | ||
Revision as of 09:12, 22 May 2014
Initialize EtherCAT. This subroutine uses two 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
EC_BUSID, EC_ADDRESS_BY_ALIAS
Output
None
Return Value
void
Declaration
public sub EC_ETHERCAT_INIT(byval busid as long,byval byalias as long)
Examples
call EC_ETHERCAT_INIT(EC_BUSID, EC_ADDRESS_BY_ALIAS)