Functions - 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

5.4.3

Functions

Overview
The AS function block "FB_STLOC" is used to search storage locations for a material from the
AS. You specify the storage location using a search filter defined in the AS. The "FB_UA_RM"
block sends the search query to the OS. The OS returns up to 10 storage locations matching
the search. In automatic mode, the first storage location is selected. In manual mode, the
operator selects the storage location using the corresponding faceplate. The data for the
selected storage location are available in the AS at the outputs of the "FB_STLOC" block.
When storage is started, the system checks the selected storage location against the filter
criteria again and reserves the specified quantity of storage location content in the user archive.
This quantity reservation is canceled again once storage is complete.
"Search" function
Once search criteria have been specified, the search is started with a positive edge at the
"L_SEARCH" input of the block. The OS returns up to 10 storage locations matching the
search. The number of storage locations found is output in the AS at the "QHITS" output of
the block.
The following feedback is output when the "Search" function is completed:
● The search was successful: QSEL_POS = 1, QRUN_ERR = 0
● The search was not successful: QSEL_POS = 0, QRUN_ERR = 1
Selecting the storage location
There are two modes, "Manual" and "Auto":
● "Manual" mode
The operator selects the required storage location by clicking on the corresponding line in
the faceplate. The search can be started again with the "Search" button. Provided storage
has not been started, you can change the storage location by starting a new search
("Search" button or edge change "L_SEARCH")
● "Auto" mode
The first storage location is automatically selected. Provided storage has not been started,
you can change the storage location by switching to manual mode and starting a new search
("Search" button or "L_SEARCH" edge change).
Once the storage location is selected, feedback is output with QSEL_OK=1; the data of the
selected storage location are available for further processing at the outputs in the AS.
"START" function
Following a positive edge at the "L_START" output of the block, the system checks the selected
storage location against the filter criteria and, if they match, reserves the setpoint quantity at
the storage location. This quantity is reserved by adding the quantity to be stored to the
"STOR_USE_IN" cell in the user archive. The data of the active storage location are available
at the block outputs in the AS for further processing.
Advanced Process Functions (APF)
Function Manual, 07/2016, A5E38719883-AA
Storage location management
5.4 FB_STLOC
95

Advertisement

Table of Contents
loading

Table of Contents