en-us_commands:reference:pt100read
This is an old revision of the document!
Table of Contents
pt100Read()
pt100Read() returns the PT100 sensor temperature as an integer in 0.1℃ units.
int pt100Read(uint8_t ch)
Commands
| Command | Arguments | Return Value | Operation |
|---|---|---|---|
pt100Read(ch) | uint8_t ch — Overall MPAINO PT100 input channel number, starting at 0 | int | Returns the PT100 sensor temperature as an integer in 0.1℃ units. |
Example
void setup() { Serial.begin(115200); } void loop() { int pt0 = pt100Read(0); // Return the PT100 sensor temperature as an integer in 0.1°C units. int pt4 = pt100Read(4); // Return the PT100 sensor temperature as an integer in 0.1°C units. Serial.print("PT0: "); Serial.println(pt0); Serial.print("PT4: "); Serial.println(pt4); delay(500); }
Precautions
pt100Read()is a convenience command for the MPAINO PT100 input module.- Conversion of the return value to actual temperature follows the existing PT100 input module behavior.
- Verify PT100 wiring and module connection order against the product manual and schematic.
- If insufficient SRAM prevents creation of the internal
IADCobject,0is returned.
Built-in Commands in the Same Category
en-us_commands/reference/pt100read.1788796404.txt.gz · Last modified: by 127.0.0.1
