There are 2 internal system tags to control the Backlight...
The help file explains them...
6.7.1 System Variable List
System Variable
Description
Read From/Write To Equipment
System Variable Attribute
_BackLight
A structure variable that turns the target's backlight ON or OFF, through animation (value animation and touch animation), switches (word and script operation), data displays, or scripts. _BackLight contains two integer variables: Control and Status.
Read/Write
Read/Write
_BackLight.Control
Integer variable that turns the backlight ON or OFF. You can also set the backlight to turn OFF automatically after a specified period of inactivity.
- Control = 0: default value, backlight does nothing
Control = -1: backlight always ON
Control = -2: turns backlight OFF. When the panel is touched, backlight turns ON and stays ON. Control remains -2
Control > 0: turns backlight off after specified number of minutes of inactivity
- Control any value other than specified above, backlight does nothing
Valid values are 1, 2, 5, 10, 15, and 30 minutes. Other numbers entered are rounded down to the closest valid value. For example, 3 is rounded down to 2. 9 is rounded down to 5. Any value greater than 30 will be rounded down to 30 minutes.
_BackLight.Status
Integer variable that shows whether the backlight is ON or OFF.
- Status = 1: backlight is ON
Status = 0: backlight is OFF
- Status > 1: there is an error
Write
Read only
Hope this helps...
Rob