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...")
 
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Axystems:Template:EtherCAT-Function
+
{{Languages|EtherCAT:EC_SLAVE_GET_HOMING_PARAMETERS}}
 +
{{Template:EtherCAT-Function
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Set homing parameters in a certain slave
+
This function returns the value of a homing parameter in a slave.
  
 
|INPUT=
 
|INPUT=
Generic axis, Parameter number, Parameter's new value
+
Generic axis, Parameter number
  
 
|OUTPUT=
 
|OUTPUT=
Line 11: Line 12:
  
 
|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
  
 +
|EXAMPLE=
 +
tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, HOMING_METHOD)<br/>
 +
tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, HOMING_OFFSET)<br/>
 +
tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, FAST_HOMING_SPEED)<br/>
 +
tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, SLOW_HOMING_SPEED)<br/>
 +
tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, HOMING_ACCELERATION)<br/>
  
|LIMITATIONS=
 
Available parameters' numbers and their ranges are as follows:<br/>
 
1 - HOMING_METHOD [1 to 36]<br/>
 
2 - HOMING_OFFSET ....<br/>
 
3 - FAST_HOMING_SPEED [0 to 4294967295]<br/>
 
4 - SLOW_HOMING_SPEED [0 to 4294967295]<br/>
 
5 - HOMING_ACCELERATION/DECELERATION [0 to 4294967295]<br/>
 
 
For further details about homing please refer to the documentation CDHD_CANopen_for_CAN_and_EtherCAT_Drives_Rev2 0 v5.pdf
 
 
|EXAMPLE=
 
call EC_SLAVE_SET_HOMING_PARAMETERS(ax1, HOMING_METHOD, 34)<br/>
 
call EC_SLAVE_SET_HOMING_PARAMETERS(ax1, HOMING_OFFSET, 4)<br/>
 
call EC_SLAVE_SET_HOMING_PARAMETERS(ax1, FAST_HOMING_SPEED, 2083334)<br/>
 
call EC_SLAVE_SET_HOMING_PARAMETERS(ax1, SLOW_HOMING_SPEED, 416668)<br/>
 
call EC_SLAVE_SET_HOMING_PARAMETERS(ax1, HOMING_ACCELERATION, 16666664)<br/>
 
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:EtherCAT:EC SLAVE HOME|EC SLAVE HOME]]
+
* [[EtherCAT:EC SLAVE HOME|EC_SLAVE_HOME]]
* [[Axystems:EtherCAT:EC_SLAVE_GET_HOMING_PARAMETERS|EC_SLAVE_GET_HOMING_PARAMETERS]]
+
* [[EtherCAT:EC SLAVE SET HOMING PARAMETERS|EC_SLAVE_SET_HOMING_PARAMETERS]]
  
 
}}
 
}}

Latest revision as of 18:25, 6 May 2017

Language: English  • 中文(简体)‎

This function returns the value of a homing parameter in a slave.

Input

Generic axis, Parameter number

Output

None

Return Value

homing parameter as long

Declaration

public function EC_SLAVE_GET_HOMING_PARAMETERS(ax as generic axis, byval paramNum as long) as long

Examples

tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, HOMING_METHOD)
tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, HOMING_OFFSET)
tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, FAST_HOMING_SPEED)
tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, SLOW_HOMING_SPEED)
tempVal = EC_SLAVE_GET_HOMING_PARAMETERS(ax1, HOMING_ACCELERATION)

See Also