Accessing tables with SQL commands
9.9
9
TNC 320 | User's Manual
HEIDENHAIN Conversational Programming | 3/2014
305
SQL BIND
SQL BIND
binds 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 or column name cancels the
binding. Binding remains effective at most until the end of the NC
program or subprogram.
You can program any number of bindings. Read and
write processes only take into account the columns
that were entered in the "Select" command.
SQL BIND...
must be programmed
before
"Fetch,"
"Update" or "Insert" commands are programmed.
You can program a "Select" command without a
preceding "Bind" command.
If in the "Select" command you include columns for
which no binding is programmed, an error occurs
during read/write processes (program interrupt).
Parameter no. for result
: Q parameter that is
bound (assigned) to the table column.
Database: column name
: Enter the table name and
column name separated by a
.
.
Table name
: Synonym or path and file name of this
table. The synonym is entered directly, whereas the
path and file name are entered in single quotation
marks
Column designation
: Designation of the table
column as given in the configuration data
Bind a Q parameter to a table column
11SQL BIND Q881
"TAB_EXAMPLE.MEAS_NO"
12SQL BIND Q882
"TAB_EXAMPLE.MEAS_X"
13SQL BIND Q883
"TAB_EXAMPLE.MEAS_Y"
14SQL BIND Q884
"TAB_EXAMPLE.MEAS_Z"
Cancel binding
91 SQL BIND Q881
92 SQL BIND Q882
93 SQL BIND Q883
94 SQL BIND Q884
Summary of Contents for TNC 320
Page 4: ...Controls of the TNC 4 TNC 320 User s Manual HEIDENHAIN Conversational Programming 3 2014 ...
Page 5: ...Fundamentals ...
Page 16: ...Contents 16 TNC 320 User s Manual HEIDENHAIN Conversational Programming 3 2014 ...
Page 43: ...1 First Steps with the TNC 320 ...
Page 63: ...2 Introduction ...
Page 81: ...3 Programming Fundamentals file management ...
Page 124: ......
Page 125: ...4 Programming Programming aids ...
Page 152: ......
Page 153: ...5 Programming Tools ...
Page 180: ......
Page 181: ...6 Programming Programming contours ...
Page 232: ......
Page 233: ...7 Programming Data transfer from DXF files or plain language contours ...
Page 251: ...8 Programming Subprograms and program section repeats ...
Page 267: ...9 Programming Q Parameters ...
Page 337: ...10 Programming Miscellaneous functions ...
Page 357: ...11 Programming Special functions ...
Page 379: ...12 Programming Multiple Axis Machining ...
Page 406: ......
Page 407: ...13 Manual operation and setup ...
Page 462: ......
Page 463: ...14 Positioning with Manual Data Input ...
Page 468: ......
Page 469: ...15 Test run and program run ...
Page 497: ...16 MOD functions ...
Page 525: ...17 Tables and overviews ...