先刷新轴状态,其次取状态字:
Dir_Positive:=axis1.Status.PositiveDirection;
Dir_Negative:=axis1.Status.NegativeDirection;