Docsity

PGT 0609 en, Notas de estudo de Engenharia Mecânica

Toggle sidebar
bg1
SINUMERIK SINUMERIK 840D sl/840Di sl/828D/802D sl ISO Turning
_
_____________
_
_____________
_
_____________
_
_____________
_
_____________
_
_____________
_
_____________
_
_____________
_
_____________
Fundamentals of
programming 1
Travel commands
2
Traversing command
3
Additional functions
4
Abbreviations
A
G code table
B
Data Description
C
Data lists
D
Alarms
E
SINUMERIK
SINUMERIK 840D sl/840Di sl/
828D/802D sl
ISO Turning
Programming Manual
06/09
6FC5398-5BP10-1BA0
Valid for
Software Version
SINUMERIK 802D sl 1.4
SINUMERIK 828D 2.6
SINUMERIK 840D sl/DE sl 2.6
SINUMERIK 840Di sl/DiE sl 1.4
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Pré-visualização parcial do texto

Baixe PGT 0609 en e outras Notas de estudo em PDF para Engenharia Mecânica, somente na Docsity!

SINUMERIK SINUMERIK 840D sl/840Di sl/828D/802D sl ISO Turning

______________

______________

______________

______________

______________

______________

______________

______________

______________

Fundamentals of

programming 1

Travel commands 2

Traversing command 3

Additional functions 4

Abbreviations A

G code table B

Data Description C

Data lists D

Alarms E

SINUMERIK

SINUMERIK 840D sl/840Di sl/

828D/802D sl

ISO Turning

Programming Manual

6FC5398-5BP10-1BA

Valid for

Software Version

SINUMERIK 802D sl 1.

SINUMERIK 828D 2.

SINUMERIK 840D sl/DE sl 2.

SINUMERIK 840Di sl/DiE sl 1.

Legal information

Legal information

Warning notice system

This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.

DANGER indicates that death or severe personal injury will result if proper precautions are not taken.

WARNING indicates that death or severe personal injury may result if proper precautions are not taken.

CAUTION with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.

CAUTION without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.

NOTICE indicates that an unintended result or situation can occur if the corresponding information is not taken into account. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.

Qualified Personnel

The device/system may only be set up and used in conjunction with this documentation. Commissioning and operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes in this documentation qualified persons are defined as persons who are authorized to commission, ground and label devices, systems and circuits in accordance with established safety practices and standards.

Proper use of Siemens products

Note the following:

WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems. The permissible ambient conditions must be adhered to. The information in the relevant documentation must be observed.

Trademarks

All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.

Disclaimer of Liability

We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY

Ordernumber: 6FC5398-5BP10-1BA Ⓟ 07/

Copyright © Siemens AG 2009. Technical data subject to change

Table of contents

Table of contents

  • 1 Fundamentals of programming Table of contents
    • 1.1 Introductory remarks ......................................................................................................................
    • 1.1.1 Siemens mode ...............................................................................................................................
    • 1.1.2 ISO dialect mode ...........................................................................................................................
    • 1.1.3 Switching between the modes .......................................................................................................
    • 1.1.4 Display of the G code.....................................................................................................................
    • 1.1.5 Maximum number of axes/axis identifiers......................................................................................
    • 1.1.6 Define G code system A, B or C ....................................................................................................
    • 1.1.7 Programming the decimal point .....................................................................................................
    • 1.1.8 Comments....................................................................................................................................
    • 1.1.9 Skip block.....................................................................................................................................
    • 1.2 Prerequisites for the feed.............................................................................................................
    • 1.2.1 Rapid traverse..............................................................................................................................
    • 1.2.2 Path feed (F function) ..................................................................................................................
    • 1.2.3 Fixed feedrates F0 to F9..............................................................................................................
    • 1.2.4 Linear feed (G94).........................................................................................................................
    • 1.2.5 Inverse-time feed (G93) ...............................................................................................................
    • 1.2.6 Revolutional feedrate (G95).........................................................................................................
  • 2 Travel commands
    • 2.1 Interpolation commands...............................................................................................................
    • 2.1.1 Rapid traverse (G00) ...................................................................................................................
    • 2.1.2 Linear interpolation (G01) ............................................................................................................
    • 2.1.3 Circular interpolation (G02, G03) .................................................................................................
    • 2.1.4 Contour definition programming and insertion of chamfers and radii ..........................................
    • 2.1.5 Involute interpolation (G02.2, G03.2)...........................................................................................
    • 2.1.6 Cylindrical interpolation (G07.1)...................................................................................................
    • 2.1.7 Polar coordinates interpolation (G12.1, G13.1) (TRANSMIT) .....................................................
    • 2.2 Reference point approach with G functions.................................................................................
    • 2.2.1 Reference point approach with intermediate point (G28) ............................................................
    • 2.2.2 Checking the reference position (G27) ........................................................................................
    • 2.2.3 Reference point approach with reference point selection (G30) .................................................
    • 2.3 Use of the thread cutting function ................................................................................................
    • 2.3.1 Thread cutting with constant lead (G33)......................................................................................
    • 2.3.2 Interlinking of threads (G33) ........................................................................................................
    • 2.3.3 Cutting of multiple-start threads (G33).........................................................................................
    • 2.3.4 Cutting of thread with variable lead (G34) ...................................................................................
  • 3 Traversing command
    • 3.1 The coordinate system.................................................................................................................
    • 3.1.1 Machine coordinate system (G53) ...............................................................................................
    • 3.1.2 Workpiece coordinate system (G92) ...........................................................................................
    • 3.1.3 Resetting the tool coordinate system (G92.1) .............................................................................
    • 3.1.4 Selection of a workpiece coordinate system................................................................................
    • 3.1.5 Writing work offset/tool offsets (G10)...........................................................................................
    • 3.2 Defining the input modes for the coordinate values ....................................................................
    • 3.2.1 Absolute/incremental dimensioning (G90, G91) ISO Turning
    • 3.2.2 Diameter and radius programming for the X-axis
    • 3.2.3 Input inch/metric (G20, G21).......................................................................................................
    • 3.3 Time-controlled commands.........................................................................................................
    • 3.3.1 Dwell time (G04)
    • 3.4 Tool offset functions
    • 3.4.1 Tool offset data memory
    • 3.4.2 Tool length compensation
    • 3.4.3 Tool nose radius compensation (G40, G41/G42)
    • 3.5 S-, T-, M- and B functions
    • 3.5.1 Spindle function (S function)
    • 3.5.2 Constant cutting rate (G96, G97)................................................................................................
    • 3.5.3 Tool change with T functions (T function)
    • 3.5.4 Additional function (M function)...................................................................................................
    • 3.5.5 M functions of spindle control......................................................................................................
    • 3.5.6 M functions for subroutine calls
    • 3.5.7 Macro call via M function.............................................................................................................
    • 3.5.8 M functions
  • 4 Additional functions..................................................................................................................................
    • 4.1 Program-support functions..........................................................................................................
    • 4.1.1 Fixed cycles
    • 4.1.2 Multiple repetitive cycles
    • 4.1.3 Drilling cycle (G80 to G89)
    • 4.2 Programmable data input..........................................................................................................
    • 4.2.1 Changing the tool offset value (G10)
    • 4.2.2 M function for calling subroutines (M98, M99)
    • 4.3 Eight-digit program number.......................................................................................................
    • 4.4 Measuring functions
    • 4.4.1 Rapid lift with G10.6
    • 4.4.2 Delete measuring with distance-to-go (G31)
    • 4.4.3 Measuring with G31, P1 - P4
    • 4.4.4 Interrupt program with M96/M97 (ASUB)..................................................................................
    • 4.5 Macro programs
    • 4.5.1 Differences with subroutines
    • 4.5.2 Macro program call (G65, G66, G67)
    • 4.6 Special functions
    • 4.6.1 G05............................................................................................................................................
    • 4.6.2 Multi-edge turning
    • 4.6.3 Compressor in the ISO dialect mode
    • 4.6.4 Switchover modes for DryRun and skip levels..........................................................................
    • 4.6.5 Interrupt program with M96, M97..............................................................................................
  • A Abbreviations.........................................................................................................................................
  • B G code table
  • C Data Description
    • C.1 General machine/setting data
    • C.2 Channel-specific machine data.................................................................................................
    • C.3 Axis-specific setting data...........................................................................................................
    • C.4 Channel-specific setting data..................................................................................................... ISO Turning
  • D Data lists................................................................................................................................................
    • D.1 Machine data..............................................................................................................................
    • D.2 Setting data ................................................................................................................................
    • D.3 Variables ....................................................................................................................................
  • E Alarms
    • E.1 Alarms ........................................................................................................................................
    • Glossary
    • Index......................................................................................................................................................

ISO Turning

Fundamentals of programming 1

1.1 Introductory remarks

1.1.1 Siemens mode

The following conditions are valid in the Siemens mode:

● The default of the G commands can be defined for each channel via the machine data 20150 $MC_GCODE_RESET_VALUES.

● No language commands from the ISO dialects can be programmed in the Siemens mode.

1.1.2 ISO dialect mode

The following conditions are valid in the active ISO dialect mode:

● The ISO dialect mode can be set with machine data as the default setting of control system. The control system reboots by default in the ISO dialect mode subsequently.

● Only G functions from the ISO dialect can be programmed; the programming of Siemens G functions is not possible in the ISO Mode.

● Mixing of ISO dialect and Siemens language in the same NC block is not possible.

● Switching between ISO Dialect M and ISO Dialect T with a G command is not possible.

● Subroutines that are programmed in the Siemens mode can be called.

● If Siemens functions are to be used, one must first switch to the Siemens mode.

1.1.3 Switching between the modes

The following G functions can be used to switch between the Siemens mode and the ISO dialect mode:

● G290 - Siemens NC programming language active

● G291 - ISO Dialect NC Programming language active

The active tool, the tool offsets and work offsets are not influenced by the switchover.

G290 and G291 must be programmed alone in an NC block.

Fundamentals of programming

1.1 Introductory remarks

ISO Turning

1.1.4 Display of the G code

The G code is displayed in the same language (Siemens or ISO Dialect) as the relevant current block. If the display of the blocks is suppressed with DISPLOF, the G codes continue to be displayed in the language in which the active block is displayed.

Example

The G functions of the ISO dialect mode are used to call the Siemens standard cycles. To do this, DISPLOF is programmed at the start of the relevant cycle; this way the G functions that are programmed in the ISO dialect language continue to be displayed. PROC CYCLE328 SAVE DISPLOF N ... ... N99 RET

Procedure

The Siemens shell cycles are called via main programs. The Siemens mode is selected automatically by calling the shell cycle.

With DISPLOF, the block display is frozen on calling the cycle; the display of the G code continues in the ISO Mode.

The G codes that were changed in the shell cycle, are reset to their original status at the end of the cycle with the "SAVE" attribute.

1.1.5 Maximum number of axes/axis identifiers

The maximum number of axes in the ISO dialect mode is 9. The axis identifiers for the first three axes are defined permanently with X, Y and Z. All other axes can be identified with the letters A, B, C, U, V and W.

1.1.6 Define G code system A, B or C

In the ISO-dialect-T, a differentiation is made between the G code system A, B or C. By default, the G code system B is active. Via the MD $MN_MM_EXTERN_GCODE_SYSTEM, the G code system A, B or C is selected as follows:

$MN_MM_EXTERN_GCODE_SYSTEM = 0: G code system B

$MN_MM_EXTERN_GCODE_SYSTEM = 1: G code system A

$MN_MM_EXTERN_GCODE_SYSTEM = 2: G code system C

Fundamentals of programming

1.1 Introductory remarks

ISO Turning

ISO dialect Rotate

Table 1- 1 Different conversion factors for IS-B and IS-C

Address Unit IS-B IS-C Linear axis mm inch

0, 0,

0, 0, Rotary axis Degree 0,001 0, F Feed G94 (mm/inch per min.) mm inch

1 0,

1 0, F Feed G95 (mm/inch per rotation) $MC_EXTERN_FUNCTION_MASK Bit8 = 0 mm inch

0, 0,

0, 0, Bit8 = 1 mm inch

0, 0,

0, 0, F Thread lead mm inch

0, 0,

0, 0, C Chamfer mm inch

0, 0,

0, 0, R Radius, G10 toolcorr mm inch

0, 0,

0, 0, I, J, K IPO-Parameter mm inch

0, 0,

0, 0, G04 X or U 0,001 0, A Angle contour definition 0,001 0, G76, G78 tapping cycle $MC_EXTERN_FUNCTION_MASK Bit8 = 0 F as feed such as G94, G Bit8 = 1 F as thread lead G84, G88 tapping cycle $MC_EXTERN_FUNCTION_MASK Bit9 = 0 G95 F mm inch

0, 0,

0, 0, Bit8 = 1 G95 F mm inch

0, 0,

0, 0,

Fundamentals of programming

1.1 Introductory remarks

ISO Turning

1.1.8 Comments

In the ISO dialect mode, brackets are interpreted as comment signs. In the Siemens mode, ";" is interpreted as comment. To simplify matters, an ";" is also understood as comment in the ISO dialect mode.

If the comment start sign '(' is used inside a comment again, the comment is ended only if all the open brackets are closed again.

Example: N5 (comment) X100 Y N10 (comment(comment)) X100 Y N15 (comment(comment) X100) Y

X100 Y100 is executed in block N5 and N10, but only Y100 in block N15, because the first bracket is closed only after X100. Everything up to that point is interpreted as comment.

1.1.9 Skip block

The sign of skipping or suppression of blocks "/" can be used at any convenient position in a block, i.e. even in the middle of the block. If the programmed block skip level is active on the date of the compilation, the block is not compiled from this point up to the end of the block. An active block skip level has the same effect as a block end.

Example:

N5 G00 X100. /3 YY100 --> Alarm 12080 "Syntax error" N5 G00 X100. /3 YY100 --> no alarm, if block skip level 3 is active

Block skip signs within a comment are not interpreted as block skip signs

Example:

N5 G00 X100. ( /3 Part1 ) Y ;the Y axis is traversed even when the block skip level 3 is active

The block skip levels /1 to /9 can be active. Block skip values <1 and >9 lead to alarm 14060 "Impermissible skip level for differential block skip".

The function is mapped to the existing Siemens skip levels. Unlike the ISO Dialect original, "/" and "/1" are separate skip levels that must also be activated separately.

Note The "0" in "/0" can be omitted.

Fundamentals of programming

1.2 Prerequisites for the feed

ISO Turning

<

;

PPPLQ

PPPLQ

*6 UPLQ  ;=)

7UDYHUVLQJVSHHGLQ WDQJHQWLDOGLUHFWLRQ PPPLQ

3URJUDPPLQJH[DPSOH

Figure 1-1 Linear interpolation with 2 axes

;=,) *6 UPLQ 

PPPLQ

;

=

)]

)[

3URJUDPPLQJH[DPSOH

&HQWHUSRLQW

Figure 1-2 Circular interpolation with 2 axes

Note

If "F0" is programmed and the function "Fixed feedrates" is not activated in the block, then the alarm 14800 "Channel %1 Set %2 programmed path velocity is less than or equal to zero" is given off.

Fundamentals of programming

1.2 Prerequisites for the feed

ISO Turning

1.2.3 Fixed feedrates F0 to F

Activate feed values

Ten different feed values pre-set via setting data can be activated with F0 to F9. To activate the rapid traverse rate with F0, the corresponding speed must be entered in the setting data 42160 $SC_EXTERN_FIXED_FEEDRATE_F1_F9[0].

The feed values for F0 to F9 are entered in the setting data as real values. An evaluation of the input values is not undertaken.

The function is activated via the machine data 22920 $MC_EXTERN_FIXED_FEEDRATE_F1_ON. If the machine data is set to FALSE, F1 - F9 is interpreted as normal feed programming, e.g. F2 = 2 mm/min, F0=0 mm/min.

If the machine data = TRUE, the feed values for F0 - F9 are fetched from the setting data 42160 $SC_EXTERN_FIXED_FEEDRATE_F1_F9[ ]. If the value 0 exists in one of the setting data, then the corresponding address extension of feed 0 is activated during the programming.

Example

$SC_FIXED_FEEDRATE_F1_F9[0] = 5000
$SC_FIXED_FEEDRATE_F1_F9[1] = 1000
$SC_FIXED_FEEDRATE_F1_F9[2] = 500

N10 X10 Y10 Z10 F0 G94 ;Approach position at 5000 mm/min N20 G01 X150 Y30 F1 ;Feed 1000 mm/min active N30 Z0 F2 ;Position approached at 500 mm/min N40 Z10 F0 ;Approach position at 5000 mm/min

Table 1- 2 Setting data for the default setting of feedrate F

F function Setting Data F0 $SC_EXTERN_FIXED_FEEDRATE_F1_F9[0] F1 $SC_EXTERN_FIXED_FEEDRATE_F1_F9[1] F2 $SC_EXTERN_FIXED_FEEDRATE_F1_F9[2] F3 $SC_EXTERN_FIXED_FEEDRATE_F1_F9[3] F4 $SC_EXTERN_FIXED_FEEDRATE_F1_F9[4] F5 $SC_EXTERN_FIXED_FEEDRATE_F1_F9[5] F6 $SC_EXTERN_FIXED_FEEDRATE_F1_F9[6] F7 $SC_EXTERN_FIXED_FEEDRATE_F1_F9[7] F8 $SC_EXTERN_FIXED_FEEDRATE_F1_F9[8] F9 $SC_EXTERN_FIXED_FEEDRATE_F1_F9[9] Note: Input format = REAL

Fundamentals of programming

1.2 Prerequisites for the feed

ISO Turning

1.2.4 Linear feed (G94)

On specifying G94, the feed given after the address character F is executed in the mm/min, inch/min or degree/min unit.

1.2.5 Inverse-time feed (G93)

On specifying G93, the feed given after the address character F is executed in the 1/min unit. G93 is a modally effective G function.

Example

N10 G93 G1 X100 F2 ;

i.e., the programmed path is traversed within half a minute.

Note

The time inverse feed 1/min G93 is not implemented for SINUMERIK 802D.

1.2.6 Revolutional feedrate (G95)

On entering G95, the feed is executed in the mm/revolution unit or inch/revolution related to the master spindle.

Note

All of the commands are modal. If the G feed command is switched among G93, G94 or G95, the path feed must be reprogrammed. The feed can also be specified in degree/revolution for the machining with rotary axes.

ISO Turning

Travel commands 2

2.1 Interpolation commands

The positioning and interpolation commands, with which the tool path along the programmed contour, such as a straight line or a circular arc, is monitored, are described in the next Section.

2.1.1 Rapid traverse (G00)

You can use the rapid traverse movements to position the tool rapidly, to travel around the workpiece or to approach tool change points.

The following G functions can be used for positioning (see the table below):

Table 2- 1 G functions for positioning

G function Function G group G00 Rapid traverse 01 G01 Linear motion 01 G02 Circle/helix in clockwise direction 01 G03 Circle/helix in counterclockwise direction 01

Positioning with (G00)

Format

G00 X... Y... Z... ;

G00 with linear interpolation

The tool movement programmed with G00 is executed at the highest possible travel speed (rapid traverse). The rapid traverse rate is defined separately for each axis in the machine data. If the rapid traverse movement is executed simultaneously on several axes, then the rapid traverse rate in case of linear interpolation is determined by the axis, which requires the most time for its section of the path.

Travel commands

2.1 Interpolation commands

ISO Turning

Linear interpolation (G00)

Linear interpolation with G00 is set by setting the machine data 20732 $MC_EXTERN_GO_LINEAR_MODE. Hence all programmed axes traverse in rapid traverse with linear interpolation and reach their target position simultaneously.

2.1.2 Linear interpolation (G01)

With G01 the tool travels on axially parallel, inclined or straight lines arbitrarily positioned in the space. Linear interpolation permits machining of 3D surfaces, grooves, etc.

Format

G01 X... Z... F... ;

In case of G01 the linear interpolation is executed with the path feed. The axes not specified in the block with G01 are also not traversed. The linear interpolation is programmed as given in the example above.

Feed F for path axes

The feedrate is specified under the address F. Depending on the default setting in the machine data, the units of measurement specified with the G commands (G93, G94, G95) are either in mm or inch.

One F value can be programmed per NC block. The unit of the feedrate is defined via one of the G commands mentioned. The feed F acts only on path axes and remains active until a new feed value is programmed. Separators are permitted after address F.

Note If no feed Fxx is programmed in a block with G01 or in the previous blocks, an alarm is given off when a G01 block is executed.

The end point can be specified either as absolute or incremental. For details see the Chapter "Absolute/incremental dimensioning".

;

; =

= :

SURJUDPPHGSRLQW

FXUUHQWWRROSRVLWLRQ

Figure 2-3 Linear interpolation

Travel commands

2.1 Interpolation commands

ISO Turning

;

=

 



*;= *760 ;= *=) ;)

7KHD[HVDUHWUDYHUVHGLQWKHOLQHDULQWHUSRODWLRQ PRGH * 

3URJUDPPLQJH[DPSOH

Figure 2-4 Programming example

2.1.3 Circular interpolation (G02, G03)

Format

With the command given below the rotary tool traverses in the ZX plane on the programmed circular arc. The programmed path velocity is thereby maintained along the arc.

G02(G03) X(U)... Z(W)... I... K... (R...) F... ;

(QGSRLQW

&HQWHUSRLQW

6WDUWSRLQW

;

=

5

= (^) : (^).

W

,

=

Figure 2-5 Circular interpolation

In order to start the circular interpolation, the commands given in the following table are to be executed: