Ejemplo n.º 1
0
        //set command counter
        private void setPos(double s)
        {
            //if (axisPara.IsActive && axisPara.Enabled )
            //{
            //    int cmdPos = new int();
            //    cmdPos = Convert.ToInt32(Math.Round(s / axisPara.DistPerRole * axisPara.PulsePerRole));
            //    CMNET_L132.CS_mnet_m1_set_command((U16)axisPara.CardSwitchNo, (U16)axisPara.RingNoOfCard, axisPara.SlaveIP, cmdPos);
            //}

            int cmdPos = new int();

            cmdPos = Convert.ToInt32(Math.Round(s / axisPara.DistPerRole * axisPara.PulsePerRole));
            CMNET_L132.CS_mnet_m1_set_command((U16)axisPara.CardSwitchNo, (U16)axisPara.RingNoOfCard, axisPara.SlaveIP, cmdPos);
        }