Contents
HEIDENHAIN | TNC 640 | Conversational Programming User's Manual | 10/2017
49
10 Programming Q Parameters........................................................................................................ 375
10.1 Principle and overview of functions................................................................................................ 376
Programming notes..............................................................................................................................378
Calling Q parameter functions............................................................................................................. 379
10.2 Part families—Q parameters in place of numerical values............................................................ 380
Application............................................................................................................................................380
10.3 Describing contours with mathematical functions........................................................................ 381
Application............................................................................................................................................381
Overview.............................................................................................................................................. 381
Programming fundamental operations.................................................................................................382
10.4 Angle functions.................................................................................................................................. 384
Definitions............................................................................................................................................ 384
Programming trigonometric functions................................................................................................. 384
10.5 Calculation of circles..........................................................................................................................385
Application............................................................................................................................................385
10.6 If-then decisions with Q parameters............................................................................................... 386
Application............................................................................................................................................386
Unconditional jumps.............................................................................................................................386
Abbreviations used:..............................................................................................................................386
Programming if-then decisions............................................................................................................ 387
10.7 Checking and changing Q parameters............................................................................................ 388
Procedure............................................................................................................................................. 388
10.8 Additional functions...........................................................................................................................390
Overview.............................................................................................................................................. 390
FN 14: ERROR: Displaying error messages........................................................................................ 391
FN16: F-PRINT – Formatted output of texts and Q parameter values................................................. 395
FN 18: SYSREAD – Reading system data........................................................................................... 402
FN 19: PLC – Transfer values to the PLC............................................................................................432
FN 20: WAIT FOR – NC and PLC synchronization.............................................................................. 433
FN 29: PLC – Transfer values to the PLC............................................................................................434
FN 37: EXPORT................................................................................................................................... 435
FN 38: SEND – Send information from NC program...........................................................................435
10.9 Accessing tables with SQL commands........................................................................................... 436
Introduction.......................................................................................................................................... 436
Overview of functions..........................................................................................................................437
Programming SQL commands.............................................................................................................438
Application example............................................................................................................................. 439
SQL BIND.............................................................................................................................................440