Machining a cuboid from 5 sides
NC4220
NC program for machining a cuboid from five sides. The datum must lie in the center of the workpiece blank in the X and Y axes, and on the bottom of the workpiece blank in the Z axis. At the beginning of the program you define all required parameters. From these values, the control calculates the lateral oversizes and the dimensions of the blank form. In the X and Y axes, the control divides the differences between the workpiece blank and the finished part into equal oversizes of the two surfaces. In the Z axis, the control calculates the oversize in such a way that the workpiece is only machined from the top. On completion of the calculations, the control decides in which axes machining needs to be performed (workpiece blank > finished part). If machining is required, the control shifts the datum to the surface to be machined, moves the tool to a tilt position, tilts the rotary axes to the correct position, and machines the surface with Cycle 232. The tool is then retracted and tilted back. The control then shifts the datum to the second surface of the axis to be machined, moves to an appropriate tilt position again, inclines the tool, and machines the second surface.
If all five surfaces need to be machined, the control uses the following machining sequence: The surface in X+ is machined first, followed by the surface in X-. Next, the control machines the surfaces on the Y+ side and then the surfaces in the Y- direction. The workpiece surface in the Z axis is machined last.