July 2013 8.5 Files 1415
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>
CM 9247
PL B/W/D <Line that fulfills the condition>
–1: Error code in W1022
Error code:
Marker Value Meaning
W1022 1 Start line does not exist in table
2 Incorrect "file handle" or table was opened in "buffered"
mode
3 Impermissible string numbers
7 Module could not be read from the table
20 Module was not called in a spawn job or submit job
29 Incorrect file format
30 Column name not found
31 Syntax error in the transferred condition
32 No data record found that fulfills the condition