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

From SoftMC-Wiki
Jump to: navigation, search
m
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
{{Languages|EtherCAT:EC_USER_PREOP_CONFIG}}
 
{{Template:EtherCAT-Function
 
{{Template:EtherCAT-Function
  
Line 8: Line 9:
 
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/>
 
 
|INPUT=
 
|INPUT=
 
Slave address
 
Slave address

Latest revision as of 08:42, 7 May 2017

Language: English  • 中文(简体)‎

Configuration of EtherCAT slaves must be performed carefully. Some configurations must be done while the slaves are still in PREOP mode, and some are done while the slaves are in SAFEOP mode.

This function and its counterparts 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 to add his own code in order to conduct specific configuration of EtherCAT slaves.

EC USER PREOP CONFIG(slave address) is invoked while the slaves are still in PREOP mode.

Input

Slave address

Output

None

Return Value

0 on success, -1 if failed. The user can change that.

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