beautypg.com

Sensoray 518 User Manual

Page 20

background image

19

Read Board Temperature

This command returns the temperature at the optional 7409TC termination board. Useful for
monitoring the temperature of thermocouple reference junctions, this function is also a good
debugging aid during 518 installation. The returned temperature value is scaled to 0.10 degrees
C/bit.

If no 7409TC is connected to the 518, the Read Board Temperature command will return a
meaningless value.

COMMAND: (64)
RESPONSE: (BOARD TEMP MSB), (BOARD TEMP LSB)

EXAMPLE:

‘ Read and display the 7409TC temperature in degrees F:

CALL Send518Byte (BasePort%, 64) ‘send opcode to 518
Temp! = Read518Word (BasePort%) / 10! ‘read response & convert to degrees C

DegreesF! = 1.8 * Temp! + 32.0 ‘convert to degrees F
PRINT DegreesF! ’display temperature on CRT