Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1634

Hide thumbs Also See for MANUALplus 620:

Advertisement

Write data to table
1634
The triggering touch probe was newly calibrated. The Q parameters Q891,
Q798 and Q799 contain the values determined for radius, center offset in the
principal axis and center offset in the secondary axis.
The following SQL commands update the table entries with the calibration
data.
BIND links the Q parameters with column names:
SQL BIND Q891 "TOOL.R0"
SQL BIND Q798 "TCHPROBE.CAL_OF1"
SQL BIND Q799 "TCHPROBE.CAL_OF2"
SELECT chooses those columns from the table (TNC:\table\tchprobe.tp)
that are to be assigned to the active touch probe (WHERE ACTNR==1):
SQL Q5 "SELECT R0,CAL_OF1,CAL_OF2 FROM 'TNC:\table\tchprobe.tp'
WHERE ACTNR==1"
FETCH reads a row from the result set (HANDLE Q5) and assigns the data
to the bound parameters. With INDEX0, the first row of the selected data is
read:
SQL FETCH Q80 HANDLE Q5 INDEX0
Safety check (Q80 is equal to zero?)
UPDATE writes the values from the bound Q parameters into the table:
SQL UPDATE Q80 HANDLE Q5 INDEX0
Safety check (Q80 is equal to zero?)
COMMIT makes the changes to the table permanent:
SQL COMMIT Q80 HANDLE Q5
Safety check (Q80 is equal to zero?)
Following that, the bindings are undone:
SQL BIND Q891
SQL BIND Q798
SQL BIND Q799
Note
The SQL commands FETCH, UPDATE, COMMIT and ROLLBACK assign a
return code to the Q parameters.
If the command has been completed successfully, the Q parameter is
assigned a zero. If not, it is assigned a one.
You should always make a safety check after these commands.
HEIDENHAIN Technical Manual MANUALplus 620

Advertisement

loading