Storage location management
5.8 Other
5.8
Other
5.8.1
User-defined filter/sorting
5.8.1.1
Basic procedure
Note
You need basic knowledge of T-SQL and the C programming language to create the user-
defined filter / sorting.
The following function blocks / faceplates support user-defined searches:
● FB_STLOC + corresponding faceplate: Storage location search
● FB_STMAT + corresponding faceplate: Material and material lot search
● @PG_FB_ST_SEARCH faceplate: Storage location search
● @PG_FB_MAT_SEARCH faceplate: Material and material lot search
During the engineering phase, you can define a range of user-defined SQL filters / sorting
which then affect the display and processing sequence of the sought-after storage locations.
The filter and sorting are entered directly as SQL syntax. The operator or infeed from the
automation system can include variable values during runtime. Six values are provided for this.
They can be entered directly in the SQL filter with the following placeholders:
Value 1
Value 2
Value 3
Value 4
Value 5
Value 6
A search filter might appear as follows:
(REC_ID > @1@) AND (REC_ID < @2@)
This would mean that only storage locations with a storage location number (REC_ID) between
Value 1 and Value 2 are displayed. The two values are specified at the block inputs (VALUE1
and VALUE2) for FB_STLOC / FB_STMAT and by the operator for the faceplates
@PG_FB_ST_SEARCH / @PG_FB_MAT_SEARCH.
In the C project function FB_GetFilterAndSortValues.fct in the APF\FB_ReadAndWrite_AS_OS
\FB_UA_USER_SPECIFIC folder, various cases can be created and configured (implemented
via a C switch/case instruction) that can later be selected and used in runtime by the operator
or by the automation system.
134
Name
Format
Integer
Integer
Real / float
Real / float
Date
Date
Advanced Process Functions (APF)
Function Manual, 07/2016, A5E38719883-AA
Placeholder
@1@
@2@
@3@
@4@
@5@
@6@