HEIDENHAIN TNC 620 User Manual page 337

Klartext programming
Hide thumbs Also See for TNC 620:
Table of Contents

Advertisement

Programming Q parameters | Accessing tables with SQL statements
Conditions for WHERE entries
Condition
Equals
Not equal to
Less than
Less than or equal to
Greater than
Greater than or equal to
Empty
Not empty
Linking multiple conditions:
Logical AND
Logical OR
Example: selection of table rows
11 SQL BIND Q881 "Tab_Example.Position_Nr"
12 SQL BIND Q882 "Tab_Example.Measure_X"
13 SQL BIND Q883 "Tab_Example.Measure_Y"
14 SQL BIND Q884 "Tab_Example.Measure_Z"
. . .
20 SQL Q5 "SELECT Position_Nr,Measure_X,Measure_Y,
Measure_Z FROM Tab_Example"
Example: Select table rows with the WHERE function
20 SQL Q5 "SELECT Position_Nr,Measure_X,Measure_Y,
Measure_Z FROM Tab_Example WHERE
Position_Nr<20"
Example: Select table rows with the WHERE function and Q
parameter
20 SQL Q5 "SELECT Position_Nr,Measure_X,Measure_Y,
Measure_Z FROM Tab_Example WHERE
Position_Nr==:'Q11'"
Example: Define the table name with absolute path information
20 SQL Q5 "SELECT Position_Nr,Measure_X,Measure_Y,
Measure_Z FROM 'V:\table\Tab_Example' WHERE
Position_Nr<20"
Example: Generate a table with CREATE TABLE
0 BEGIN PGM SQL_CREATE_TAB MM
1 SQL Q10 "CREATE SYNONYM NEW FOR 'TNC:\table
\NewTab.TAB'"
2 SQL Q10 "CREATE TABLE NEW AS SELECT X,Y,Z FROM
'TNC:\prototype_for_NewTab.tab'"
3 END PGM SQL_CREATE_TAB MM
HEIDENHAIN | TNC 620 | Klartext Programming User's Manual | 01/2022
Programming
= ==
!= <>
<
<=
>
>=
IS NULL
IS NOT NULL
AND
OR
Create synonym
Create table
9
337

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 620 eTnc 620 programming station

Table of Contents