The OMEC BC-4 automatic four-axis nailing machine with numerical control has been designed to nail frames of wooden crates by means of nails or brads. The machine consists of: a store to allow the four wooden sides insertion, motorized fences and four pneumatic nailing guns placed horizontally. The box rises in steps: clamped and nailed with a number of nails set by the program. Once the nailing has been completed, an unloading arm extracts the box and places it on an idle unloading roller conveyor, allowing the operator to insert the new pieces. The adjustment of the box size (AxB) is done manually by means of two position indicators; the height (C) is instead adjusted automatically. All adjustments are made very easily by following the software instructions displayed on the monitor. The machine meets the Industry 4.0 requirements.