Esempio n. 1
0
        public string button_Org_Click(object sender, EventArgs e)
        {
            string        resultStr = "Org OK";
            string        errStr    = "";
            MC07_S_RESULT sResult   = new MC07_S_RESULT(0);
            byte          StopCode  = 0;

            //*** ORIGIN DRIVE ***
            if (CheckStatus1(hDev, ref errStr) == false)
            {
                return(errStr);
            }
            if (MC07.Org(hDev, MC07.MC07_ORG3, ref sResult) == false)
            {
                resultStr = "It failed in MC07.Org() : MC07.Result(1)=" + sResult.MC07_Result[1].ToString();
                return(resultStr);
            }
            bool isResult = Ready_Wait(hDev, ref StopCode, false, ref errStr);

            if (!isResult)
            {
                resultStr = errStr;
            }
            return(resultStr);
        }