EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format...

30
EUROMAC NC Code Description of NC code for EUROMAC punch presses with TopPunch control software EUROMAC This is version 1.9.1, last updated 6 September 2011, of the EUROMAC NC code description. Copyright EUROMAC.

Transcript of EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format...

Page 1: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

EUROMAC NC CodeDescription of NC code for EUROMAC punch presses with TopPunch control software

EUROMACThis is version 1.9.1, last updated 6 September 2011, of the EUROMAC NC code description.Copyright EUROMAC.

Page 2: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

i

Table of Contents

1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

2 An NC File Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.1 Dimension Units and Ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.2 Specifying Coordinates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

2.2.1 Incremental Programming of Coordinates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

3 NC Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43.1 NC Job Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43.2 Sheet Metal Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43.3 Material Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43.4 Clamps Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43.5 L-Gauge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53.6 Loading Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63.7 Setting of Coordinate Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63.8 Move to a Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63.9 Hit at a Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.10 Interpolations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

3.10.1 Linear Interpolation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.10.2 Circular Interpolation CW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.10.3 Circular Interpolation CCW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

3.11 Clamps Repositioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83.12 Programme Stops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

3.12.1 Programme Stop in the Ram Upper Dead Point . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83.12.2 Programme Stop in a Tool Upper Stroke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

3.13 Work Chute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83.14 Dwell in a Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

3.14.1 Dwell before a Hit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.14.2 Dwell after a Hit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.14.3 Dwell in a Tool Lower Stroke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.14.4 Dwell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

3.15 Controlling Technology Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.15.1 Axes Speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.15.2 Feed Rate in the Interpolation Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.15.3 Tool Upper Stroke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.15.4 Tool Lower Stroke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.15.5 Ram Speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.15.6 Ram Acceleration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

3.16 Tool Change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.17 Tool Offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123.18 Overriding Tool Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133.19 Raising Punching Head . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133.20 Rotating and Flipping a Sheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

3.20.1 Rotate Sheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143.20.2 Flip Sheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

3.21 Extra Strip . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143.22 Marking Patterns and Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

Page 3: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

ii

3.23 Message to an Operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153.24 Job End and Unloading Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

4 Application Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154.1 Auto-Index Machines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154.2 Turret Machines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

4.2.1 MTX 12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164.3 Flex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164.4 Tapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164.5 Automatic Loading and Unloading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

5 An NC Code Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

Appendix A Concept Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Appendix B Machine Parameters Index . . . . . . . . . . . . . . . . . . . . . 25

Appendix C NC Commands Index . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Page 4: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 2: An NC File Format 1

1 Introduction

This document describes format of NC code for EUROMAC punch presses. The description isspecific to the TopPunch R© control software versions 1.5.x, 2.0.x, 2.1.x and 2.2..x.

2 An NC File Format

An NC code is an ASCII text file with the ‘.nc’ or ‘.cnc’ suffix of its name. The file isorganized in blocks or lines. Each line contains one NC command with its parameters. A linemay optionally start with the semicolon character ‘;’.

The NC code is case insensitive. Arbitrary mixing of lower and upper cases is permitted.

A line enclosed in parentheses ‘()’ is read in but not executed. Comments may be put there.

Three sections of commands can be identified in an NC code. The code starts with decla-rations like a job name, sheet metal dimensions, clamps positions and loading position. Thelargest portion of commands follows in the middle section where the actual punching job isprogrammed. The third section may conclude the code specifying what to do on unloading thesheet.

Reading of an NC file stops when end of the file is reached or when the percent character ‘% ’at a line beginning occurs. Any text like a setup sheet for a job may be output behind the ‘% ’character.

2.1 Dimension Units and Ranges

Working units are not defined inside an NC code. That means that the code can be createdin any units that a machine or, in fact, its control software TopPunch R© supports. CurrentlyTopPunch R© understands decimal degrees for angular dimensions and seconds for time values.Longitudinal dimensions may be output in millimeters or inches. The actual unit used to readan NC is selected in general configuration in TopPunch R©. The proper parameter to look for iscalled unit in TopPunch R© versions 1.5.x and ncunit since version 2.0.0.

Dimension Type Supported Units Lowest Value Greatest ValueLongitudinal mm, inch -99,999.99 99,999.99Angular ◦ -360.0 360.0Time s 0 99.99

Table 2.1: Units and ranges of dimensions.

2.2 Specifying Coordinates

Many of the commands inside an NC code take parameters specifying axes position. The positionis defined by values of X, Y and, in the case of an auto-index machine, C coordinates. Origin ofthe coordinate system is at the upper left sheet metal corner.

Page 5: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 2: An NC File Format 2

Figure 2.1: NC coordinate system.

Figure 2.2: Machine coordinate system and loading position: 0–machine zero point, PIN1and PIN2–loading pins; shtref–reference position of a metal sheet at loading position; xload–loading position of the back gauge; xpin1, xpin2 and ypin–loading pins positions; xpinrep andypinrep–reposition hold down cylinders positions.

A machine has its zero point defined as follows (see Figure 2.2). The zero X coordinate isat zero value of a back gauge scale. A clamp support face defines the Y coordinate of the zeropoint. The zero point comes at the centre of a ram when both X and Y machine coordinates

Page 6: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 2: An NC File Format 3

have zero values. In many cases the machine and NC coordinate systems are equal. They maydiffer when not loading at XPIN1. The NC coordinate system is shifted by the xload − shtrefvalue. Another example is a machine with automatic loading and unloading where right handedge of a metal sheet is positioned at a loading pin. See Section 4.5 [Automatic Loading andUnloading], page 17, for transforming coordinates on such machines.

A group of commands take arguments specifying position or trajectory in the NC coordinatesystem. Those commands are SET , CARICO , MOV , COLPO , START_PROFILE , LIN , CIL , CIRand END . General form of a position specification is Xx Yy Cc where x, y and c respectivelyare the coordinate values. Exceptions are the CARICO and END commands where the x and yvalues refer to a machine coordinate system.

Several special positions of the X axis are preconfigured in TopPunch R© and can be accessedthrough machine parameters. See Table 2.2, for list of possible parametric expressions of the X

axis position. They are intended mainly for loading and unloading of material, i.e. the CARICOand END commands. However, they may be used in any command taking position arguments.

XPIN1 External loading pin position as specified in the xpin1 machine parameter.

XPIN2 Internal loading pin position as specified in the xpin2 machine parameter.

XPIN Position of automaticaly selected loading pin. If the programmed sheet X dimensionis less then value of the xint machine parameter internal loading pin position (xpin2parameter) is chosen. Otherwise, the xpin1 parameter value is assumed.

XLOAD Position specified in the xload machine parameter. This is available in TopPunch R©since version 2.0.0.

Table 2.2: Preconfigured X axis positions.

Any of the X, Y and C component can be omitted in the position specification meaning itdoesn’t change. The C coordinate may be used for auto-index machines only.

Interpolation commands define position of the end point and trajectory travelled to reachit. Linear interpolation moves axes along a line from the current position to the line end pointdefined by the X and Y coordinates.

Programming of circular path is accomplished by circular interpolation commands. Theresulting trajectory is a circular arc or a full circle. It starts from the current position. Its endpoint is defined by the X and Y coordinates. Additional XC or I and YC or J coordinates specifythe circle centre point. The XC and YC are the centre point coordinates in the NC coordinatesystem while the I and J are increments from the circle start point in X and Y axis, respectively.

Only X and Y axes coordinates may be used in interpolation commands. Programming the Caxis is not permitted there. To adjust an initial tool rotation use the MOV command with theC coordinate before an interpolation command. Then certain tools (which are defined in themachine control software TopPunch R©) automatically keep their angular position tangent to thetravelled path.

2.2.1 Incremental Programming of Coordinates

In addition to the absolute definition of coordinates described above TopPunch R© version 2.2introduces an option to specify coordinates incrementally from the previous position. Therespective coordinate increments are defined by DX, DY, DC, DXC and DYC. A programmed valueis added to the current axes position yielding its new position. Note that using DXC and DYC orI and J has the same effect.

MOV X100 Y200

COLPO DX50 DY-100 C45

Page 7: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 3: NC Commands 4

COLPO X100 DY50 DC45

In the above example a machine first positions X and Y axes to 100, 200 and then makes twohits. The first hit will be at X150, Y100 with index at 45◦ and the second goes at X100, Y150and C90. Mixing of absolute and incremental specification of coordinates is allowed in any NCblock defining position in the NC coordinate system.

3 NC Commands

3.1 NC Job Name

NAME string

An optional command typically found at the first line of an NC file. In the string argumentit defines the job name. In TopPunch R© versions 1.5.x length of the string is limited to 32characters. No such limit exists in version 2.0.0 and above.

The command is supposed to appear only once at the biggining of an NC code before theCARICO command.

An NC block example:

NAME NC job

3.2 Sheet Metal Dimensions

DIM x y t

The command defines a sheet metal dimensions: length (x), width (y) and thickness (t).Omitting the optional third value causes TopPunch R© to ask for the material thickness.

The command is supposed to appear only once at the biggining of an NC code before theCARICO command.

An NC block example:

DIM 2000 1250 1.5

3.3 Material Specification

MATERIAL string

Specify a sheet metal material in the string argument of the command. Its value is supposedidentical to an identifier in material list on machine.

The command is supposed to appear only once at the biggining of an NC code before theCARICO command. The command is supported in TopPunch R© since version 2.0.0.

An NC block example:

MATERIAL steel

3.4 Clamps Position

PINZE Xc1 Yc2

CLAMPS Xc1 Yc2

PINZE c1 c2 c3 ... cn

CLAMPS c1 c2 c3 ... cn

The command declares initial clamps positions. Two forms are possible. The first one definesthe left clamp position at the X parameter and the right clamp position at the Y parameter.

Page 8: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 3: NC Commands 5

Up to n clamps configured on a machine can be defined in the second form. The positionsare stated from the leftmost clamp (c1) to the rightmost clamp (cn). This form is supported inTopPunch R© since version 2.0.0.

A clamp position is defined as a distance of its left side from NC coordinate system origin.The clamp left side indicates its position on a scale as it slides on a back gauge.

On machines with automatic clamps the command may execute, if necessary, the clampsposition reading and setting procedure. In any case the declared values are showed later in theloading position info message.

The command is supposed to appear only once at the biggining of an NC code before theCARICO command.

An NC block example:

PINZE 325 950

3.5 L-Gauge

LGAUGE Xlgx Ylgy XClgoffx YClgoffy

LGAUGE Xlgx Ylgy Ilgoffx Jlgoffy

The command declares dimensions of an L-gauge and starts the L-gauge mode.

Figure 3.1: L-gauge dimensions.

A machine works in a special mode with the L-gauge clamped in clamps instead of a metalsheet. Axes move in slow speed and stop at each hit coordinates. An operator has to push thesheet manually into the L-gauge. Depressing a foot pedal punches a hole and then moves to thenext hit position. Safety barrier, if installed, is disabled to allow the operator to enter workingarea.

See Table 3.1, for dimensions of the EUROMAC standard L-gauge. The dimensions corre-spond to machine parameters in TopPunch R©. The lgclamp1 and lgclamp2 are clamp positionswhen loading at PIN1.

lgx 905

lgy 200

lgoffx 70

lgoffy 90

lgclamp1 305

lgclamp2 777

Table 3.1: Standard L-gauge dimensions in millimeters.

Page 9: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 3: NC Commands 6

The command is supposed to appear only once at the biggining of an NC code before theCARICO command. The command is supported in TopPunch R© since version 2.0.0.

An NC block example:

LGAUGE X905 Y200 I70 J90

3.6 Loading Position

CARICO Xx Yy Cc flags

LOAD Xx Yy Cc flags

The command moves axes to the specified position for loading material. See Section 2.2[Specifying Coordinates], page 1, for details on specifying coordinates. Note that in this casethe x and y values refer to the machine coordinate system rather then to the NC coordinatesystem.

Depending on a machine model, some more actions may be executed like positioning turretstation or reseting auto-index axes. Then a message for an operator appears on a screen tellingclamps positions, tool and material to load. Depressing a foot pedal opens the clamps and raisesthe proper reference pin.

Optional flags argument specifies whether a material shall be loaded manually or automat-ically. Possible values are MAN and AUTO for manual and automatic loading, respectively. Ifommited, machine parameter autoload makes the decission. This extension is supported inTopPunch since version 2.1.1.

At least DIM , PINZE and TOOL instructions shall appear in an NC code before the CARICO .

An NC block example:

CARICO XPIN Y300

3.7 Setting of Coordinate Values

SET Xx Yy Cc

This command doesn’t move axes. Its purpose is assigning coordinates with values whichmight be used by successive instructions.

See Section 2.2 [Specifying Coordinates], page 1, for details on specifying coordinates.

An NC block example:

SET X-123.45 Y321

3.8 Move to a Position

MOV Xx Yy Cc

MOVE Xx Yy Cc

Move axes to the specified Xx Yy Cc. Trajectory of the movement is not defined.

See Section 2.2 [Specifying Coordinates], page 1, for details on specifying coordinates.

An NC block example:

MOVE Y100 C-45

Page 10: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 3: NC Commands 7

3.9 Hit at a Position

COLPO Xx Yy Cc

HIT Xx Yy Cc

The command moves axes and executes one hit after reaching the Xx Yy Cc. Trajectory ofthe movement is not defined.

See Section 2.2 [Specifying Coordinates], page 1, for details on specifying coordinates.

An NC block example:

COLPO X666 Y0 C30

3.10 Interpolations

Interpolation commands continuously move axes along a defined trajectory. This is needed byspecial operations like grooving, marking or beading.

The interpolation path starts at the current position and continues to the end point definedby the command. Speed of the continuous move of the X and Y axes, the feed rate, is definedat a tool properties. However, since the TopPunch R© version 2.2.0 it is possible to override itwith the FEEDRATE command in an NC code.

A group of subsequent interpolation commands composes a contour. Each contour may beoptionally enclosed within the START_PROFILE and END_PROFILE commands.

3.10.1 Linear Interpolation

LINE Xx Yy

The command moves X and Y axes along a linear path starting at the current position tothe specified end point.

See Section 2.2 [Specifying Coordinates], page 1, for details on specifying coordinates.

An NC block example:

LINE X783.123 Y326.2

3.10.2 Circular Interpolation CW

CIR Xx Yy XCxc YCyc

CIR Xx Yy Idxc Jdyc

RCIR Xx Yy XCxc YCyc

RCIR Xx Yy Idxc Jdyc

The command generates a circular path in the clockwise direction.

See Section 2.2 [Specifying Coordinates], page 1, for details on specifying coordinates.

An NC block example:

RCIR X300 Y200 I-36 J36

3.10.3 Circular Interpolation CCW

CIL Xx Yy XCxc YCyc

CIL Xx Yy Idxc Jdyc

LCIR Xx Yy XCxc YCyc

LCIR Xx Yy Idxc Jdyc

This circular interpolation command moves axes in the counter-clockwise direction.

See Section 2.2 [Specifying Coordinates], page 1, for details on specifying coordinates.

An NC block example:

CIL X560 Y480 XC560 YC520

Page 11: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 3: NC Commands 8

3.11 Clamps Repositioning

RIPOSIZIONA Xx Yy

REPOSITION Xx Yy

The clamps reposition command performs the following procedure. At the current positiona machine fixes material with hold down cylinders. Than, clamps are opened and the Y axismoves to the back by the y value. Now the X axis moves by the x distance. Here the Y axismoves back to the front. Finally, clamps are closed at the new position and hold downs releasethe material.

Recommended values of the Y axis back moves are 2mm in case of the first reposition ina job and 1mm for any following one.

An NC block example:

RIPOSIZIONA X-300 Y1

3.12 Programme Stops

Programme stop commands interrupt an automatic working cycle and stop machine axes at thecurrent position. A safety barrier (if installed) is deactivated allowing an operator to removea ready part or a scrap from the machine working area. This is indicated in a message displayedon a programming console screen. The machine continues working after pressing the start cyclebutton.

3.12.1 Programme Stop in the Ram Upper Dead Point

STOP

Stops a machine and raises its ram to the upper reference position.

3.12.2 Programme Stop in a Tool Upper Stroke

STOP1

Stops a machine leaving a ram in the current position. Typically it means in a tool upperstroke.

The command is supported in TopPunch R© since version 2.0.0.

3.13 Work Chute

WORK_CHUTE

CHUTE

TRAP_DOOR

TRAP

BOTOLA

Some EUROMAC presses are optionally equipped with a work chute allowing unloading someready parts or scrap without stopping a machine. The command executes the whole work chutecycle which consists of opening the work chute, detecting a part at the end of the chute andthan closing the chute. Use the command just after the last hit which cuts off a part.

The command is supported in TopPunch R© since version 2.2.0.

Page 12: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 3: NC Commands 9

3.14 Dwell in a Position

A set of PAUSE* commands is used to stop a machine for a certain time. The commands areglobally valid. That means the dwell applies for each hit until overridden by another call to theappropriate PAUSE* command. If only dwell in the current position is required use the DWELL

command.

The t argument of the command is the time to dwell specified as a floating point value inseconds. The value of 0.0 s cancels the appropriate dwell.

Any combinations of the commands are permitted.

3.14.1 Dwell before a Hit

PAUSE t

A machine positions axes and waits a specified time with a ram in a tool upper stroke. Thena hit is executed.

3.14.2 Dwell after a Hit

PAUSE1 t

A machine makes a hit and dwells in the hit position with a ram in a tool upper stroke.

3.14.3 Dwell in a Tool Lower Stroke

PAUSE2 t

The command causes ram to stop at its lower dead point during a hit and to dwell at thatpoint for t seconds. Only punch presses with the Flex hydraulic system support the lower strokedwell.

The command is supported in TopPunch R© since version 2.1.0.

3.14.4 Dwell

DWELL t

Waits for t seconds in the current position. Unlike the PAUSE commands the DWELL is validlocally only at the place where it appears in an NC.

The command is supported in TopPunch R© since version 2.2.0.

3.15 Controlling Technology Conditions

A set of new commands was introduced in TopPunch R© version 2.2.0 enabling more control overtechnology conditions. Now it is possible to programme parameters such as tool strokes, ram oraxes speeds for any single hit.

Some parameters are associated with a tool which is currently in use. It is an operator’sresponsibility to assign correct values to them. A programmer may override them in an NCcode. With an exception of the SPEED_XY the overridden value takes effect until modified byanother call to the appropriate command or until the next tool change which always resets allthe parameters.

Note that all the commands may be used in punching mode only, i.e. for presetting conditionsof the COLPO command. The FEEDRATE is the only one intended to work in the interpolationmode.

3.15.1 Axes Speed

SPEED_XY speed

The command controls positioning speed of X and Y axes when moving with the MOV andCOLPO commands. It has no effect in the interpolation mode. A value of the speed argument

Page 13: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 3: NC Commands 10

is in percents of the highest traversal speeds of the X and Y axes. It ranges from 1.0 to 100.0.That means the speed can be reduced up to one percent of its maximum.

Speed settings persist after finishing a job. For this reason it is recommended to restore thefull speed by calling SPEED_XY 100 just before the END command. The speed can be modifiedalso interactively by an operator during running a programme.

3.15.2 Feed Rate in the Interpolation Mode

FEEDRATE feed

Controls feed rate of the X and Y axes in the interpolation mode. The argument feed isspecified in mm/min. A value less than or equal to zero resets the feed rate to a value definedat the current tool.

3.15.3 Tool Upper Stroke

TOOL_UP z

A tool upper stroke value over a sheet surface. The sheet thickness is added automatically.Other compensations may apply, too.

Specifying a value of the z argument outside a range acceptable by a machine resets the toolupper stroke to a value defined in punch list.

3.15.4 Tool Lower Stroke

TOOL_DOWN z

Overrides a tool lower stroke. The zero value is considered on surface of a single punchingtool die. Negative values mean penetration of the tool inside the die. When z is given a positivevalue the punch stops over the die by that value.

Specifying a value of the z argument outside a range acceptable by a machine resets the toollower stroke to a value defined in punch list.

3.15.5 Ram Speed

RAM_V v

The command controls speed of ram when punching. The value is given in percents of thehighest speed defined in the vram or vrami machine parameters and ranges from 0 to 100. Thezero value restores the tool defined speed.

3.15.6 Ram Acceleration

RAM_A a

Reduces a ram acceleration to a percents of a value of the aram or arami machine parameters.Zero value restores the acceleration defined at the current tool.

3.16 Tool Change

TOOL code shape dimensions angle name

TOGLI_TOOL code shape dimensions angle name

Both manual and automatic tool changes are programmed by this command. It takes severalarguments declaring the required tool.

Each tool is identified by its unique code. It is an arbitrary integer number ranging from 1up to 2,147,483,647. Codes in the range of 9000–9999 are reserved for special working cycles oftools with shapes declared as SPECIAL or FORMING. See Table 3.2, for those cycles supported inTopPunch R© since version 2.0.0.

Page 14: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 3: NC Commands 11

9000 Tapping cycle with lubrication.

9002 Bending cycle on ZX/MTX machines.

9003 Tapping cycle without lubrication (Mate EasyTapTM).

9005 Special cycle intended for forming tools on ZX/MTX machines. A stroke is done atlow speed in low pressure with an optional dwell time in the lower stroke.

9020 Bending cycle on FLEX machines with overtravels with ram at the preset upperstroke.

9021 Bending cycle on FLEX machines with overtravels with ram at its upper limitposition.

Table 3.2: Special working cycles.

In case the programmed tool is a multitool certain rules are recommended for the tool code.In general the code can be expressed as TTCCSS. It is composed of three groups of two digitsdefining the multitool type, code and station (see Table 3.3).

TT Multitool type.

CC Multitool code.

SS Multitool station.

Table 3.3: Multitool code: TTCCSS.

According to a tool shape one to three dimensions are required. See Table 3.4, for supportedtool shapes and their dimension parameters.

All but round, grooving and marking tools need the angle specified at tool change. It is theangle at which the tool is inserted in a machine. Its value is defined in the NC coordinate systemsimilar to the C coordinate.

Tool shape dimensionsRound T, TONDO, ROUND xSquare Q, QADRO, SQUARE xRectangle R, RETTANGOLO, RECTANGLE x yObround A, ASOLA, OBROUND x ySingle D SD, SINGLED, SINGLE_D x yDouble D DD, DOUBLED, DOUBLE_D x yRounded Corner CR, ROUNDED_C, ROUNDED_CORNER x y rRadius Tool RC, RADIUS x y rTriangle TT, TRIANGLE x y rSpecial Shape S, SPECIALE, SPECIAL x yForming Tool FM, FORMING x yGrooving (Sheet Marker)1 MK, MARKER, SHEET_MARKER xMarking Tool1 RB, MARKING xBeading (Roller Ball)1 RL, ROLLERBALL, ROLLER_BALL x

Table 3.4: Tool shapes.

The optional name argument is important for deciding whether single tool or multitool isprogrammed. The string SINGLE with any number of leading and/or trailing underscores means

1 The tool works in an interpolation mode.

Page 15: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 3: NC Commands 12

a call to a single tool. In addition, since the version 2.2.0 of TopPunch R©, SINGLE_B or SINGLE_Dmay be used to explicitly require a B station or a D station, respectively, in a 12-station turret.Otherwise, TopPunch R© considers the tool being inside a multitool. The argument may be usedto give the multitool a name.

TopPunch R© uses the following procedure to search for a tool in its databases:

1. TopPunch R© first looks at the end of TOOL line in an NC to resolve single tool or multitoolcall.

2. A single tool is searched in punch list by its shape and dimensions. It may happen thatmore tools are found. The one with the programmed tool code, if exists in the punch list,is prefered.

3. In case of multitool the tool code is decoded and checked against multitool list. If thedecoded multitool station exists and contains the programmed tool (shape, dimensions andangle are checked) TopPunch is happy and uses this tool. Otherwise the search continueswith the next step.

4. Multitool list is searched for a multitool station containing the programmed tool. The toolshape, dimensions and angle are checked. First occurrence of the tool is used. Note that inthis case the multitool and/or multitool station used in TopPunch R© may be different fromthe one intended during off-line programming.

5. In case of MTX machine the turret is also checked for presence of the required tool.

6. An error is reported if any of the above steps fail.

Moreover, the TOOL command resets technology conditions such as tool strokes, ram speedand acceleration and axes feed rate to values associated with the tool. See Section 3.15 [Con-trolling Technology Conditions], page 9 and Section 3.18 [Overriding Tool Parameters], page 13,for information on programming their overriding.

The first occurrence of the TOOL is expected at the beginning of an NC code before theCARICO command. However, it is not executed. It merely declares a tool to be loaded at theCARICO .

An NC block example:

TOOL 3 TONDO 20 SINGLE

TOOL 60103 RE 20 3 0 6MT01

3.17 Tool Offset

OFFSET Xx Yy

The command declares offsets of a multitool station. It is related to the tool change andshould appear just after the TOOL command.

The command doesn’t influence processing of a job on a machine. Its only purpose is declaringtool offsets for correct drawing of hits on screen.

If a multitool station is detected from a tool code at the TOOL command the offsets arecalculated automatically. In this case, the OFFSET may be omitted. If it is not it is overriddenby the calculated values.

The offset X and Y values are in the multitool coordinate system.

An NC block example:

OFFSET X17.75 Y30.75

Page 16: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 3: NC Commands 13

3.18 Overriding Tool Parameters

TOOL_PARAM param1=val1 param2=val2 ... paramn=valn

A set of additional parameters besides dimensions and strokes is associated with each tool ina punch list of a machine tool. Those parameters affect punching conditions and special functionsof the machine. One way of their controlling was described in the Section 3.15 [ControllingTechnology Conditions], page 9. The command TOOL_PARAM allows specifying the overriddenparameters on one line in an NC code.

See Table 3.5, for list of currently supported tool parameters. Parameters not specified inthe command are not touched. Omitting a value at a parameter resets it to a value found inpunch list on a machine. All parameter values are always of integer type.

nlube Number of hits between tool lubrication oil injections.

aram Ram acceleration in percents of its highest value multiplied by 1000. Similar to thecommand RAM_A.

vram Ram speed in percents of its highest value multiplied by 1000. Similar to the com-mand RAM_V.

pause2 Dwell in the tool lower stroke. Similar to the command PAUSE2 but the dwell timespecified in ms.

sex Scrap exhausting. A positive value enables exhausting of scrap. Zero or a negativevalue turns it off.

Table 3.5: Tool parameters.

The command is supported in TopPunch R© since version 2.2.0.

An NC block example:

TOOL_PARAM pause2=200 vram= aram=80000

3.19 Raising Punching Head

HEAD_UP

HEADUP

The command raises the ram to its upper dead point. Returning back to an upper strokeposition is handled automatically when necessary. Usually the next hit will do that.

The command is supported in TopPunch R© since version 2.2.0.

3.20 Rotating and Flipping a Sheet

The following two commands allow virtual doubling of working area size in the Y axis direction.

A machine goes to the loading position and enables opening clamps and raising a referencepin by depressing a foot pedal. A message appears on screen telling an operator to rotateor flip a metal sheet. After reloading the sheet at the required orientation the operator maycontinue working by pressing the start cycle button. Safety barrier (if installed) is disabled forthe necessary time to allow entering the working area.

The commands redefine the NC origin point. Rotation or flipping the metal sheet causesanother corner is the upper left one. This corner becomes the programming origin for furthercommands.

Page 17: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 3: NC Commands 14

3.20.1 Rotate Sheet

RUOTA

ROTATE

The command requests rotating a metal sheet by 180◦. The sheet reference edge changesafter rotating. From this reason it is important to declare the accurate X measure of the materialin the DIM command.

3.20.2 Flip Sheet

RIBALTA

FLIP

This command instructs an operator to flip a metal sheet upside down. Further processingof an NC code relies on accurate specifying the Y dimension in the DIM command.

3.21 Extra Strip

STRIP Xx Yy

The command is valid in L-gauge mode only, i.e. after the LGAUGE command. It controlsinserting or removing extra strips added to the L-gauge.

The extra strip is a piece of material inserted between the L-gauge and a sheet metal. Itprotects the L-gauge when punching close to an edge of the sheet.

The two arguments x and y mean size of the extra strip to add along the vertical andhorizontal sides of the L-gauge. The value of 0 means removing the appropriate strip.

On reaching the STRIP command a machine stops and launches a message to an operatorasking inserting or removing the extra strip.

The command is supported in TopPunch R© since version 2.0.0.

An NC block example:

STRIP X50 Y0

3.22 Marking Patterns and Profiles

The following commands mark the start or the end of a working cycle. None of them is manda-tory to use. However, the START_PROFILE and the END_PROFILE are recommended to markinterpolation mode working cycles.

LAVORAZIONE

WCYCLE

Marks the start of a new punching pattern.

RODITURA

Marks the start of a nibbling cycle.

ENDRODI

The command marks the end of a nibbling cycle.

START_PROFILE Xx Yy Cc

Moves to the specified position Xx Yy Cc and starts an interpolation mode profile.

END_PROFILE

Ends an interpolation mode profile.

Page 18: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 4: Application Notes 15

3.23 Message to an Operator

MSG string

The command allows passing a text message to an operator. A machine stops and the stringdisplays on a screen. The operator has to press the start cycle button to proceed.

The command is supported in TopPunch R© since version 2.0.0.

An NC block example:

MSG How are you?

3.24 Job End and Unloading Position

END flags

END Xx Yy Cc flags

The END command should appear only once in an NC code at its very end. Using its simplervariant without arguments moves axes to the loading position.

Alternatively, an unloading position may be specified in the Xx Yy Cc argument. A machinemoves to that position and issues a message for an operator to remove a sheet. Then themachine goes to the loading position. See Section 2.2 [Specifying Coordinates], page 1, fordetails on specifying coordinates. Note that in this case the x and y values refer to the machinecoordinate system rather then to the NC coordinate system.

Optional flags argument specifies whether a material shall be unloaded manually or auto-matically. Possible values are MAN and AUTO for manual and automatic unloading, respectively.If ommited, machine parameter autounload makes the decission. This extension is supported inTopPunch since version 2.1.1.

Both versions of the command increment the ready sheets counter.

The END may be omitted which causes moving to the loading position but the ready sheetis not counted.

4 Application Notes

4.1 Auto-Index Machines

On auto-index machines a tool angle at the TOOL command has to be added to the C coordinateto get the real hit angle. To avoid any confusions it is recommended to declare any tool at zerodegrees.

4.2 Turret Machines

A model line of EUROMAC turret punch presses is called MTX. Several modifications of theturret exist with five or six tool stations. Two or three of them can be indexable. Each stationcan hold a single tool up to size D or any supported multitool. If loaded into an index stationall tools within a multitool may rotate.

An NC code doesn’t define in which turret station a tool is loaded. However, number of toolsdeclared in one NC file cannot exceed the turret capacity. MTX machines don’t support manualtool changes within one NC programme. It is a machine operator’s responsibility to load theturret with tooling and declare the configuration in the TopPunch R© control software. The onlyobvious requirement is that tools rotating in the NC code must be loaded in an (arbitrary) indexstation of the turret.

Page 19: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 4: Application Notes 16

4.2.1 MTX 12

The 12-station turret of MTX machines houses three index D stations, three fix D stations andsix B stations. The B stations enable to lift a die when a forming tool is in use. This feature isdone automatically in control and is not programmable in NC code.

All the B stations are offset by 70 mm when under a ram. This has to be taken into accountin an NC code so that the 70 mm are added to each Y coordinate for any B station. So, tomake a hole at 100 mm in the X axis and 0 mm in the Y axis the following has to be output inan NC code.

COLPO X100 Y70

The 12 station turret is supported in TopPunch R© since version 2.2.0.

4.3 Flex

The EUROMAC Flex electro-hydraulic system consists of a servo motor driven cam whichcontrols hydraulic valves. This solution allows very precise and flexible control of a ram position,speed and acceleration.

Flex machines support the PAUSE2 command which stops a ram at its lower stroke fora specified time. If the ram working stroke doesn’t exceed the cam travel (which is 11 mm) itsspeed and acceleration are programmable.

Moreover, since TopPunch R© 2.2.0 the commands RAM_V and RAM_A may be used to overridea tool preset values of the ram speed and acceleration in punching mode.

4.4 Tapping

TopPunch R© uses a special macro cycle for tapping operations. That means a tapping tool mustbe declared as the SPECIAL shape and a unique code is dedicated to the tool. See Table 3.2, forthe special macro cycles. Special shapes take two dimension parameters which in the case ofthe tapping tool mean diameter of a tap and a thread pitch. The tool requires rotation. Thus,it must be assigned to an index tool station.

In an NC code the COLPO is used to make a thread. For a tapping tool the C coordinate isinterpreted differently from punching tools. In this case it means length of the thread or moreprecisely working travel of the tool.

The full taping cycle is as follows. Machine moves the X and Y axes to a position specified atthe COLPO command. Here the tapping tool descends to its upper stroke value. Now, the upper

index axis starts rotating in right hand direction makingc

prevolutions, where c is a value at

the C coordinate and p is the thread pitch. At this point the index reverses its rotation makingidentical number of revolutions in the left hand direction. Finally, a ram moves to its upperdead point.

TOOL 9003 SPECIAL 4 1

COLPO X100 Y200 C5

The above example will produce a thread of length 5 at position X100, Y200 with a tapM4×1.

It is operator’s responsibility to set up proper parameters of the tapping tool in punch listin TopPunch R©. The parameters mainly include a thread pitch and revolution rate.

The special macro cycle requirement implies that tapping tools are supported in TopPunch R©since version 2.0.0.

Page 20: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 4: Application Notes 17

4.5 Automatic Loading and Unloading

Programming EUROMAC machines with an automatic loading/unloading unit is almost iden-tical to machines without the unit. The only differences are regarding to loading, unloading andclamps positions.

Figure 4.1: Loading material.

The machines have three loading pins used to define a sheet metal reference position. SeeFigure 4.1, for location of the pins on the machine. In NC code (in the CARICO command) thepins are referred to as PIN1, PIN2 or, in case of automatic pin selection, PIN. See Table 4.1, forassignment of the loading pins. Both automatically and manually large material shell be loadedat the PIN1 and small material at the PIN2. Large material is considered when its X dimensionis greater than the xint machine parameter.

Loading PIN1 PIN2

Automatic 1 2AManual 1 2M

Table 4.1: Loading pins.

With the exception of manually loading at PIN1, material loads at its right hand edge. Butthe programming origin (NC zero) point still remains at the upper left corner of the sheet. Thus

Page 21: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 4: Application Notes 18

with changing the sheet X dimension the NC zero point moves on a machine table. Figure 4.1shows automatic loading at PIN2. See Figure 4.2, for more detailed explanation of dimensionsand machine parameters used for loading sheet using its right edge as reference. The equationsXM = XNC + xld − xref and XNC = XM − xld + xref transform the NC coordinate XNC todistance from a ram centre XM and vice versa. The XM is actually the XNC transformed to themachine coordinate system. The xld is position of back gauge and xref is distance of the sheetreference edge at loading position.

Figure 4.2: Loading material automatically at PIN1.

To produce correct NC code any position coordinates and clamp position shall be checkedagainst the transformed values of working area and clamp position limits and not against the ma-chine parameters values. The following paragraphs explain how to calculate the transformationsfor various cases of loading positions.

Loading xld xref xld− xrefPIN1 AUTO xpin1+xumax+2offu+pinoffset xpin1 + sx xumax+2offu+pinoffset−sxPIN2 AUTO xpin2 + xumax + 2offu xpin2 + sx xumax + 2offu− sxPIN1 MAN xpin1 xpin1 0PIN2 MAN xpinman+ xumax + 2offu xpinman+ sx xumax + 2offu− sx

Table 4.2: xld and xref .sx–X dimension of a metal sheet; machine parameters: xpin1–position of loading pin 1; xpin2–position of loading pin 2A; xpinman–position of loading pin 2M; xumax–maximum clamp posi-tion; offu–half X dimension of a clamp.

Assuming the above and knowing the minimal (xumin) and maximal (xumax) positions ofclamps on a back gauge we can transform those positions to NC coordinates. See Table 4.3, forresults. Clamp positions in the PINZE command are expected within those ranges.

Page 22: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 4: Application Notes 19

Loading Minimal Clamp Position (cmin) Maximal Clamp Position (cmax)PIN1 AUTO sx+ xumin− xumax − 2offu− pinoffset sx− 2offu− pinoffsetPIN2 AUTO sx+ xumin− xumax − 2offu sx− 2offuPIN1 MAN xumin xumaxPIN2 MAN sx+ xumin− xumax − 2offu sx− 2offu

Table 4.3: Limit clamp positions in NC coordinates.

The X coordinate range is defined by the machine parameters xmin and xmax. See Table 4.4,for its values transformed to the NC coordinate system.

Loading Lowest X coordinate Highest X coordinatePIN1 AUTO xmin− xumax − 2offu− pinoffset + sx xmax−xumax−2offu−pinoffset+sxPIN2 AUTO xmin− xumax − 2offu+ sx xmax − xumax − 2offu+ sxPIN1 MAN xmin xmaxPIN2 MAN xmin− xumax − 2offu+ sx xmax − xumax − 2offu+ sx

Table 4.4: X axis limits in NC coordinates.

On automatic unloading the sheet metal must be positioned so that it fits inside unloadingarea of a machine. See Figure 4.3. Here the unloading area is limited by the ua0 and ua1dimensions. Thus the unloading distance of the right edge u must fit within the range of< ua0, ua1− sx >. Currently, no machine parameters define the range. The recommendedvalues are ua0 = 600mm and ua1 = 3600mm.

Considering the above the X unloading coordinate has to fit within the range of< xld+ ua0, xld+ ua1− sx >. See Table 4.2, for calculation of xld. This is true if and only ifclamps are at their original position, i.e. there was no reposition at all or the clamps are backat their original position after all repositions in a job. To compensate for repositions just addto the range the difference between final and original distances of a clamp to a sheet edge.

Note that it may be necessary to include an extra clamps reposition before unloading whenthe X coordinate value exceeds its working range.

Certain Y coordinates are required for both automatic loading and automatic unloadingpositions. There values can be obtained from machine parameters. See Table 4.5.

yload1 Y coordinate when loading at PIN1.

yload2 Y coordinate when loading at PIN2.

yv Y coordinate for unloading.

Table 4.5: Y axis automatic loading and unloading position parameters.

Note that there is a limit of material size which a loader can accept. The machine parametershtymax declares the largest material dimension in the Y axis. It applies for both the automaticand manual loading and unloading. Sheet rotation and flipping, i.e. the RUOTA and RIBALTA

commands, are not allowed when loading automatically.

Automatic loading and unloading is supported in TopPunch R© since version 2.1.0.

Page 23: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 4: Application Notes 20

Figure 4.3: Unloading material.

Page 24: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 5: An NC Code Example 21

5 An NC Code Example

Figure 5.1: An example job.

Following is an example NC code for an EUROMAC punch press. Note that it contains somecommands that are not supported by all models. See comments in parentheses for explanationof the code.

(Name of the job)

NAME nc-example

(Sheet dimensions: X Y thickness)

DIM 1000.0 700.0 1.00000

(Sheet material)

MATERIAL steel

(Clamps position)

PINZE 395.00000 615.00000

(Initial tool declaration:)

(round of 12 inside multitool XMTE10 code 6 station 9)

TOOL 280609 T 12.00 XMTE10-06

OFFSET X28.90833 Y-26.02918

(Loading position: select loading pin automatically)

CARICO XPIN Y341.00000

LAVORAZIONE

(Move to X271.09 Y90)

MOV X271.09167 Y90.00000

(Hit at X271.09 Y23.97)

Page 25: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 5: An NC Code Example 22

COLPO X271.09167 Y23.97082

COLPO X71.09167 Y23.97082

MOV X71.09167 Y90.00000

MOV X560.00000 Y479.00000

(Clamps reposition)

RIPOSIZIONA X407.61900 Y0.00000

LAVORAZIONE

COLPO X471.09167 Y23.97082

LAVORAZIONE

COLPO X671.09167 Y23.97082

LAVORAZIONE

COLPO X871.09167 Y23.97082

(Set required position: the actual movement is executed in the next command)

SET X732.24670 Y269.25038 C0.000

(Tool change: round 22 inside multitool XMTE6 code 1 station 6)

TOOL 600106 T 22.00 6MT01

OFFSET X17.75330 Y-30.74962

(Dwell before a hit for 0.25 s)

PAUSE 0.25

COLPO X732.24670 Y269.25038 C0.000

SET X811.52088 Y263.58605 C0.000

TOOL 600103 Q 15.00 0.000 6MT01

OFFSET X-17.75330 Y30.74962

(Reset the dwell before a hit)

PAUSE 0.00

LAVORAZIONE

COLPO X811.52088 Y263.58605 C45.000

COLPO X767.75328 Y230.74962 C0.000

COLPO X713.58605 Y238.47912 C315.000

COLPO X680.74962 Y282.24673 C270.000

COLPO X688.47912 Y336.41395 C225.000

COLPO X732.24672 Y369.25038 C180.000

COLPO X786.41396 Y361.52087 C135.000

COLPO X819.25038 Y317.75330 C90.000

SET X420.00000 Y570.00000

(Tool change: special shape single tool 10x16 at 0 degrees)

(loaded in a B station of the 12-station turret)

TOOL 3119 S 10.00 16.00 0.000 _SINGLE_B_

OFFSET X0.00000 Y-0.00000

LAVORAZIONE

(Override tool parameters: ram speed at 60%, ram acceleration at 80%,)

(dwell in the lover stroke for 200 ms)

TOOL_PARAM vram=60000 aram=80000 pause2=200

COLPO X420.00000 Y570.00000

COLPO X260.00000 Y570.00000

SET X280.00000 Y580.00000 C0.000

(Tool change: MATE RollerBall and the like; requires the interpolation mode)

TOOL 6972 RL 40.00 0.000 _SINGLE_D_

OFFSET X0.00000 Y-0.00000

(The interpolation mode feedrate: 3000 mm/min)

FEEDRATE 3000.00

TOOL_PARAM vram=40000

Page 26: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 5: An NC Code Example 23

(Move to an initial position and start profile in the interpolation mode)

START_PROFILE X280.00000 Y580.00000 C180.000

(Linear interpolation to the end point X260 Y580)

LINE X260.00000 Y580.00000

(Circular interpolation to the left to the end point X220 Y540)

(The arc centre point is at X220 Y500)

CIL X220.00000 Y540.00000 I0.00000 J-40.00000

LINE X220.00000 Y460.00000

CIL X260.00000 Y420.00000 I40.00000 J0.00000

LINE X430.00000 Y420.00000

CIL X470.00000 Y460.00001 I0.00000 J40.00000

LINE X470.00000 Y540.00000

CIL X430.00000 Y580.00000 I-40.00000 J0.00000

LINE X260.00000 Y580.00000

CIL X232.73445 Y569.26756 I0.00000 J-40.00000

(Finish interpolation mode)

END_PROFILE

SET X197.50000 Y575.00000 C0.000

(Tool change: rectangle 60x5 at 0 degrees)

TOOL 365 R 60.00 5.00 0.000 _SINGLE_D_

OFFSET X0.00000 Y-0.00000

LAVORAZIONE

(Limit X and Y axes travel speed to 70%)

SPEED_XY 70.00

(Override the tool upper stroke)

TOOL_UP 8.00

COLPO X197.50000 Y575.00000 C90.000

COLPO X197.50000 Y525.00000 C90.000

COLPO X197.50000 Y475.00000 C90.000

COLPO X197.50000 Y425.00000 C90.000

LAVORAZIONE

COLPO X225.00000 Y397.50000 C0.000

COLPO X273.00000 Y397.50000 C0.000

COLPO X321.00000 Y397.50000 C0.000

COLPO X369.00000 Y397.50000 C0.000

COLPO X417.00000 Y397.50000 C0.000

COLPO X465.00000 Y397.50000 C0.000

LAVORAZIONE

COLPO X492.50000 Y425.00000 C90.000

COLPO X492.50000 Y475.00000 C90.000

COLPO X492.50000 Y525.00000 C90.000

COLPO X492.50000 Y575.00000 C90.000

LAVORAZIONE

COLPO X465.00000 Y602.50000 C0.000

COLPO X417.00000 Y602.50000 C0.000

COLPO X369.00000 Y602.50000 C0.000

COLPO X321.00000 Y602.50000 C0.000

COLPO X273.00000 Y602.50000 C0.000

COLPO X225.00000 Y602.50000 C0.000

(Stop a machine: remove ready part)

STOP

MOV X657.38100 Y341.00000 C0.000

Page 27: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Chapter 5: An NC Code Example 24

(Restore travel speed to 100%)

SPEED_XY 100.00

(Reset the tool upper stroke to a value found in punch list)

TOOL_UP -100.00

END

Page 28: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Appendix B: Machine Parameters Index 25

Appendix A Concept Index

Ccircular interpolation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3clamps reposition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8coordinate system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1, 3

Ffeed rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7, 10Flex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii, 16

Iincremental programming . . . . . . . . . . . . . . . . . . . . . . . . . 3interpolation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3, 7

LL-gauge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5L-gauge mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5linear interpolation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

NNC command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Ttapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11, 16technology conditions . . . . . . . . . . . . . . . . . . . . . . . . . . 9, 12tool code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10tool shape . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Uunit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Wworking area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

Zzero point . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Appendix B Machine Parameters Index

Aaram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10arami . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10autoload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6autounload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Llgclamp1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5lgclamp2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5lgoffx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5lgoffy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5lgx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5lgy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Nncunit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Ooffu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18, 19

Ppinoffset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18, 19

Uunit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Vvram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10vrami . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Xxint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3xload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3xmax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19xmin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19xpin1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2, 3, 18xpin2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2, 3, 18xpinman . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18xpinrep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2xumax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18, 19xumin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18, 19

Yyload1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19yload2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19ypin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2ypinrep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2yv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Page 29: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Appendix C: NC Commands Index 26

Page 30: EUROMAC NC Codedocshare01.docshare.tips/files/20537/205379265.pdf · This document describes format of NC code for EUROMAC punch presses. The description is specific to the TopPunch

Appendix C: NC Commands Index 27

Appendix C NC Commands Index

%% . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

BBOTOLA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

CCARICO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3, 4CARICO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5, 6CARICO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 17CHUTE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8CIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3CIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7CIR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3CIR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7CLAMPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4COLPO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3COLPO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7COLPO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9, 16

DDIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4DIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6, 14DWELL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

EEND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3, 10, 15END_PROFILE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7, 14ENDRODI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

FFEEDRATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7FEEDRATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9, 10FLIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

HHEAD_UP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13HEADUP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13HIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

LLAVORAZIONE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14LCIR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7LGAUGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5, 14LIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3LINE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7LOAD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

MMATERIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4MOV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3MOV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6MOV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

MOVE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6MSG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

NNAME . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

OOFFSET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

PPAUSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9PAUSE1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9PAUSE2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9, 13, 16PINZE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4PINZE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6PINZE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

RRAM_A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10, 16RAM_A. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13RAM_V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10, 16RAM_V. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13RCIR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7REPOSITION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8RIBALTA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14RIBALTA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19RIPOSIZIONA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8RODITURA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14ROTATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14RUOTA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14RUOTA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

SSET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6SPEED_XY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9, 10START_PROFILE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3START_PROFILE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7, 14STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8STOP1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8STRIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

TTOGLI_TOOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10TOOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6TOOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10, 12, 15TOOL_DOWN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10TOOL_PARAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13TOOL_UP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10TRAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8TRAP_DOOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

WWCYCLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14WORK_CHUTE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8