HEIDENHAIN TNC 426 PB/M Technical Manual page 645

Table of Contents

Advertisement

December 2001
Module 9247 Searching for a condition in a table
Open the table with Module 9240 not in the "buffered" mode.
The module searches for a field content that fulfills one or more conditions.
The conditions are formulated with the commands of the System Query
Language (SQL) data bank language. Pay attention to the case of the letters
(whether they are small or capital) in the commands and column names.
If you indicate a starting line, the module can search for several suitable field
entries.
Permissible SQL commands:
Command
+,–,*,/
NOT, AND, OR
<,>, <=, >=, ==, <>
LIKE ´abc´
LIKE ´_abc%´
()
MIN(column name)
MAX(column name)
Example:
Search in a pallet table for the line with the NC program 1.H and the set datum
X=–10.
String contents:
WHERE (PAL/PGM LIKE´PGM´) AND (NAME LIKE´1.H´) AND (X==–10)
Call:
PS
D
<File handle>
from Module 9240
PS
B/W/D/K <Starting line>
0 to 65 535
PS
B/W/D/K/S<String number of condition or string with condition>
0 to 7
CM
9247
PL
B/W/D
<Line that fulfills the condition>
–1: Error code in W1022
Display and Operation
Meaning
Arithmetical operators
Logical operators
Comparisons
Text comparison
Partial string
Parentheses
Minimal value from the column
Maximum value from the column
6 – 315

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents