6.4 Communication objects of “Logic function”

Prev Next

6.4.1 AND/OR/XOR

Figure 6.4.1: Logic function_AND/OR/XOR communication object

Number

Object function

Name

Type

Flags

DPT

1/...

Input x

1st /.../8th Logic

1bit

C,W,T,U

1.002 boolean

This object is used to receive the value of logic Input x.

9

Logic result[0..1]

1st /.../8th Logic

1bit

C,T

1.002 boolean

This object is used to send the result of a logical operation.

Table 6.4.1: Logic function_AND/OR/XOR communication object

6.4.2 Gate forwarding

Figure 6.4.2: Logic function_Gate forwarding communication object

No.

Object function

Name

Type

Flags

DPT

9

Gate value select

1st /.../8th Logic

1byte

C,W

17.001 scene number

This object is used to select the scene forwarded by the logic gate.

1/../4

Input x

1st /.../8th Logic

1bit

4bit

1byte

C,W

1.001 switch

3.007 dimming control

5.010 counter pulses(0..255)

This object is used to receive the value of logic gate Input x.

5/../8

Output x

1st /.../8th Logic

1bit

4bit

1byte

C,T

1.001 switch

3.007 dimming control

5.010 counter pulses(0..255)

This object is used to output the value after logic gate forwarding. The output value is the same as the input value, but one input can be forwarded into one or more outputs, which are determined by parameters.

Table 6.4.2: Logic function_Gate forwarding communication object table

6.4.3 Threshold comparator

Figure 6.4.3: Logic function_Threshold comparator communication object

No.

Object function

Name

Type

Flags

DPT

4

Threshold value input

1st /.../8th Logic

4bit

1byte

2byte

4byte

C,W, U

3.007 dimming control

5.010 counter pulses(0..255)

7.001 pulses

12.001 counter pulses

This object is used to input a threshold value.

9

Threshold value output 1bit

1st /.../8th Logic

1bit

C,T

1.002 boolean

This object sends the logic result, specifically by transmitting the value obtained after comparing the input threshold value with the parameter-set threshold value.

Table 6.4.3: Logic function_Threshold comparator communication object

6.4.4 Format convert

2*DPT 1.002-->DPT 2.001: Convert two 1bit values into a 2bit value, for example, Input bit1=1, bit0=1-- > Output 2bit=3

8*DPT 1.002-->DPT 5.010:Convert 8 1bit values into a 1byte value, for example, Input bit3=1, bit2=1, bit1=1, bit0=1, with other bits being 0, -- > Output 1byte=15.

DPT 1.002-->DPT 5.010: Convert a 1bit value into a 1byte value, for example, Input 1bit=1 -- > Output 2byte=1, even though the value remains the same, the data type of the value has changed.

DPT 5.010-->DPT 7.001: Convert a 1byte value into a 2byte value, for example, Input 1byte=125 -- > Output 2byte=125, even though the value remains the same, the data type of the value has changed.

2*DPT 5.010-->DPT 7.001: Convert 2 1byte values into a 2byte value, for example, Input 1byte-low = 255 ($FF), Input 1byte-high = 100 ($64) -- > Output 2byte = 25855 ($64 FF).

2*DPT 7.001-->DPT 12.001:Convert 2 2byte values into a 4byte value, for example, Input 2byte-low = 65530 ($FF FA), Input 2byte-high = 32768 ($80 00) -- > Output 4byte = 2147549178 ($80 00 FF FA).

DPT 5.010-->8*DPT 1.002:Convert 1 1byte value into 8 1bit values, for example, Input 1byte=63 -- > Output bit0=1, bit1=1, bit2=1, bit3=1, bit4=1, bit5=0, bit6=0, bit7=0.

DPT 7.001-->2*DPT 5.010: Convert 1 2byte value into 2 1byte values, for example, Input 2byte = 55500 ($D8 CC) -- > Output 1byte-low = 204 ($CC), Output 1byte-high = 216 ($D8).

DPT 12.001-->2*DPT 7.001: Convert 1 4byte value into 2 2byte values, for example, Input 4byte = 78009500 ($04 A6 54 9C) -- > Output 2byte-low = 21660 ($54 9C), Output 2byte-high = 1190 ($04 A6).

DPT 232.600(RGB)-->3*DPT 5.001(%): Convert 1 3byte value into 3 1byte values, for example, Input 3byte = $78 64 C8 -- > Output 1byte-low = 200 ($C8), Output 1byte-middle = 100 ($64), Output 1byte-high = 200 ($C8).

3*DPT 5.001(%)-->DPT 232.600(RGB): Convert 3 1-byte values into 1 3-byte value, for example, Input 1byte-low = 150 ($96), Input 1byte-middle = 100 ($64), Input 1byte-high = 50 ($32) -- > Output 3byte = $96 64 32.

DPT 251.600(RGBW)-->4*DPT 5.001(%):Convert 1 6-byte values into 4 1-byte value, for example, Input RGBW = $78 63 C7 45 00 0F--> Output red = 120($78) , Output green = 99 ($63) , Output blue =199 ($C7) , Output white = 69 ($45)

4*DPT 5.001(%)-->DPT 251.600(RGBW):Convert 4 1-byte values into 1 6-byte value, for example, Input red = 120 ($78), Input green = 100 ($63), Input blue = 50 ($33), Input white = 69 ($45)--> Output 6byte = $78 63 33 45 00 00

No.

Function

Communication object name

Type

Flags

DPT

1

Format input ...

1st /.../8th Logic

1bit

1byte

2byte

3byte

4byte

6byte

C,W,U

1.001 Switch

5.001 percentage(0..100%)

5.010 counter pulses(0..255)

7.001 pulses

232.600 RGB value 3x(0..255)

12.001 counter pulses

251.600 RGBW value 4x(0..100%)

This object is used to input the value that needs to be converted.

9

Format output ...

1st /.../8th Logic

1bit

2bit

1byte

2byte

3byte

4byte

6byte

C,T

1.001 switch

2.001 switch control

5.001 percentage(0..100%)

5.010 counter pulses(0..255)

7.001 pulses

232.600 RGB value 3x(0..255)

12.001 counter pulses

251.600 RGBW value 4x(0..100%)

This object is used to output the converted value.

Table 6.4.4: Logic function_Format convert communication object table

6.4.5 Gate calculation

Figure 6.4.5: Logic function_Gate calculation communication object

No.

Function

Communication object name

Type

Flags

DPT

1

Input...

1st /.../8th Logic

1bit

2bit

1byte

2byte

C,W, U

1.002 boolean

2.001 switch control

5.010 counter pulses(0..255)

7.001 pulses

This object is used to receive the input value for the gate calculation.

9

Output...

1st /.../8th Logic

1bit

2bit

1byte

2byte

C,T

1.002 boolean

2.001 switch control

5.010 counter pulses(0..255)

7.001 pulses

This object is used to send the result of the gate calculation.

Table 6.4.5: Logic function_Gate calculation communication object