14.02.2019, 10:58
(14.02.2019, 10:54)admin Wrote: You can create a table to map hexadecimal error code to text, then attach it to error code object. You should use 250-byte text data type for status output (32/1/3 in this example).
Code:errors = { [0x10] = 'External protection device activated', [0x11] = 'Malfunction of indoor unit PCB', [0x13] = 'Drain Level Control System Abnormality', [0x14] = 'Malfunction of freezing protection', [0x15] = 'High pressure control in heating, freeze-up protection control in cooling', } value = event.getvalue() errtext = errors[ value ] if errtext then grp.update('32/1/3', errtext) end
Perfect. Thank you admin.