public void SetPickPos(FAAPlusMMCPosition position)
 {
     position.CopyTo(PickPos);
 }
        public void MovePosition(FAAPlusMMCPosition positionDefine)
        {
            if (SimulationMode)
            {
                ServoOn = true;
                CommandPos = positionDefine.Position;
                ActualPos = CommandPos;
                MotionDone = true;
            }
            else
            {
                if (MotionDone && IsInPosition(positionDefine))
                    return;
                else
                {
                    positionDefine.CopyTo(TargetPosition);

                    Device.MovePos(AxisNo,
                        (int)(positionDefine.Position / Scale),
                        SpeedMode,
                        (uint)(positionDefine.StartSpeed / Scale),
                        (uint)(positionDefine.DriveSpeed / Scale),
                        positionDefine.AccelTime,
                        positionDefine.DeaccelTime);
                }
            }
        }