beautypg.com

Programming – CUE sensorCUE-W User Manual

Page 8

background image

5. Programming

The standard command for reading out the data from sensorCUE-W is:

RemoteVariableGet (reference as Word, paneladdress As Byte) as Word

The reference allows to identify which measured value should be read while the paneladdress
identifies which sensorCUE unit is to answer.

The following reference values are supported:

Reference = 0

sensorCUE firmware version

Reference = 1

temperature value

Reference = 2

lighting level value



Reference = 0

sensorCUE-W firmware version


Response value is in range 0 - 65535

Example: Fw = RemoteVariableGet (0, 34)

This command has assigned the firmware version number of sensorCUE-W (with the address 34) to
the Fw variable.


Reference = 1

temperature value


The temperature is measured with a 12-bit resolution sensor. It covers the measuring range from

+50

°C to -20 °C

The temperature value is encoded into a 16-bit response value according to the following rules:

Response value bit weight

BIT

15

14

13

12

11

10

9 8 7 6 5 4 3 2 1 0

S S S S S 2

6

2

5

2

4

2

3

2

2

2

1

2

0

2

-1

2

-2

2

-3

2

-4

S means sign.
S=0 for positive and S=1 for negative values.









User Manual sensorCUE-W

www.cuesystem.com

Page 8 of 14