https://github.com/msftrncs/CANopen_SDOSVR_ST/blob/30893d8f1e3cd41430272d69b6e883ba684c8d99/SDO%20SVR%20Protocol%20Processor.ST#L648 Can be simplified: ``` iec-st CANSDO_DATA[0] := SEL( Response_BUFFER_LEN = 0, 16#43 + SHL( 4 - DWORD_TO_BYTE( MIN( Response_BUFFER_LEN, DWORD#4 ) ), 2 ), 16#42 ); ```