Пример #1
0
    private int ReadMdsGCLflg()
    {
        int idx = 305;
        int tmp;

        tmp      = ADAMmds.ReadHoldingRegs(idx, 1)[0];
        MBData04 = tmp.ToString();
        return(tmp);
    }
Пример #2
0
    private bool ReadClrCntVal(int _id)
    {
        bool flg = false;
        int  idx = 1 + 2 * Ref_IO_Mod.Ch;

        GetDeviceItems(_id);
        if (ADAMmds.ReadHoldingRegs(idx, 1)[0] == 0)
        {
            flg = true;
        }
        else
        {
            flg = false;
        }
        ProcessView(new ListViewData()
        {
            Ch      = Ref_IO_Mod.Ch,
            Step    = DiCntMdStp.ToString(),
            RowData = "Mbs Fq 4x0" + idx + " val is 0 = " + flg
        });
        return(flg);
    }