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); }
public float ReadFloat(ushort adress) { READ_INPUT_REGS_RESP resp = ReadInputRegisters(adress, 2); return(resp.GetInpRegsFLOAT(0)); }