Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1622

Hide thumbs Also See for MANUALplus 620:

Advertisement

Reading data
Editing data
1622
In order to read the selected data, use SQL BIND to bind the data of a column
to a parameter that accesses the data from the NC program.
The data can be bound to a Q parameter (e.g. SQL BIND Q5 'TOOL.L') or
directly to a system datum of the interpreter (e.g.
SQL SYSBIND ID350 NR52 IDX 1 'PROBE.L'). When a row is read, the content
of the respective columns is stored in the bound parameter. To cancel the
binding, it must be programmed again without specifying a column. The
bindings are globally effective and must be canceled explicitly. The bindings
must be unambiguous. The attempt to bind more than one parameter to a
column will fail.
Use SQL FETCH to read the data of the result row by row. The result set is
identified by the indicated handle. It is therefore possible to read various
result sets alternately. An index in the range from 0 to n can be defined for the
result-set row to be read. If no index is specified, the first row is read. The
result of the function is 0 if data was read and stored in the bound parameters.
The result of the function does not equal 0 if no data was read.
If you want to edit data, you first have to edit the data in the bound parameters.
The SQL UPDATE command, copies the data into the result set which is
identified by the handle. An index in the range from 0 to n can be defined for
the result-set row to be written. If no index is specified, the first row is edited.
The result of the function is 0 if the data have correctly been transferred to the
result set. The result of the function is not 0 if an error occurred during
transfer.
Afterwards the changes are only visible within the edited result set. If you
reread the edited row, the edited data are shown; if you enter a new query and
reread the row, the original data will be shown. Third parties will still see the
original data. The data is not transferred to the table until the transaction has
been concluded. Thus it is possible to edit more than one row in a consistent
manner in one transaction.
HEIDENHAIN Technical Manual MANUALplus 620

Advertisement

loading