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
en-us_commands:reference:pt100read [2026/09/08 00:53] – 바깥 편집 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);
 } }
en-us_commands/reference/pt100read.1788796404.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki