コード例 #1
0
ファイル: L132M1X1.cs プロジェクト: jajanuj/GitTest
        //get command counter
        private double getPos()
        {
            int    cmdPos = new int();
            double CmdPosx;

            CMNET_L132.CS_mnet_m1_get_command((U16)axisPara.CardSwitchNo, (U16)axisPara.RingNoOfCard, axisPara.SlaveIP, ref cmdPos);
            CmdPosx = cmdPos;
            if (axisPara.PulsePerRole != 0)
            {
                //if (axisPara.IsActive && axisPara.Enabled )
                //{
                //    return CmdPosx / axisPara.PulsePerRole * axisPara.DistPerRole;
                //}
                //else
                //{
                //    return 0;
                //}
                return(CmdPosx / axisPara.PulsePerRole * axisPara.DistPerRole);
            }
            else
            {
                return(0);
            }
        }