Default Values - Siemens SIMATIC PCS 7 Function Manual

Process control system, advanced process functions apf
Hide thumbs Also See for SIMATIC PCS 7:
Table of Contents

Advertisement

}
The areas highlighted in bold must be specified during the engineering phase.
In the example, the search is for storage locations which have a storage location ID between
the two values
Value 4 , and which were last changed with the editor on Value 5 .
of
These filtered storage locations are then sorted by content in descending order. If there are
multiple storage locations with the same content, they are sorted by storage location ID in
ascending order.
Important points when setting an SQL filter:
● Adhere to the syntax and subsequently check the filter / expected result
● If the values 5 and 6 (date) are used, they cannot be put in ' ' in the SQL filter.
● If no filter is specified, the C code must still be applied and not simply deleted
(strncpy(lpszSQLSort, "", iSQLSortLength-1);).
● The empty sample case in the script must be copied and added under a new number ("case
x:") for each new case .
5.8.1.3

Default values

AS function blocks
The following block inputs are available at the two AS function blocks:
Value 1
Value 2
Value 3
Value 4
Value 5
Value 6
The two date values are divided into two separate double words (as in other APF modules).
These can be connected to the FB_BBD function block, for example. For more details, refer
to the general APF description.
Advanced Process Functions (APF)
Function Manual, 07/2016, A5E38719883-AA
strncpy(lpszSQLFilter, "(REC_ID >= @1@) AND (REC_ID <= @2@) AND
((STOR_CONT > @3@) AND (STOR_CONT < @4@)) AND (CHANGEDATE = @5@)",
iSQLFilterLength-1); //filter string (length <= 1024)
strncpy(lpszSQLSort, "STOR_CONT DESC, REC_ID ASC", iSQLSortLength-1); //sort
string (length <= 1024)
break;
Value 1 and Value 2 , a minimum content of Value 3 and a maximum content
Name
Integer
Integer
Real / float
Real / float
Date
Date
Format
VALUE1
VALUE2
VALUE3
VALUE4
VALUE5 + VALUE5B
VALUE6 + VALUE6B
Storage location management
5.8 Other
Block input
137

Advertisement

Table of Contents
loading

Table of Contents