HEIDENHAIN TNC 620 User Manual page 342

Conversational programming cnc control; nc software 817600-03; 817601-03; 817605-03
Hide thumbs Also See for TNC 620:
Table of Contents

Advertisement

9
Programming: Q Parameters
9.9
Accessing tables with SQL commands
SQL COMMIT
SQL COMMIT transfers all rows in the result set back to the table. A
lock set with SELECT...FOR UPDATE is canceled.
The handle given in the SQL SELECT command loses its validity.
Parameter no. for result:Q parameter in which the
SQL server reports the result:
0: No error
1: Error occurred (incorrect Handle or same entry
in columns, in which unambiguous entries are
required)
Database: SQL access ID: Q parameter with the
handle
Further Information:
SQL ROLLBACK
How SQL ROLLBACK is executed depends on whether INDEX is
programmed:
If INDEX is not programmed: The result set is
the table (any changes/insertions are discarded). The transaction
is closed and the handle given in the SQL SELECT command loses
its validity. Typical application: Ending a transaction with read-
access only
If INDEX is programmed: The indexed row remains. All other rows
are deleted from the result set. The transaction is
A lock set with SELECT...FOR UPDATE remains for the indexed
row; for all other rows it is reset
Parameter no. for result: Q parameter in which the
SQL server reports the result:
0: No error
1: Error occurred (incorrect handle)
Database: SQL access ID: Q parameter with the
handle
Further Information:
Database: Index for SQL result: Row that is
to remain in the result set. Either enter the row
number directly or program the Q parameter
containing the index
342
for identifying the result set
SQL SELECT, page 338
not
for identifying the result set
SQL SELECT, page 338
HEIDENHAIN | TNC 620 | Conversational Programming User's Manual | 10/2015
11SQL BIND Q881
12SQL BIND Q882
13SQL BIND Q883
14SQL BIND Q884
. . .
20SQL Q5 "SELECT
. . .
30 SQL FETCH Q1HANDLE Q5 INDEX
. . .
40 SQL UPDATEQ1 HANDLE Q5 INDEX
. . .
50 SQL COMMITQ1 HANDLE Q5
11SQL BIND Q881
written back to
12SQL BIND Q882
13SQL BIND Q883
14SQL BIND Q884
not
concluded.
. . .
20SQL Q5 "SELECT
. . .
30 SQL FETCH Q1HANDLE Q5 INDEX
. . .
50 SQL ROLLBACKQ1 HANDLE Q5
"TAB_EXAMPLE.MEAS_NO"
"TAB_EXAMPLE.MEAS_X"
"TAB_EXAMPLE.MEAS_Y"
"TAB_EXAMPLE.MEAS_Z"
MEAS_NO,MEAS_X,MEAS_Y,
MEAS_Z FROM TAB_EXAMPLE"
+Q2
+Q2
"TAB_EXAMPLE.MEAS_NO"
"TAB_EXAMPLE.MEAS_X"
"TAB_EXAMPLE.MEAS_Y"
"TAB_EXAMPLE.MEAS_Z"
MEAS_NO,MEAS_X,MEAS_Y,
MEAS_Z FROM TAB_EXAMPLE"
+Q2

Advertisement

Table of Contents
loading

Table of Contents