--- title: "3.6.4 Format convert" slug: "364" updated: 2026-08-21T09:24:02Z published: 2026-08-24T06:16:04Z canonical: "knowledge.akuvox.com/364" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://knowledge.akuvox.com/llms.txt > Use this file to discover all available pages before exploring further. # 3.6.4 Format convert ![](https://cdn.document360.io/f09a6106-e976-455e-b2d0-3d88b5385960/Images/Documentation/3.6.4-image-r3qr0ak7.png) Convert two 1bit values into a 2bit value, for example, Input bit1=1, bit0=1-- > Output 2bit=3 ![](https://cdn.document360.io/f09a6106-e976-455e-b2d0-3d88b5385960/Images/Documentation/3.6.4-image-wjxadrcr.png) 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. ![](https://cdn.document360.io/f09a6106-e976-455e-b2d0-3d88b5385960/Images/Documentation/3.6.4-image-bvremouh.png) 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. ![](https://cdn.document360.io/f09a6106-e976-455e-b2d0-3d88b5385960/Images/Documentation/3.6.4-image-fvrun1p2.png) 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). ![](https://cdn.document360.io/f09a6106-e976-455e-b2d0-3d88b5385960/Images/Documentation/3.6.4-image-d8hq2730.png) 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). ![](https://cdn.document360.io/f09a6106-e976-455e-b2d0-3d88b5385960/Images/Documentation/3.6.4-image-3kzjvely.png) 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. ![](https://cdn.document360.io/f09a6106-e976-455e-b2d0-3d88b5385960/Images/Documentation/3.6.4-image-219hmc1k.png) 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). ![](https://cdn.document360.io/f09a6106-e976-455e-b2d0-3d88b5385960/Images/Documentation/3.6.4-image-xeesknyf.png) 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). ![](https://cdn.document360.io/f09a6106-e976-455e-b2d0-3d88b5385960/Images/Documentation/3.6.4-image-8r8r2brn.png) 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). ![](https://cdn.document360.io/f09a6106-e976-455e-b2d0-3d88b5385960/Images/Documentation/3.6.4-image-jh3ffs3c.png) 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