23 lines
735 B
C#
23 lines
735 B
C#
namespace ln.motion.interfaces
|
|
{
|
|
public abstract class DrivesInterface
|
|
{
|
|
public abstract void Initialize();
|
|
|
|
public abstract bool IsOnline { get; }
|
|
|
|
public abstract bool GetAxCurrentValues(out AxValues[] axValuesArray);
|
|
public abstract bool GetAxTargetValues(out AxValues[] axValuesArray);
|
|
public abstract bool SetAxTargetValues(AxValues[] axValuesArray);
|
|
|
|
public virtual bool SetAxTargetValues(int ax, AxValues axValues)
|
|
{
|
|
if (GetAxTargetValues(out AxValues[] axValuesArray))
|
|
{
|
|
axValuesArray[ax] = axValues;
|
|
return SetAxTargetValues(axValuesArray);
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
} |