Component: Thermocouple (MAX31856) (Environmental): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 66: | Line 66: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Configures the SPI bus ready for communications. | | colspan="2" | Configures the SPI bus ready for communications. | ||
| Line 80: | Line 80: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadReference_Float''' | ||
|- | |- | ||
| colspan="2" | Returns the reference temperature from the last sample as a floating point value in Degrees C. | | colspan="2" | Returns the reference temperature from the last sample as a floating point value in Degrees C. | ||
| Line 94: | Line 94: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadReference_Int''' | ||
|- | |- | ||
| colspan="2" | Returns the reference temperature from the last sample as an integer value in Degrees C. | | colspan="2" | Returns the reference temperature from the last sample as an integer value in Degrees C. | ||
| Line 108: | Line 108: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadThermocouple_Float''' | ||
|- | |- | ||
| colspan="2" | Returns the thermocouple temperature from the last sample as a floating point value in Degrees C. | | colspan="2" | Returns the thermocouple temperature from the last sample as a floating point value in Degrees C. | ||
| Line 122: | Line 122: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadThermocouple_Int''' | ||
|- | |- | ||
| colspan="2" | Returns the thermocouple temperature from the last sample as an integer value in Degrees C. | | colspan="2" | Returns the thermocouple temperature from the last sample as an integer value in Degrees C. | ||
| Line 136: | Line 136: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Sample''' | ||
|- | |- | ||
| colspan="2" | Reads the memory of the MAX31855 IC and checks for errors. Must be called before any of the Read functions. Returns: 0=OK, 1=Open Circuit, 2=Under/Over Voltage, 3=Out of range | | colspan="2" | Reads the memory of the MAX31855 IC and checks for errors. Must be called before any of the Read functions. Returns: 0=OK, 1=Open Circuit, 2=Under/Over Voltage, 3=Out of range | ||
| Line 150: | Line 150: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''WriteColdJunctionOffset''' | ||
|- | |- | ||
| colspan="2" | When Cold Junction Compensation is enabled mode this macro allows you to define the offset temperature of the cold junction. | | colspan="2" | When Cold Junction Compensation is enabled mode this macro allows you to define the offset temperature of the cold junction. | ||
| Line 169: | Line 169: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''WriteColdJunctionTemperature''' | ||
|- | |- | ||
| colspan="2" | When Cold Junction Compensation is disabled/external mode this macro allows you to define the temperature of the cold junction. | | colspan="2" | When Cold Junction Compensation is disabled/external mode this macro allows you to define the temperature of the cold junction. | ||
| Line 189: | Line 189: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Thermocouple Properties | ||
|- | |- | ||
|- | |- | ||
| Line 222: | Line 222: | ||
| colspan="2" | Allows the chip to automatically perform cold junction compensation to try and get more accurate temperature conversions. Internal - Uses internal temperature sensor External / Disabled- Uses SetColdJunctionTemperature macro to allow for external temperature compensation. | | colspan="2" | Allows the chip to automatically perform cold junction compensation to try and get more accurate temperature conversions. Internal - Uses internal temperature sensor External / Disabled- Uses SetColdJunctionTemperature macro to allow for external temperature compensation. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | SPI Properties | ||
|- | |- | ||
|- | |- | ||
| Line 256: | Line 256: | ||
| colspan="2" | Chip Select / Slave Select Pin Master Mode: General purpose output pin used to select the remote SPI device. Slave Mode: Hardware chip select pin input used to select the SPI device. | | colspan="2" | Chip Select / Slave Select Pin Master Mode: General purpose output pin used to select the remote SPI device. Slave Mode: Hardware chip select pin input used to select the SPI device. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Simulation | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Environmental |
Thermocouple (MAX31856) component
Component to interface the MAX31856 IC from MAXIM. Uses a standard 4-wire SPI interface to connect to the IC and collect the temperature. Compatible with different thermocouple types.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Initialise
| Initialise | |
| Configures the SPI bus ready for communications. | |
| Return | |
ReadReference_Float
| ReadReference_Float | |
| Returns the reference temperature from the last sample as a floating point value in Degrees C. | |
| Return | |
ReadReference_Int
| ReadReference_Int | |
| Returns the reference temperature from the last sample as an integer value in Degrees C. | |
| Return | |
ReadThermocouple_Float
| ReadThermocouple_Float | |
| Returns the thermocouple temperature from the last sample as a floating point value in Degrees C. | |
| Return | |
ReadThermocouple_Int
| ReadThermocouple_Int | |
| Returns the thermocouple temperature from the last sample as an integer value in Degrees C. | |
| Return | |
Sample
| Sample | |
| Reads the memory of the MAX31855 IC and checks for errors. Must be called before any of the Read functions. Returns: 0=OK, 1=Open Circuit, 2=Under/Over Voltage, 3=Out of range | |
| Return | |
WriteColdJunctionOffset
WriteColdJunctionTemperature
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_ThermocoupleMAX31856.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_ThermocoupleMAX31856.fcfx