3.6.4 Format convert

Prev Next

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

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.

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.

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).

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).

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.

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).

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).

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 = 120 ($78).

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 = $32 64 96.

No.

Function

Communication object name

Type

Flags

DPT

585

Input ...

1st /.../8th Logic

1bit

1byte

2byte

3byte

4byte

C,W,U

1.001 switch

5.010 counter pulses(0..255)

7.001 pulses

232.600 RGB value 3x(0..255)

12.001 counter pulses

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

593

Output ...

1st /.../8th Logic

1bit

2bit

1byte

2byte

3byte

4byte

C,T

1.001 switch

2.001 switch control

5.010 counter pulses(0..255)

7.001 pulses

232.600 RGB value 3x(0..255)

12.001 counter pulses

This object is used to output the converted value.

Table 3.6.4 Logic function_Format convert Communication Object Table