Difference between revisions of "EtherCAT:EC USER PREOP CONFIG"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with "{{Template:EtherCAT-Function |DESCRIPTION= EtherCAT slaves configuration is done carefully because some configurations must be carried out while the slaves are still in PREOP...")
 
Line 3: Line 3:
 
|DESCRIPTION=
 
|DESCRIPTION=
 
EtherCAT slaves configuration is done carefully because some configurations must be carried out while the slaves are still in PREOP mode and some configurations are done when the slaves are in SAFEOP mode.<br/>
 
EtherCAT slaves configuration is done carefully because some configurations must be carried out while the slaves are still in PREOP mode and some configurations are done when the slaves are in SAFEOP mode.<br/>
This function and its counterpart [[EtherCAT:EC USER SAFEOP CONFIG|EC_USER_SAFEOP_CONFIG]] are implemented in the library EC_USER.LIB. The purpose of these functions is to allow the user '''add his own code''' in order to conduct specific configuration to EtherCAT slaves.
+
This function and its counterpart [[EtherCAT:EC USER SAFEOP CONFIG|EC_USER_SAFEOP_CONFIG]] and [[EtherCAT:EC USER OP CONFIG|EC_USER_OP_CONFIG]] are implemented in the library EC_USER.LIB. The purpose of these functions is to allow the user '''add his own code''' in order to conduct specific configuration to EtherCAT slaves.
 
EC USER PREOP CONFIG(slave address) is invoked while the slaves are still in PREOP mode.
 
EC USER PREOP CONFIG(slave address) is invoked while the slaves are still in PREOP mode.
 +
  
 
<br/>
 
<br/>
Line 29: Line 30:
 
|SEE ALSO=
 
|SEE ALSO=
 
* [[EtherCAT:EC USER SAFEOP CONFIG|EC_USER_SAFEOP_CONFIG]]
 
* [[EtherCAT:EC USER SAFEOP CONFIG|EC_USER_SAFEOP_CONFIG]]
 +
* [[EtherCAT:EC USER OP CONFIG|EC_USER_OP_CONFIG]]
 
* [[:Category:EtherCAT:EC SETUP|Setup EtherCAT]]
 
* [[:Category:EtherCAT:EC SETUP|Setup EtherCAT]]
  
 
}}
 
}}

Revision as of 15:27, 4 January 2015

EtherCAT slaves configuration is done carefully because some configurations must be carried out while the slaves are still in PREOP mode and some configurations are done when the slaves are in SAFEOP mode.
This function and its counterpart EC_USER_SAFEOP_CONFIG and EC_USER_OP_CONFIG are implemented in the library EC_USER.LIB. The purpose of these functions is to allow the user add his own code in order to conduct specific configuration to EtherCAT slaves. EC USER PREOP CONFIG(slave address) is invoked while the slaves are still in PREOP mode.



Input

Slave address, SDO index, SDO sub-index, Variable size (32 or 64 bits).

Output

None

Return Value

Value that is read from the slave.

Declaration

public function EC_USER_PREOP_CONFIG(byval slave_addr as long) as long

Syntax

retVal = EC_USER_PREOP_CONFIG(<Slave address>)

Examples

for i = 1 to NUM_OF_SLAVES

   retVal = EC_USER_PREOP_CONFIG(i)

next

See Also