示例#1
0
        public float[] ReadFloat(ushort adress, int count)
        {
            float[] rez = new float[count];
            READ_INPUT_REGS_RESP resp = ReadInputRegisters(adress, count * 2);

            for (int i = 0; i < count; i++)
            {
                rez[i] = resp.GetInpRegsFLOAT(i * 2);
            }
            return(rez);
        }
示例#2
0
        public float ReadFloat(ushort adress)
        {
            READ_INPUT_REGS_RESP resp = ReadInputRegisters(adress, 2);

            return(resp.GetInpRegsFLOAT(0));
        }