Sql Bind - HEIDENHAIN TNC 620 User Manual

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

Advertisement

9

SQL BIND

SQL BIND links a Q parameter to a table column. The SQL
commands FETCH, UPDATE, and INSERT evaluate this binding
(assignment) during data transfer between the result set and the
NC program.
An SQL BIND command without a table name or column name
cancels the binding. At the latest, the binding is terminated at the end
of the NC program or subprogram.
Programming notes:
Program any number of bindings with SQL BIND...,
before using the FETCH, UPDATE, or INSERT
commands.
During the read and write operations, the control
considers only those columns that you have specified
by means of the SELECT command. If you specify
columns without a binding in the SELECT command,
then the control interrupts the read or write operation
with an error message.
Parameter no. for result: Define Q parameter for
binding to the table column
Database: column name: Define table name and
table column (separate with . )
Example: Binding Q parameters to table columns
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"
Example: Remove binding
91 SQL BIND Q881
92 SQL BIND Q882
93 SQL BIND Q883
94 SQL BIND Q884
334
Table name: Synonym or path with filename of
the table
Column name: Name displayed in the table
editor
Programming Q parameters | Accessing tables with SQL statements
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