3.3 Interrupt routine (ASUB).......................................................................................................539
3.3.1 Function of an interrupt routine ............................................................................................539
3.3.2 Creating an interrupt routine ................................................................................................540
3.3.3 Assign and start interrupt routine (SETINT, PRIO, BLSYNC)..............................................540
3.3.4 Deactivating/reactivating the assignment of an interrupt routine (DISABLE, ENABLE).......543
3.3.5 Delete assignment of interrupt routine (CLRINT).................................................................543
3.3.6 Fast retraction from the contour (SETINT LIFTFAST, ALF).................................................544
3.3.7 Traversing direction for fast retraction from the contour .....................................................546
3.3.8 Motion sequence for interrupt routines.................................................................................549
3.4 File and Program Management............................................................................................551
3.4.1 Program memory .................................................................................................................551
3.4.1.1 Program memory in the NCK ...............................................................................................551
3.4.1.2 External program memory....................................................................................................553
3.4.1.3 Addressing program memory files .......................................................................................554
3.4.1.4 Search path for subprogram call ..........................................................................................559
3.4.1.5 Interrogating the path and file name ....................................................................................560
3.4.2 Working memory (CHANDATA, COMPLETE, INITIAL).......................................................561
3.5 File handling.........................................................................................................................565
3.5.1 Write file (WRITE) ................................................................................................................565
3.5.2 Delete file (DELETE)............................................................................................................568
3.5.3 Read lines in the file (READ) ...............................................................................................569
3.5.4 Check for presence of file (ISFILE) ......................................................................................571
3.5.5 Read out file information (FILEDATE, FILETIME, FILESIZE, FILESTAT, FILEINFO).........572
3.6 Protection zones ..................................................................................................................575
3.6.1 Defining protection zones (CPROTDEF, NPROTDEF)........................................................575
3.6.2 Activating/deactivating protection zones (CPROT, NPROT) ...............................................578
3.6.3 Checking for protection zone violation, working area limitation and software limit
switches (CALCPOSI)..........................................................................................................582
3.7 Special motion commands ...................................................................................................592
3.7.1 Approaching coded positions (CAC, CIC, CDC, CACP, CACN)..........................................592
3.7.2 Spline interpolation (ASPLINE, BSPLINE, CSPLINE, BAUTO, BNAT, BTAN, EAUTO,
ENAT, ETAN, PW, SD, PL)..................................................................................................592
3.7.3 Spline group (SPLINEPATH) ...............................................................................................603
3.7.4 Activating/deactivating NC block compression (COMPON, COMPCURV, COMPCAD,
COMPSURF, COMPOF)......................................................................................................604
3.7.5 Polynomial interpolation (POLY, POLYPATH, PO, PL) .......................................................605
3.7.6 Settable path reference (SPATH, UPATH) ..........................................................................610
3.7.7 Channel-specific measuring (MEAS, MEAW) ......................................................................612
3.7.8 Axis-specific measurement (MEASA, MEAWA, MEAC) (option) .........................................615
3.7.9 Special functions for OEM users (OMA1 ... OMA5, OEMIPO1, OEMIPO2, G810 ... G829)....623
3.7.10 Feedrate reduction with corner deceleration (FENDNORM, G62, G621) ...........................624
3.7.11 Programmable end of motion criteria (FINEA, COARSEA, IPOENDA, IPOBRKA,
ADISPOSA)..........................................................................................................................625
3.8 Coordinate transformations (frames) ...................................................................................628
3.8.1 Coordinate transformation via frame variables ....................................................................628
3.8.1.1 Predefined frame variable ($P_CHBFRAME, $P_IFRAME, $P_PFRAME,
$P_ACTFRAME) ..................................................................................................................630
3.8.2 Value assignments to frames...............................................................................................633
3.8.2.1 Assigning direct values (axis value, angle, scale)................................................................633
Table of contents
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 13