Programming: Q Parameters
9.6
If-then decisions with Q parameters
9
276
TNC 320 | User's Manual
HEIDENHAIN Conversational Programming | 3/2014
9.6
If-then decisions with Q parameters
Application
The TNC can make logical if-then decisions by comparing a Q
parameter with another Q parameter or with a numerical value.
If the condition is fulfilled, the TNC continues the program at the
label that is programmed after the condition (for information on
labels, see "Labeling Subprograms and Program Section Repeats",
page 252). If it is not fulfilled, the TNC continues with the next
block.
To call another program as a subprogram, enter a
PGM CALL
program call after the block with the target label.
Unconditional jumps
An unconditional jump is programmed by entering a conditional
jump whose condition is always true. Example:
FN 9: IF+10 EQU+10 GOTO LBL1
Programming if-then decisions
Press the JUMP soft key to call the if-then conditions. The TNC
then displays the following soft keys:
Function
Soft key
FN 9
: IF EQUAL, JUMP
e.g.
FN 9: IF +Q1 EQU +Q3 GOTO LBL
“UPCAN25“
If both values or parameters are equal, jump to
specified label
FN 9
: IF UNDEFINED, JUMP
e.g.
FN 9: IF +Q1 IS UNDEFINED GOTO LBL
“UPCAN25“
If the given parameter is undefined, jump to the
specified label
FN 9
: IF DEFINED, JUMP
e.g.
FN 9: IF +Q1 IS DEFINED GOTO LBL
“UPCAN25“
If the given parameter is defined, jump to the
specified label
FN 10
: IF NOT EQUAL TO, JUMP
e.g.
FN 10: IF +10 NE –Q5 GOTO LBL 10
If both values or parameters are not equal, jump
to specified label
FN 11
: IF GREATER, JUMP
e.g.
FN 11: IF+Q1 GT+10 GOTO LBL 5
If the first value or parameter is greater than the
second value or parameter, jump to specified
label
FN 12
: IF SMALLER, JUMP
e.g.
FN 12: IF+Q5 LT+0 GOTO LBL “ANYNAME“
If the first value or parameter is smaller than the
second value or parameter, jump to specified
label
Содержание TNC 320
Страница 4: ...Controls of the TNC 4 TNC 320 User s Manual HEIDENHAIN Conversational Programming 3 2014 ...
Страница 5: ...Fundamentals ...
Страница 16: ...Contents 16 TNC 320 User s Manual HEIDENHAIN Conversational Programming 3 2014 ...
Страница 43: ...1 First Steps with the TNC 320 ...
Страница 63: ...2 Introduction ...
Страница 81: ...3 Programming Fundamentals file management ...
Страница 124: ......
Страница 125: ...4 Programming Programming aids ...
Страница 152: ......
Страница 153: ...5 Programming Tools ...
Страница 180: ......
Страница 181: ...6 Programming Programming contours ...
Страница 232: ......
Страница 233: ...7 Programming Data transfer from DXF files or plain language contours ...
Страница 251: ...8 Programming Subprograms and program section repeats ...
Страница 267: ...9 Programming Q Parameters ...
Страница 337: ...10 Programming Miscellaneous functions ...
Страница 357: ...11 Programming Special functions ...
Страница 379: ...12 Programming Multiple Axis Machining ...
Страница 406: ......
Страница 407: ...13 Manual operation and setup ...
Страница 462: ......
Страница 463: ...14 Positioning with Manual Data Input ...
Страница 468: ......
Страница 469: ...15 Test run and program run ...
Страница 497: ...16 MOD functions ...
Страница 525: ...17 Tables and overviews ...