Protect form errors and add DMX_CHAN_LENGTH

...for possibility to change total number of channels in the future.