Difference between revisions of "EtherCAT:EC SLAVE GET ERROR"
m |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|EtherCAT:EC_SLAVE_GET_ERROR}} | ||
{{Template:EtherCAT-Function | {{Template:EtherCAT-Function | ||
|DESCRIPTION= | |DESCRIPTION= | ||
− | This function | + | This function is looking for a fault in the drive that is associated with an axis, and if a fault is found the function returns a string that describes the fault. Practically, this function queries object 0x603F and matches a string to the returned error code. |
+ | |||
|INPUT= | |INPUT= | ||
Line 11: | Line 13: | ||
|RETURN VALUE= | |RETURN VALUE= | ||
− | + | A string that describes the fault in the drive | |
|DECLARATION= | |DECLARATION= | ||
− | public function EC_SLAVE_GET_ERROR(Ax as generic axis) as | + | public function EC_SLAVE_GET_ERROR(Ax as generic axis) as string |
|EXAMPLE= | |EXAMPLE= | ||
− | + | ?EC_SLAVE_GET_ERROR(ax1) | |
}} | }} |
Latest revision as of 18:19, 6 May 2017
Language: | English • 中文(简体) |
---|
This function is looking for a fault in the drive that is associated with an axis, and if a fault is found the function returns a string that describes the fault. Practically, this function queries object 0x603F and matches a string to the returned error code.
Input
Generic axis
Output
None
Return Value
A string that describes the fault in the drive
Declaration
public function EC_SLAVE_GET_ERROR(Ax as generic axis) as string
Examples
?EC_SLAVE_GET_ERROR(ax1)