Motion.GetAxisError method
Gets general axis errors not relating to the methods, such as axis errors, drive errors, and communication errors. These values are vendor-specific.
NOTE: If Error is 11, it could be KINGSTAR position error, or servo drive's error (see your servo drive's manual).
Namespace: IntervalZero.KINGSTAR.OpcUa.Api
Assembly: IntervalZero.KINGSTAR.OpcUa.Api (in IntervalZero.KINGSTAR.OpcUa.Client.dll) Version: 4.4.0.0
Syntax
public KsReturn<ushort> GetAxisError(
int Index
)
Public Function GetAxisError(
Index As Integer
) As KsReturn(Of UShort)
Parameters
Index [in]
Type: int
The index of an axis. Indexes are zero based. Aliases affect this parameter.
Return value
Returns a KsError code and an unsigned short integer value.
Remarks
- If ErrorId is 11, it could be KINGSTAR position error, or servo drive's error (see your servo drive's manual).
- If real axes are used, the code read from 0x603F will be displayed first.
Error Code | Description |
---|---|
0x01 | Communication error. Using GetAxisError while an axis is in non-Op state returns this error. |
0x02 | Position lag error. Same as errFollowingError in KsError. The maximum following error is reached. The motion is stopped and the axis is disabled. |
0x03 |
Command jump error. Same as |
Other error code | If an alarm occurs on a servo drive, GetAxisError will read from the 0x603F object. |
Examples
N/A
See also