ushort length = 48;
            b = 0;
            char[] c = new char[(int)length];
            ret = Focas1.cnc_rdexecprog(this.h, ref length, out b, c);
            bool flag23 = ret == 0;
            if (flag23)
            {
                this.dangqianyunxingneirong.Text = new string(c);
            }
            b = -1;
            num = 11;
            Focas1.ODBALMMSG2 odbalmmsg2 = new Focas1.ODBALMMSG2();
            ret = Focas1.cnc_rdalmmsg2(this.h, b, ref num, odbalmmsg2);
            string alarmmsg = "";
            Type type3 = odbalmmsg2.GetType();
            bool flag24 = ret == 0;
            if (flag24)
            {
                for (int i = 1; i < 9; i++)
                {
                    string str2 = "msg" + i.ToString();
                    object obj = type3.GetField(str2).GetValue(odbalmmsg2);
                    Type type4 = obj.GetType();
                    bool flag25 = type4.GetField("alm_msg").GetValue(obj).ToString() != "";
                    if (flag25)
                    {
                        string msg = Form1.getalmgrp((short)type4.GetField("type").GetValue(obj)).ToString() + type4.GetField("alm_no").GetValue(obj).ToString() + type4.GetField("alm_msg").GetValue(obj).ToString();
                        alarmmsg = alarmmsg + msg + "/";
                    }
                }
                this.dangqianbaojing.Text = alarmmsg;
            }
            Focas1.ODBM odb = new Focas1.ODBM();
            ret = Focas1.cnc_rdmacro(this.h, 4120, 10, odb);
            bool flag26 = ret == 0;
            if (flag26)
            {
                this.dangqiandaoju.Text = ((double)odb.mcr_val * Math.Pow(10.0, (double)(-(double)odb.dec_val))).ToString();
            }
            bool flag27 = Form1.Get_Func_Type(this.h) == "T";
            if (flag27)
            {
                this.daobubianhao.Text = ((int)(Form1.Get_Func_Mode(this.h, "T") % 100)).ToString();
            }
            else
            {
                bool flag28 = Form1.Get_Func_Type(this.h) == "M";
                if (flag28)
                {
                    this.daobubianhao.Text = Form1.Get_Func_Mode(this.h, "H").ToString();
                }
            }

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐