Control measure the gap between the work rolls is very important in the production of paper boxes. The problem is that the gap and its surrounding is full of the disperse glue and the distance of the rolls as one of the gap characteristics predetermines the amount of the glue that is applied to the paper during the box production. Precise setting the distance that is based on accurate measuring is not possible during the process using the previous mechanism. Therefore electronic measuring devices were applied using the magnetic rotary encoders on both ends of the rolls. Magnetic rotary encoder enables to detect the accurate real position of the rolls at any moment of the process. The processor, as a part of the electronic device, was programmed in assembler to read the values from the sensor MAB28, to recalculate the values into the real size of the gap between the rollers and send the data to be expressed on LCD. The data received using the measuring technique is expressed in the graph. Statistical methods prove the linearity of the mutual dependency that means continuous and accurate method for displaying of the setting options.