Skip to content

Commit

Permalink
Working with Y532 ORP!
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdenkampe committed Jul 1, 2021
1 parent 4347622 commit 215f630
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/YosemitechModbus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,19 +317,18 @@ bool yosemitech::getValues(float &parmValue, float &tempValue, float &thirdValue
}
break;
}
// //or Y533 (ORP)
// case Y533:
// {
// if (modbus.getRegisters(0x03, 0x2600, 4))
// {
// parmValue = modbus.float32FromFrame(littleEndian, 3);
// tempValue = modbus.float32FromRegister(0x03, 0x2400, littleEndian);
// thirdValue = modbus.float32FromRegister(0x03, 0x1200, littleEndian);
// errorCode = 0x00; // No errors
// return true;
// }
// break;
// }
//or Y533 (ORP)
case Y533:
{
if (modbus.getRegisters(0x03, 0x1200, 2))
{
parmValue = modbus.float32FromFrame(littleEndian, 3);
tempValue = modbus.float32FromRegister(0x03, 0x2400, littleEndian);
errorCode = 0x00; // No errors
return true;
}
break;
}
// Y504 (DO)
case Y502:
case Y504:
Expand Down

0 comments on commit 215f630

Please sign in to comment.