User Tools

Site Tools


en-us_commands:reference:pt100read

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en-us_commands:reference:pt100read [2026/09/07 23:35] – 바깥 편집 127.0.0.1en-us_commands:reference:pt100read [2026/09/14 20:30] (current) – external edit 127.0.0.1
Line 14: Line 14:
  
 ===== Example ===== ===== Example =====
 +
 +This example uses MPAINO-8A8R(T) with two F input modules. Select **Temperature Input Module → F2**. CH0 on F1 is ''0''; CH0 on F2 is ''4''.
  
 <code cpp> <code cpp>
Line 21: Line 23:
  
 void loop() { void loop() {
-  int pt0 = pt100Read(0);  // Return the PT100 sensor temperature as an integer in 0.1°C units+  const int first = pt100Read(0);  // Read the F module PT100 temperature as tenths of a degree Celsius
-  int pt4 = pt100Read(4);  // Return the PT100 sensor temperature as an integer in 0.1°C units. +  const int second = pt100Read(4);  // Read the F module PT100 temperature as tenths of a degree Celsius
- +  Serial.print(F("F1 CH0: ")); 
-  Serial.print("PT0: "); +  Serial.println(first / 10.0F, 1); 
-  Serial.println(pt0); +  Serial.print(F("F2 CH0: ")); 
- +  Serial.println(second / 10.0F, 1);
-  Serial.print("PT4: "); +
-  Serial.println(pt4); +
   delay(500);   delay(500);
 } }
Line 40: Line 39:
   * Verify PT100 wiring and module connection order against the product manual and schematic.   * Verify PT100 wiring and module connection order against the product manual and schematic.
   * If insufficient SRAM prevents creation of the internal ''IADC'' object, ''0'' is returned.   * If insufficient SRAM prevents creation of the internal ''IADC'' object, ''0'' is returned.
 +
 +===== Built-in Commands in the Same Category =====
 +
 +  * [[:en-us_commands:reference:ntcread|ntcRead() View detailed description]]
 +  * [[:en-us_commands:reference:ntcreadf|ntcReadf() View detailed description]]
  
 [[:en-us_commands:builtin|← Built-in Command List]] [[:en-us_commands:builtin|← Built-in Command List]]
  
en-us_commands/reference/pt100read.1788791735.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki