Difference between revisions of "EtherCAT:EC ETHERCAT INIT"

From SoftMC-Wiki
Jump to: navigation, search
(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...")
 
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Axystems:Template:EtherCAT-Function
+
{{Languages|EtherCAT:EC_ETHERCAT_INIT}}
 +
{{Template:EtherCAT-Function
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Initialize EtherCAT
+
Initializes 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
 +
to a DIP switch setting (ONE).<br/>
 +
The global flag EC_BUSID determines the fieldbus that will be used. Currently only EtherCAT exists, and the flag
 +
is automatically set to zero. <!-- In the future it will have a bigger role. -->
 +
 
  
 
|INPUT=
 
|INPUT=
Bus ID, Address by alias
+
None
  
 
|OUTPUT=
 
|OUTPUT=
Line 14: Line 20:
  
 
|DECLARATION=
 
|DECLARATION=
public sub EC_ETHERCAT_INIT(byval busid as long,byval byalias as long)
+
public sub EC_ETHERCAT_INIT
  
  
 
|EXAMPLE=
 
|EXAMPLE=
call EC_ETHERCAT_INIT(busid ,address_by_alias)
+
call EC_ETHERCAT_INIT
  
 
}}
 
}}

Latest revision as of 15:55, 5 May 2017

Language: English  • 中文(简体)‎

Initializes 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 a DIP switch setting (ONE).
The global flag EC_BUSID determines the fieldbus that will be used. Currently only EtherCAT exists, and the flag is automatically set to zero.

Input

None

Output

None

Return Value

void

Declaration

public sub EC_ETHERCAT_INIT

Examples

call EC_ETHERCAT_INIT