Programming – CUE inputCUE-W User Manual

Page 10

Advertising
background image

5. Programming

From the programming point of view, inputCUE-W is fully compatible with units keypadCUE-8-E and
keypadCUE-8-L. You can use these units instead of inputCUE-W in configuration window in Cue
Director XPL.

For easy programming of temperature sensor input (Pt1000), you can use the module
CUE_Temperature_Sensors.csm. You can find it on the CUE Application CD in folder XPL Drivers and
Modules. This module is also compatible with temperature sensors in sensorCUE and sensorCUE-W.

This module has one function:

Public Function GetTemperature (PanelAddress As Word, ByRef TemperatureAsText As String)
As Long

GetTemperature returns current temperature measured in 1/10 degrees of Celsius as long value.
Returned values are -400 (-40 °C) to 1200 (+120 °C). The first parameter is the panel address of
inputCUE-W, the second parameter is string, where temperature value will be stored as string (“-40.0”
to “+120.0”)

Example:

Declarations:

Public TemperatureInt As Integer

Public TemperatureString As String *10

Program:

TemperatureInt = GetTemperature(38, TemperatureString)

This command has assigned the temperature from inputCUE-W (with the address 38) to the
TemperatureInt variable. If current temperature is for example +23.5 °C, in TemperatureInt variable
there will be value 235. In string TemperatureString there will be value “+23.5”.

User Manual inputCUE-W

www.cuesystem.com

Page 10 of 14

Advertising