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

C#VB
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

Type: KsReturn <ushort>

Returns a KsError code and an unsigned short integer value.

Remarks

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 errCommandJump in KsError. The new target position is too far from the previous target position. The motion is stopped and the axis is disabled.

Other error code If an alarm occurs on a servo drive, GetAxisError will read from the 0x603F object.

Examples

C#
N/A

See also

Motion Class

IntervalZero.KINGSTAR.OpcUa.Api Namespace