Beispiel #1
0
        private int GetMovePosition(string axisType, Nullable <decimal> infoValue, decimal lastPosition, decimal logPosition, bool flag, bool flag2, out decimal jianxi)
        {
            decimal value = logPosition;

            jianxi = 0;
            if (infoValue.HasValue)
            {
                value += infoValue.Value;
                if (isG90)
                {
                    value -= lastPosition;
                }
            }
            value = Contra.GetRealValue(axisType, value, AxisSet, flag, flag2, out jianxi);
            return(Convert.ToInt32(value * 1000));
        }