Esempio n. 1
0
        public void SetLineGetLevel(int level)
        {
            byte val = (byte)(level << 2);

            val = (byte)(val | 0x02);
            byte[] cmdOutTemp = cmdJXPUsualOut.ToArray();

            cmdOutTemp[1] = val;
            CmdOutLst.Add(cmdOutTemp.ToList <byte>());
            CmdInLst.Add(cmdOutTemp.ToList <byte>());
        }
Esempio n. 2
0
        //清除计数器
        public void ClrMeter()
        {
            if (!Status)
            {
                return;
            }
            byte[] cmdOutTemp = CmdOutReadyGo.ToArray();

            cmdOutTemp[1] = 0x82;

            CmdOutLst.Add(cmdOutTemp.ToList <byte>());
            CmdInLst.Add(cmdOutTemp.ToList <byte>());

            CmdOutReadyGo = cmdOutTemp;

            ConstantMethod.Delay(200);

            CmdOutReadyGo = cmdJXPUsualOut;
        }