Baixe PGA 0609 en e outras Notas de estudo em PDF para Engenharia Mecânica, somente na Docsity!
SINUMERIK SINUMERIK 840D sl/SINUMERIK 828D Job Planning
Preface
Flexible NC programming 1
File and program
management 2
Protection zones 3
Special motion commands 4
Coordinate transformation
(FRAMES) 5
Transformations 6
Tool offsets 7
Path traversing behavior 8
Axis couplings 9
Motion synchronous actions 10
Oscillation 11
Punching and nibbling 12
Grinding 13
Additional functions 14
User stock removal
programs 15
Tables 16
Appendix A
SINUMERIK
SINUMERIK 840D sl/
SINUMERIK 828D
Job Planning
Programming Manual
6FC5398-2BP20-0BA
Valid for
Control System
SINUMERIK 840D sl/840DE sl
SINUMERIK 828D
Software Version
NCU system software for 840D sl/840DE sl 2.
NCU System software for 828D 2.
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
Order number: 6FC5398-2BP20-0BA Ⓟ 06/
Copyright © Siemens AG 2009. Technical data subject to change
Preface
Job Planning
Standard scope
This Programming Manual describes the functionality afforded by standard functions. Extensions or changes made by the machine tool manufacturer are documented by the machine tool manufacturer.
Other functions not described in this documentation might be executable in the control. This does not, however, represent an obligation to supply such functions with a new control or when servicing.
Further, for the sake of simplicity, this documentation does not contain all detailed information about all types of the product and cannot cover every conceivable case of installation, operation or maintenance.
Technical Support
If you have any questions, please contact our hotline:
Europe/Africa Phone +49 180 5050 - 222 Fax +49 180 5050 - 223 €0.14/min. from German landlines, mobile phone prices may differ Internet http://www.siemens.de/automation/support-request
Americas Phone +1 423 262 2522 Fax +1 423 262 2200 E-mail mailto:[email protected]
Asia/Pacific Phone +86 1064 757575 Fax +86 1064 747474 E-mail mailto:[email protected]
Note
You will find telephone numbers for other countries for technical support on the Internet: http://www.automation.siemens.com/partner
Preface
Job Planning
Questions about the manual
If you have any queries (suggestions, corrections) in relation to this documentation, please fax or e-mail us:
Fax: +49 9131- 98 2176 E-mail: mailto:[email protected]
A fax form is available in the appendix of this document.
SINUMERIK Internet address
http://www.siemens.com/sinumerik
"Fundamentals" and "Job Planning" Programming Manual
The description of the NC programming is divided into two manuals:
- Fundamentals
The "Fundamentals" Programming Manual is intended for use by skilled machine operators with the appropriate expertise in drilling, milling and turning operations. Simple programming examples are used to explain the commands and statements which are also defined according to DIN 66025.
- Job planning
The Programming Manual "Job Planning" is intended for use by technicians with in-depth, comprehensive programming knowledge. By virtue of a special programming language, the SINUMERIK control enables the user to program complex workpiece programs (e.g. for free-form surfaces, channel coordination, ...) and makes programming of complicated operations easy for technologists.
Availability of the described NC language elements
All NC language elements described in the manual are available for the SINUMERIK 840D sl. The availability regarding SINUMERIK 828D can be found in column "828D" of the "List of statements (Page 821)".
Job Planning
Table of contents
Table of contents
Table of contents
Table of contents
Table of contents
- Preface Table of contents
- 1 Flexible NC programming
- 1.1 Variables ......................................................................................................................................
- 1.1.1 General information about variables............................................................................................
- 1.1.2 System variables..........................................................................................................................
- 1.1.3 Predefined user variables: Arithmetic parameters (R).................................................................
- 1.1.4 Predefined user variables: Link variables ....................................................................................
- 1.1.5 Definition of user variables (DEF) ................................................................................................
- 1.1.6 Redefinition of system variables, user variables, and NC language commands (REDEF) .........
- 1.1.7 Attribute: Initialization value .........................................................................................................
- 1.1.8 Attribute: Limit values (LLI, ULI)...................................................................................................
- 1.1.9 Attribute: Physical unit (PHU) ......................................................................................................
- 1.1.10 Attribute: Access rights (APR, APW, APRP, APWP, APRB, APWB) ..........................................
- 1.1.11 Overview of definable and redefinable attributes.........................................................................
- 1.1.12 Definition and initialization of array variables (DEF, SET, REP) .................................................
- 1.1.13 Data types ....................................................................................................................................
- 1.2 Indirect programming ...................................................................................................................
- 1.2.1 Indirectly programming G codes ..................................................................................................
- 1.2.2 Indirectly programming position attributes (BP)...........................................................................
- 1.2.3 Indirectly programming part program lines (EXECSTRING) .......................................................
- 1.3 Arithmetic functions......................................................................................................................
- 1.4 Comparison and logic operations ................................................................................................
- 1.5 Precision correction on comparison errors (TRUNC) ..................................................................
- 1.6 Variable minimum, maximum and range (MINVAL, MAXVAL and BOUND) ..............................
- 1.7 Priority of the operations ..............................................................................................................
- 1.8 Possible type conversions ...........................................................................................................
- 1.9 String operations..........................................................................................................................
- 1.9.1 Type conversion to STRING (AXSTRING) ..................................................................................
- 1.9.2 Type conversion from STRING (NUMBER, ISNUMBER, AXNAME) ..........................................
- 1.9.3 Concatenation of strings (<<).......................................................................................................
- 1.9.4 Conversion to lower/upper case letters (TOLOWER, TOUPPER) ..............................................
- 1.9.5 Determine length of string (STRLEN) ..........................................................................................
- 1.9.6 Search for character/string in the string (INDEX, RINDEX, MINDEX, MATCH)..........................
- 1.9.7 Selection of a substring (SUBSTR) .............................................................................................
- 1.9.8 Selection of a single character (STRINGVAR, STRINGFELD) ...................................................
- 1.10 Program jumps and branches......................................................................................................
- 1.10.1 Return jump to the start of the program (GOTOS) ......................................................................
- 1.10.2 Program jumps to jump markers (GOTOB, GOTOF, GOTO, GOTOC) ......................................
- 1.10.3 Program branch (CASE OF DEFAULT ...) ..........................................................................
- 1.11 Repeat program section (REPEAT, REPEATB, ENDLABEL, P) ................................................
- 1.12 Check structures ........................................................................................................................
- 1.12.1 Program loop with alternative (IF, ELSE, ENDIF)......................................................................
- 1.12.2 Continuous program loop (LOOP, ENDLOOP)......................................................................... Job Planning
- 1.12.3 Count loop (FOR TO ..., ENDFOR)
- 1.12.4 Program loop with condition at start of loop (WHILE, ENDWHILE)..........................................
- 1.12.5 Program loop with condition at the end of the loop (REPEAT, UNTIL)
- 1.12.6 Program example with nested check structures
- 1.13 Program coordination (INIT, START, WAITM, WAITMC, WAITE, SETM, CLEARM)
- 1.14 Interrupt routine (ASUB)............................................................................................................
- 1.14.1 Function of an interrupt routine
- 1.14.2 Creating an interrupt routine
- 1.14.3 Assign and start interrupt routine (SETINT, PRIO, BLSYNC)
- 1.14.4 Deactivating/reactivating the assignment of an interrupt routine (DISABLE, ENABLE)
- 1.14.5 Delete assignment of interrupt routine (CLRINT)
- 1.14.6 Fast retraction from the contour (SETINT LIFTFAST, ALF)
- 1.14.7 Traversing direction for fast retraction from the contour
- 1.14.8 Motion sequence for interrupt routines
- 1.15 Axis replacement, spindle replacement (RELEASE, GET, GETD)...........................................
- 1.16 Transfer axis to another channel (AXTOCHAN)
- 1.17 Activate machine data (NEWCONF).........................................................................................
- 1.18 Write file (WRITE)
- 1.19 Delete file (DELETE).................................................................................................................
- 1.20 Read lines in the file (READ)
- 1.21 Check for presence of file (ISFILE)...........................................................................................
- 1.22 Read out file information (FILEDATE, FILETIME, FILESIZE, FILESTAT, FILEINFO)
- 1.23 Checksum calculation using an array (CHECKSUM)
- 1.24 Roundup (ROUNDUP)
- 1.25 Subprogram technique..............................................................................................................
- 1.25.1 General information...................................................................................................................
- 1.25.1.1 Subprogram
- 1.25.1.2 Subprogram names...................................................................................................................
- 1.25.1.3 Nesting of subprograms
- 1.25.1.4 Search path...............................................................................................................................
- 1.25.1.5 Formal and actual parameters
- 1.25.1.6 Parameter transfer
- 1.25.2 Definition of a subprogram
- 1.25.2.1 Subprogram without parameter transfer
- 1.25.2.2 Subprogram with call-by-value parameter transfer (PROC)
- 1.25.2.3 Subprogram with call-by-reference parameter transfer (PROC, VAR)
- 1.25.2.4 Save modal G functions (SAVE)
- 1.25.2.5 Suppress single block execution (SBLOF, SBLON)
- 1.25.2.6 Suppress current block display (DISPLOF, DISPLON, ACTBLOCNO)....................................
- 1.25.2.7 Identifying subprograms with preparation (PREPRO)
- 1.25.2.8 Subprogram return M17
- 1.25.2.9 RET subprogram return
- 1.25.2.10 Parameterizable subprogram return jump (RET ...)..................................................................
- 1.25.3 Subprogram call
- 1.25.3.1 Subprogram call without parameter transfer.............................................................................
- 1.25.3.2 Subprogram call with parameter transfer (EXTERN)................................................................
- 1.25.3.3 Number of program repetitions (P)
- 1.25.3.4 Modal subprogram call (MCALL) ............................................................................................... Job Planning
- 1.25.3.5 Indirect subprogram call (CALL) ................................................................................................
- (CALL BLOCK TO ...) ............................................................................................................ 1.25.3.6 Indirect subprogram call with specification of the calling program part
- 1.25.3.7 Indirect call of a program programmed in ISO language (ISOCALL) ........................................
- 1.25.3.8 Calling subroutine with path specification and parameters (PCALL).........................................
- 1.25.3.9 Extend search path for subprogram calls (CALLPATH) ............................................................
- 1.25.3.10 Execute external subroutine (EXTCALL)...................................................................................
- 1.25.4 Cycles ........................................................................................................................................
- 1.25.4.1 Cycles: Setting parameters for user cycles ...............................................................................
- 1.26 Macro technique (DEFINE AS) ..............................................................................................
- 2 File and program management..............................................................................................................
- 2.1 Program memory .......................................................................................................................
- 2.2 Working memory (CHANDATA, COMPLETE, INITIAL) ............................................................
- 2.3 Structuring instruction in step editor (SEFORM)........................................................................
- 3 Protection zones
- 3.1 Definition of the protection zones (CPROTDEF, NPROTDEF) .................................................
- 3.2 Activating/deactivating protection zones (CPROT, NPROT).....................................................
- (CALCPOSI)............................................................................................................................... 3.3 Checking for protection zone violation, working area limitation and software limits
- 4 Special motion commands.....................................................................................................................
- 4.1 Approaching coded positions (CAC, CIC, CDC, CACP, CACN) ...............................................
- ENAT, ETAN, PW, SD, PL) ....................................................................................................... 4.2 Spline interpolation (ASPLINE, BSPLINE, CSPLINE, BAUTO, BNAT, BTAN, EAUTO,
- 4.3 Spline grouping (SPLINEPATH) ................................................................................................
- 4.4 NC block compression (COMPON, COMPCURV, COMPCAD, COMPOF)..............................
- 4.5 Polynomial interpolation (POLY, POLYPATH, PO, PL).............................................................
- 4.6 Settable path reference (SPATH, UPATH)................................................................................
- 4.7 Measurements with touch trigger probe (MEAS, MEAW) .........................................................
- 4.8 Extended measuring function (MEASA, MEAWA, MEAC) (option)...........................................
- 4.9 Special functions for OEM users (OEMIPO1, OEMIPO2, G810 to G829) ................................
- 4.10 Feed reduction with corner deceleration (FENDNORM, G62, G621)........................................
- ADISPOSA)................................................................................................................................ 4.11 Programmed end-of-motion criterion (FINEA, COARSEA, IPOENDA, IPOBRKA,
- 4.12 Programmable servo parameter set (SCPARA) ........................................................................
- 5 Coordinate transformation (FRAMES)
- 5.1 Coordinate transformation via frame variables ..........................................................................
- 5.1.1 Predefined frame variable ($P_BFRAME, $P_IFRAME, $P_PFRAME, $P_ACTFRAME)........
- 5.2 Frame variables/assigning values to frames .............................................................................
- 5.2.1 Assigning direct values (axis value, angle, scale) .....................................................................
- 5.2.2 Reading and changing frame components (TR, FI, RT, SC, MI)...............................................
- 5.2.3 Linking complete frames ............................................................................................................
- 5.2.4 Defining new frames (DEF FRAME) Job Planning
- 5.3 Coarse and fine offsets (CFINE, CTRANS)
- 5.4 External zero offset
- 5.5 Preset offset (PRESETON).......................................................................................................
- 5.6 Frame calculation from three measuring points in space (MEAFRAME)
- 5.7 NCU global frames....................................................................................................................
- 5.7.1 Channel-specific frames ($P_CHBFR, $P_UBFR)
- 5.7.2 Frames active in the channel
- 6 Transformations.....................................................................................................................................
- 6.1 General programming of transformation types
- 6.1.1 Orientation movements for transformations..............................................................................
- 6.1.2 Overview of orientation transformation TRAORI.......................................................................
- 6.2 Three, four and five axis transformation (TRAORI)
- 6.2.1 General relationships of universal tool head.............................................................................
- 6.2.2 Three, four and five axis transformation (TRAORI)
- 6.2.3 Variants of orientation programming and initial setting (ORIRESET)
- 6.2.4 Programming of the tool orientation (A..., B..., C..., LEAD, TILT)
- 6.2.5 Face milling (3D-milling A4, B4, C4, A5, B5, C5)......................................................................
- 6.2.6 Orientation axis reference (ORIWKS, ORIMKS).......................................................................
- ORIVIRT1, ORIVIRT2).............................................................................................................. 6.2.7 Programming orientation axes (ORIAXES, ORIVECT, ORIEULER, ORIRPY, ORIRPY2,
- ORICONCW, ORICONCCW, ORICONTO, ORICONIO).......................................................... 6.2.8 Orientation programming along the peripheral surface of a taper (ORIPLANE,
- PO[ZH]=) 6.2.9 Specification of orientation for two contact points (ORICURVE, PO[XH]=, PO[YH]=,
- 6.3 Orientation polynomials (PO[angle], PO[coordinate])...............................................................
- 6.4 Rotations of the tool orientation (ORIROTA, ORIROTR, ORIROTT, ORIROTC, THETA).......
- 6.5 Orientations relative to the path
- 6.5.1 Orientation types relative to the path
- rotation) 6.5.2 Rotation of the tool orientation relative to the path (ORIPATH, ORIPATHS, angle of
- 6.5.3 Interpolation of the tool rotation relative to the path (ORIROTC, THETA)................................
- 6.5.4 Smoothing of orientation characteristic (ORIPATHS A8=, B8=, C8=)
- 6.6 Compression of the orientation (COMPON, COMPCURV, COMPCAD)..................................
- 6.7 Smoothing the orientation characteristic (ORISON, ORISOF)
- 6.8 Kinematic transformation
- 6.8.1 Milling on turned parts (TRANSMIT).........................................................................................
- 6.8.2 Cylinder surface transformation (TRACYL)
- 6.8.3 Inclined axis (TRAANG)
- 6.8.4 Inclined axis programming (G05, G07)
- 6.9 Cartesian PTP travel
- 6.9.1 PTP for TRANSMIT...................................................................................................................
- 6.10 Constraints when selecting a transformation
- 6.11 Deselect transformation (TRAFOOF)
- 6.12 Chained transformations (TRACON, TRAFOOF)
- 7 Tool offsets Job Planning
- 7.1 Offset memory............................................................................................................................
- 7.2 Additive offsets...........................................................................................................................
- 7.2.1 Selecting additive offsets (DL) ...................................................................................................
- 7.2.2 Specify wear and setup values ($TC_SCPxy[t,d], $TC_ECPxy[t,d]) .........................................
- 7.2.3 Delete additive offsets (DELDL).................................................................................................
- 7.3 Special handling of tool offsets ..................................................................................................
- 7.3.1 Mirroring of tool lengths .............................................................................................................
- 7.3.2 Wear sign evaluation .................................................................................................................
- TOWBCS, TOWTCS, TOWKCS)............................................................................................... 7.3.3 Coordinate system of the active machining operation (TOWSTD, TOWMCS, TOWWCS,
- 7.3.4 Tool length and plane change....................................................................................................
- 7.4 Online tool offset (PUTFTOCF, FCTDEF, PUTFTOC, FTOCON, FTOCOF)............................
- 7.5 Activate 3D tool offsets (CUT3DC..., CUT3DF...)......................................................................
- 7.5.1 Activating 3D tool offsets (CUT3DC, CUT3DF, CUT3DFS, CUT3DFF, ISD)............................
- 7.5.2 3D tool offset peripheral milling, face milling .............................................................................
- 7.5.3 3D tool offset Tool shapes and tool data for face milling...........................................................
- 7.5.4 3D tool offset Compensation on the path, path curvature, insertion depth (CUT3DC, ISD) .....
- 7.5.5 3D tool offset Inside/outside corners and intersection procedure (G450/G451) .......................
- 7.5.6 3D tool offset 3D circumferential milling with limitation surfaces ...............................................
- 7.5.7 3D tool offset Taking into consideration a limitation surface (CUT3DCC, CUT3DCCD)...........
- 7.6 Tool orientation (ORIC, ORID, OSOF, OSC, OSS, OSSE, ORIS, OSD, OST).........................
- 7.7 Free assignment of D numbers, cutting edge numbers.............................................................
- 7.7.1 Free assignment of D numbers, cutting edge numbers (CE address) ......................................
- 7.7.2 Free assignment of D numbers: Checking D numbers (CHKDNO)...........................................
- 7.7.3 Free assignment of D numbers: Rename D numbers (GETDNO, SETDNO) ...........................
- (GETACTTD) ............................................................................................................................. 7.7.4 Free assignment of D numbers: Determine T number to the specified D number
- 7.7.5 Free assignment of D numbers: Invalidate D numbers (DZERO) .............................................
- 7.8 Tool holder kinematics ...............................................................................................................
- TCOFRX, TCOFRY, TCOFRZ).................................................................................................. 7.9 Tool length compensation for orientable toolholders (TCARR, TCOABS, TCOFR,
- 7.10 Online tool length compensation (TOFFON, TOFFOF).............................................................
- 7.11 Cutting data modification for tools that can be rotated (CUTMOD) ...........................................
- 8 Path traversing behavior........................................................................................................................
- 8.1 Tangential control (TANG, TANGON, TANGOF, TLIFT, TANGDEL)........................................
- 8.2 Feedrate response (FNORM, FLIN, FCUB, FPO) .....................................................................
- STOPRE) ................................................................................................................................... 8.3 Program sequence with preprocessing memory (STOPFIFO, STARTFIFO, FIFOCTRL,
- 8.4 Conditionally interruptible program sections (DELAYFSTON, DELAYFSTOF) ........................
- 8.5 Preventing program position for SERUPRO (IPTRLOCK, IPTRUNLOCK) ...............................
- REPOSHA, DISR, DISPR, RMI, RMB, RME, RMN).................................................................. 8.6 Repositioning to a contour (REPOSA, REPOSL, REPOSQ, REPOSQA, REPOSH,
- 8.7 Influencing the motion control ....................................................................................................
- 8.7.1 Percentage jerk correction (JERKLIM) Job Planning
- 8.7.2 Percentage velocity correction (VELOLIM)...............................................................................
- 8.7.3 Program example for JERKLIM and VELOLIM.........................................................................
- 8.8 Programmable contour/orientation tolerance (CTOL, OTOL, ATOL)
- 9 Axis couplings........................................................................................................................................
- 9.1 Coupled motion (TRAILON, TRAILOF).....................................................................................
- 9.2 Curve tables (CTAB)
- 9.2.1 Define curve tables (CTABDEF, CATBEND)............................................................................
- 9.2.2 Check for presence of curve table (CTABEXISTS)
- 9.2.3 Delete curve tables (CTABDEL)
- 9.2.4 Locking curve tables to prevent deletion and overwriting (CTABLOCK, CTABUNLOCK)
- CTABPERIOD).......................................................................................................................... 9.2.5 Curve tables: Determine table properties (CTABID, CTABISLOCK, CTABMEMTYP,
- CTABSEV, CTAB, CTABINV, CTABTMIN, CTABTMAX)......................................................... 9.2.6 Read curve table values (CTABTSV, CTABTEV, CTABTSP, CTABTEP, CTABSSV,
- CTABFPOL, CTABMPOL) CTABSEGID, CTABSEG, CTABFSEG, CTABMSEG, CTABPOLID, CTABPOL,
- 9.3 Axial leading value coupling (LEADON, LEADOF)
- 9.4 Electronic gear (EG)..................................................................................................................
- 9.4.1 Defining an electronic gear (EGDEF)
- 9.4.2 Switch-in the electronic gearbox (EGON, EGONSYN, EGONSYNE)
- 9.4.3 Switching-in the electronic gearbox (EGOFS, EGOFC)
- 9.4.4 Deleting the definition of an electronic gear (EGDEL)
- 9.4.5 Rotational feedrate (G95) / electronic gear (FPR)
- 9.5 Synchronous spindle.................................................................................................................
- COUPOF, COUPOFS, COUPRES, WAITC) 9.5.1 Synchronous spindle: Programming (COUPDEF, COUPDEL, COUPON, COUPONC,
- 9.6 Master/slave group (MASLDEF, MASLDEL, MASLON, MASLOF, MASLOFS).......................
- 10 Motion synchronous actions
- 10.1 Basics........................................................................................................................................
- 10.1.1 Area of validity and machining sequence (ID, IDS)
- 10.1.2 Cyclically checking the condition (WHEN, WHENEVER, FROM, EVERY)
- 10.1.3 Actions (DO)..............................................................................................................................
- 10.2 Operators for conditions and actions
- 10.3 Main run variables for synchronized actions.............................................................................
- 10.3.1 System variables.......................................................................................................................
- 10.3.2 Implicit type conversion.............................................................................................................
- 10.3.3 GUD variables...........................................................................................................................
- 10.3.4 Default axis identifier (NO_AXIS)..............................................................................................
- 10.3.5 Synchronized action marker ($AC_MARKER[n])......................................................................
- 10.3.6 Synchronized action parameters ($AC_PARAM[n])
- 10.3.7 Arithmetic parameter ($R[n]).....................................................................................................
- 10.3.8 Read and write NC machine and NC setting data
- 10.3.9 Timer variable ($AC_Timer[n])
- 10.3.10 FIFO variables ($AC_FIFO1[n] $AC_FIFO10[n])
- $AC_BLOCKTYPEINFO, $AC_SPLITBLOCK)......................................................................... 10.3.11 Information about block types in the interpolator ($AC_BLOCKTYPE,
- 10.4 Actions in synchronized actions................................................................................................. Job Planning
- 10.4.1 Overview of possible actions in synchronized actions...............................................................
- 10.4.2 Output of auxiliary functions.......................................................................................................
- 10.4.3 Set read-in disable (RDISABLE)................................................................................................
- 10.4.4 Cancel preprocessing stop (STOPREOF) .................................................................................
- 10.4.5 Delete distance-to-go (DELDTG)...............................................................................................
- 10.4.6 Polynomial definition (FCTDEF) ................................................................................................
- 10.4.7 Synchronized function (SYNFCT)..............................................................................................
- 10.4.8 Closed-loop clearance control with limited correction ($AA_OFF_MODE) ...............................
- 10.4.9 Online tool offset (FTOC)...........................................................................................................
- 10.4.10 Online tool length compensation ($AA_TOFF) ..........................................................................
- 10.4.11 Positioning movements..............................................................................................................
- 10.4.12 Position axis (POS)....................................................................................................................
- 10.4.13 Position in specified reference range (POSRANGE).................................................................
- 10.4.14 Start/stop axis (MOV).................................................................................................................
- 10.4.15 Axis replacement (RELEASE, GET) ..........................................................................................
- 10.4.16 Axial feed (FA) ...........................................................................................................................
- 10.4.17 Software limit switch ..................................................................................................................
- 10.4.18 Axis coordination........................................................................................................................
- 10.4.19 Set actual values (PRESETON) ................................................................................................
- 10.4.20 Spindle motions .........................................................................................................................
- 10.4.21 Coupled motion (TRAILON, TRAILOF) .....................................................................................
- 10.4.22 Leading value coupling (LEADON, LEADOF) ...........................................................................
- 10.4.23 Measuring (MEAWA, MEAC).....................................................................................................
- 10.4.24 Initialization of array variables (SET, REP)................................................................................
- 10.4.25 Set/delete wait markers (SETM, CLEARM)...............................................................................
- 10.4.26 Fault responses (SETAL)...........................................................................................................
- 10.4.27 Travel to fixed stop (FXS, FXST, FXSW, FOCON, FOCOF).....................................................
- 10.4.28 Determining the path tangent in synchronized actions..............................................................
- 10.4.29 Determining the current override ...............................................................................................
- 10.4.30 Time use evaluation of synchronized actions ............................................................................
- 10.5 Technology cycles .....................................................................................................................
- 10.5.1 Context variable ($P_TECCYCLE) ............................................................................................
- 10.5.2 Call-by-value parameters...........................................................................................................
- 10.5.3 Default parameter initialization...................................................................................................
- 10.5.4 Control processing of technology cycles (ICYCOF, ICYCON) ..................................................
- 10.5.5 Cascading technology cycles.....................................................................................................
- 10.5.6 Technology cycles in non-modal synchronized actions.............................................................
- 10.5.7 Check structures (IF) .................................................................................................................
- 10.5.8 Jump instructions (GOTO, GOTOF, GOTOB) ...........................................................................
- 10.5.9 Lock, unlock, reset (LOCK, UNLOCK, RESET).........................................................................
- 10.6 Delete synchronized action (CANCEL)......................................................................................
- 10.7 Control behavior in specific operating states .............................................................................
- 11 Oscillation
- 11.1 Asynchronous oscillation (OS, OSP1, OSP2, OST1, OST2, OSCTRL, OSNSC, OSE, OSB) ...
- 11.2 Oscillation controlled by synchronized actions (OSCILL)..........................................................
- 12 Punching and nibbling
- 12.1 Activation, deactivation ..............................................................................................................
- PDELAYOF, PUNCHACC) ........................................................................................................ 12.1.1 Punching and nibbling on or off (SPOF, SON, PON, SONS, PONS, PDELAYON,
- 12.2 Automatic path segmentation ....................................................................................................
- 12.2.1 Path segmentation for path axes Job Planning
- 12.2.2 Path segmentation for single axes............................................................................................
- 13 Grinding
- 13.1 Grinding-specific tool monitoring in the part program (TMON, TMOF).....................................
- 14 Additional functions................................................................................................................................
- 14.1 Axis functions (AXNAME, AX, SPI, AXTOSPI, ISAXIS, AXSTRING, MODAXVAL).................
- 14.2 Replaceable geometry axes (GEOAX)
- 14.3 Axis container (AXCTSWE, AXCTSWED)................................................................................
- 14.4 Check scope of NC language present (STRINGIS)..................................................................
- 14.5 Function call ISVAR and read machine data array index
- 14.6 Learn compensation characteristics (QECLRNON, QECLRNOF)
- 14.7 Interactively call the window from the part program (MMC)
- 14.8 Program runtime/part counter
- 14.8.1 Program runtime/part counter (overview)
- 14.8.2 Program runtime
- 14.8.3 Workpiece counter
- 14.9 Alarms (SETAL)
- 15 User stock removal programs
- 15.1 Supporting functions for stock removal.....................................................................................
- 15.2 Generate contour table (CONTPRON)
- 15.3 Generate coded contour table (CONTDCON)
- 15.4 Determine point of intersection between two contour elements (INTERSEC)
- 15.5 Execute the contour elements of a table block-by-block (EXECTAB)
- 15.6 Calculate circle data (CALCDAT)
- 15.7 Deactivate contour preparation (EXECUTE)
- 16 Tables....................................................................................................................................................
- A Appendix................................................................................................................................................
- A.1 List of abbreviations
- A.2 Feedback on the documentation...............................................................................................
- A.3 Overview
- Glossary
- Index......................................................................................................................................................
Flexible NC programming
1.1 Variables
Job Planning
User variables are subdivided into:
- Predefined user variables
Predefined user variables are variables which have already been defined in the system and whose number simply has to be parameterized by the user via specific machine data. The user can make significant changes to the properties of these variables. See "Redefinition of system variables, user variables, and NC language commands (REDEF) (Page 31)".
User-defined variables are variables which are defined exclusively by the user and are not created by the system until runtime. Their number, data type, visibility, and all other properties are defined exclusively by the user.
See "Definition of user variables (DEF) (Page 24)".
See also
System variables (Page 16)
Predefined user variables: Arithmetic parameters (R) (Page 19)
Predefined user variables: Link variables (Page 21)
1.1.2 System variables
System variables are variables which are predefined in the system and provide access to the current parameter settings associated with the control, as well as machine, control, and process statuses, in part programs and cycles.
Preprocessing variables
Preprocessing variables are system variables which are read and written in the context of preprocessing; in other words at the point in time at which the part program block in which the system variable is programmed is interpreted. Preprocessing variables do not trigger preprocessing stops.
Flexible NC programming
1.1 Variables ......................................................................................................................................
Job Planning
Main run variables
Main run variables are system variables which are read and written in the context of the main run; in other words at the point in time at which the part program block in which the system variable is programmed is executed. The following are main run variables:
● System variables which can be programmed in synchronized actions (read/write)
● System variables which can be programmed in the part program and trigger preprocessing stops (read/write)
● System variables which can be programmed in the part program and whose value is calculated during preprocessing but not written until the main run (main run synchronized: write only).
Prefix system
In order that they can be specifically identified, the names of system variables are usually preceded by a prefix comprising the $ sign followed by one or two letters and an underscore.
$ + 1st letter Significance: Data type System variables which are read/written during preprocessing $M Machine data 1) $S Setting data, protection zones 1) $T Tool management data $P Programmed values $C Cycle variables of ISO envelope cycles $O Option data R R-parameters (arithmetic parameters) 2) System variables which are read/written during the main run $$M Machine data 1) $$S Setting data 1) $A Up-to-date main run data $V Servo data $R R-parameters (arithmetic parameters) 2)
- When machine and setting data are used in the part program/cycle as preprocessing variables, the prefix is written with one $ sign. When they are used in synchronized actions as main run variables, the prefix is written with 2 $ characters.
- When an R-parameter is used in the part program/cycle as a preprocessing variable the prefix is omitted, e.g. R10. When it is used in a synchronized action as a main run variable, a $ sign is written as a prefix, e.g. $R10.
Flexible NC programming
1.1 Variables
Job Planning
Note Writing machine data
When writing an item of machine or setting data, it is important to ensure that the access level which is active when the part program/cycle is executed permits write access and that the data is set to take "IMMEDIATE" effect.
References
A list of the properties of all system variables appears in:
/PGA1/ Parameter Manual, System Variables
See also
Data types (Page 57)
1.1.3 Predefined user variables: Arithmetic parameters (R)
Function
Arithmetic parameters or R-parameters are predefined user variables with the designation R, defined as an array of the REAL data type. For historical reasons, notation both with array index, e.g. R[10], and without array index, e.g. R10, is permitted for R-parameters.
When using synchronized actions, the $ sign must be included as a prefix, e.g. $R10.
Syntax
When used as a preprocessing variable: R R[]
When used as a main run variable: $R $R[]
Flexible NC programming
1.1 Variables
Job Planning
Significance
R: Identifier when used as a preprocessing variable, e.g. in the part program $R: Identifier when used as a main run variable, e.g. in synchronized actions Type: REAL Range of values: For a non-exponential notation: ± (0.000 0001 to 9999 9999) Note: A maximum of 8 decimal places are permitted. For an exponential notation: ± (110 -300^ to 110 +300^ ) Note:
- Notation: EX e.g. 8.2EX-
- A maximum of 10 characters are permitted including sign and decimal point.
Number of the R-parameter Type: INT
:
Range of values: 0 - MAX_INDEX Note MAX_INDEX is calculated from the parameterized number of R-parameters: MAX_INDEX = (MD $MN_MM_NUM_R_PARAM) - 1 : Array index Any expression can be used as an array index, as long as the result of the expression can be converted into the INT data type (INT, REAL, BOOL, CHAR).