Siemens AGSiemens AG

Site ExplorerSite Explorer
Close site explorer

Programming example ShopMill

Drawing and Download

The following programming example is an exercise task for programming with ShopMill.

Program header

In the program header, define raw part dimensions, the zero point offset, the machining and retraction level, the safety distance, and the retraction of the tool when approaching a sample position.

Face milling

The planning surface is roughed and finished by means of the face-milling cycle. For this purpose, the cycle is parameterized once with the option "Roughing" and once for "Finishing".

Startpoint contour

In the contour editor, create the contour of the rectangular pin. With the design of an auxiliary straight line, which is under the angle of 195° (180°+15°) in the start point (0/0) and has a length of 50 mm, the start point for the contour of the rectangular pin is determined. The start point of the contour is the end point of the auxiliary straight line. The auxiliary straight line is deleted after the coordinates are determined.

Create contour

The coordinates of the auxiliary point are entered as the start point and the recess contour is created by means of the functions XY straight line. The first section of the contour is, for example, a straight line from the start point under the angle α1=285° with a length of 35 mm. A radius R=15 is selected as the transition between the contour elements. Thus, the contour can be structured step-by-step.

Roughing and finishing contour

The contour is linked to the pin milling cycle. One cycle for the roughing, then cycles for the finishing of the bottom and edge.

Rectuangular pocket

You can easily program the rectangular recess with a milling cycle for recesses. The dimensions are defined by specifying the center point (0/0), the width 60 mm, length 90 mm, and depth -4 mm of the recess. Since the recess is rotated 15°, enter a start angle of α0=15°. The cycle is parameterized once for the roughing and once for the finishing.

Circular pocket

The circular recess is also programmed via a circular recess milling cycle for the roughing and finishing.

Drilling and pattern

For drilling the inner circular hole (ø8.5), a drilling cycle is linked to the Circle position example.

Retraction plane change

Before the drill holes are programmed on the Grid position example, you must change the retraction levels within the position example. During an approach within a position example, ShopMill uses the distance defined in the program header. In our example, "optimized" was selected. Since the tool can collide with the rectangular pin in the center, reprogram a new setting with the retraction "Position example on retraction level RP".

Workstep program

This concludes the programming.


The programme can be simulated for test purposes.