Programming
9
AXC-TEMP Temperature Control Card and RTS1 Room Temperature Sensor
Programming
This section provides the Axcess programming commands for the AXC-TEMP and RTS1.
!
The TEMP_LEVEL variable receives data from the TEMP card (Device 16), inputs 1 - 4.
!
The data is in three-digit numbers (986 = 98.6 degrees). The SEND_STRING command
to the Mini-LCD Panel converts the number to print with a decimal point.
!
The 12 clears the LCD screen.
DEFINE_DEVICE
TEMP = 16
DEFINE_VARIABLE
TEMP_LEVEL1
TEMP_LEVEL2
TEMP_LEVEL3
TEMP_LEVEL4
DEFINE_START
CREATE_LEVEL TEMP,1,TEMP_LEVEL1
CREATE_LEVEL TEMP,2,TEMP_LEVEL2
CREATE_LEVEL TEMP,3,TEMP_LEVEL3
CREATE_LEVEL TEMP,4,TEMP_LEVEL4
DEFINE_PROGRAM
WAIT 10
{
SEND_STRING LCD,"12,ITOA(TEMP_LEVEL1/
10),'.',ITOA(TEMP_LEVEL1%10)"
}
For additional information, refer to the
Axcess Programming Language
instruction manual.
A UPD command forces the card to update or send all levels to Axcess Master Card
(AXC-EM)