HEIDENHAIN TNC 620 User Manual page 348

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

Advertisement

9
Comparison
The results of the following NC programs are identical.
0 BEGIN PGM SQL_READ_WMAT MM
1 SQL Q1800 "CREATE SYNONYM my_table FOR 'TNC:
\table\WMAT.TAB'"
2 SQL BIND QS1800 "my_table.WMAT"
3 SQL QL1 "SELECT WMAT FROM my_table WHERE
NR==3"
...
...
3 SQL SELECT QS1800 "SELECT WMAT FROM my_table
WHERE NR==3"
...
For the instructions within the SQL command, you can
likewise use single or combined QS parameters.
If you check the content of a QS parameter in the
additional status indicator (QPARA tab), then you will see
only the first 30 characters and therefore not the entire
content.
...
3 DECLARE STRING QS1 = "SELECT "
4 DECLARE STRING QS2 = "WMAT "
5 DECLARE STRING QS3 = "FROM "
6 DECLARE STRING QS4 = "my_table "
7 DECLARE STRING QS5 = "WHERE "
8 DECLARE STRING QS6 = "NR==3"
9 QS7 = QS1 || QS2 || QS3 || QS4 || QS5 || QS6
10 SQL SELECT QL1 QS7
11 ...
348
Programming Q parameters | Accessing tables with SQL statements
Create synonym
Bind QS parameters
Define search
Read and save a value
HEIDENHAIN | TNC 620 | Klartext Programming User's Manual | 01/2022

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 620 eTnc 620 programming station

Table of Contents