Difference between revisions of "EtherCAT:EC SLAVE GET HOMING PARAMETERS"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with "{{Axystems:Template:EtherCAT-Function |DESCRIPTION= Set homing parameters in a certain slave |INPUT= Generic axis, Parameter number, Parameter's new value |OUTPUT= None |R...")
 
Line 2: Line 2:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Set homing parameters in a certain slave
+
This function RETURNS homing parameter in a certain slave
  
 
|INPUT=
 
|INPUT=
Generic axis, Parameter number, Parameter's new value
+
Generic axis, Parameter number
  
 
|OUTPUT=
 
|OUTPUT=
Line 11: Line 11:
  
 
|RETURN VALUE=
 
|RETURN VALUE=
Void
+
homing parameter as long
  
 
|DECLARATION=
 
|DECLARATION=
public sub EC_SLAVE_SET_HOMING_PARAMETERS(ax as generic axis, byval paramNum as long, byval paramVal as long)
+
public function EC_SLAVE_GET_HOMING_PARAMETERS(ax as generic axis, byval paramNum as long) as long
 
 
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Line 28: Line 27:
  
 
|EXAMPLE=
 
|EXAMPLE=
call EC_SLAVE_SET_HOMING_PARAMETERS(ax1, HOMING_METHOD, 34)<br/>
+
tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, HOMING_METHOD)<br/>
call EC_SLAVE_SET_HOMING_PARAMETERS(ax1, HOMING_OFFSET, 4)<br/>
+
tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, HOMING_OFFSET)<br/>
call EC_SLAVE_SET_HOMING_PARAMETERS(ax1, FAST_HOMING_SPEED, 2083334)<br/>
+
tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, FAST_HOMING_SPEED)<br/>
call EC_SLAVE_SET_HOMING_PARAMETERS(ax1, SLOW_HOMING_SPEED, 416668)<br/>
+
tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, SLOW_HOMING_SPEED)<br/>
call EC_SLAVE_SET_HOMING_PARAMETERS(ax1, HOMING_ACCELERATION, 16666664)<br/>
+
tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, HOMING_ACCELERATION)<br/>
 +
 
 +
 
 +
|SEE ALSO=
 +
* [[Axystems:EtherCAT:EC SLAVE HOME]]
 +
* [[Axystems:EtherCAT:EC_SLAVE_SET_HOMING_PARAMETERS]]
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:EtherCAT:EC SLAVE HOME|EC SLAVE HOME]]
+
* [[Axystems:EtherCAT:EC_SLAVE_HOME|EC_SLAVE_HOME]]
* [[Axystems:EtherCAT:EC_SLAVE_GET_HOMING_PARAMETERS|EC_SLAVE_GET_HOMING_PARAMETERS]]
+
* [[Axystems:EtherCAT:EC_SLAVE_SET_HOMING_PARAMETERS|EC_SLAVE_GET_HOMING_PARAMETERS]]
  
 
}}
 
}}

Revision as of 14:51, 9 January 2013