Mechanical compensation for CNC press brake machines uses a linear encoder to measure the position of the return signal. As a CNC axis, it achieves digital control, making the compensation value more accurate and stable, reducing the difficulty and frequency of hydraulic compensation maintenance, and avoiding maintenance during the service life of the machine tool. Mechanical compensation can achieve precise deflection compensation over the entire length of the workbench due to the large number of compensation points, making it easier for the bending machine to bend the workpiece in a linear compensation manner during operation and improving the bending effect of the workpiece. Related products include mechanical press and hydraulic-press.