02.93
5 Configuring
5.7 FB 122 Search for empty location with presetting
5.7
FB 122 EMPTY LOCATION 1
Search for empty location with presetting
Description
FB 122 is used for the search for empty locations if the user has set the default tool size, both
for cartridge and chain magazines. The block has to be initialized and called by the user. The
magazine/turret table is searched in accordance with the parameter assignments for the
search area, search direction and tool size and an empty location with corresponding default is
determined. When the required empty location has been found, the function block informs the
user of the location to be assigned via block parameters "MANR" and "PLNR".
The search area is always adapted to the magazine limits. For chain magazines, an actual
position can additionally be specified via parameter "IPOS". If the parameter is not defined
("IPOS" = 0), the actual position is expected to be entered in data word DW 76 of the sub-
magazine-specific user interface. In both cases, the actual position must be within the
magazine limits. If the actual position is outside the search area, the middle of the magazine is
defined as actual position.
Block data
Lib. No.
: E88530-B5522-A
FBs to be loaded
: FB 122, FB 132
DBs to be loaded
: –
Type of FB call
: Conditional, unconditional
DBs to be input
: –
Error messages
: 01: End of magazine < Start of magazine
03: Inadmissible tool size
10: Free internal program channel found
Special features
The block supports up to six-quasi parallel search operations in multi-cycle operation. For this
feature, the DB status word (DBZW) of the magazine table provides a storage area which is
shared by FB 122, FB 111 and FB 112 (neutral tool routine and search for empty location
without configuration). The following rules must be considered to ensure correct execution of a
search job:
The block parameter assignment of a search operation must not change during the search.
The block includes the parameter "PRGK" = No. of the program channel used internally for
the internal job coordination. The default for this parameter must be '0' when the search
operation is called for the first time. In this way, a new job is introduced to the block. The
block, in turn, searches for a free program channel and indicates the number of the free
program channel found to the user via "PRGK" parameter. For any additional FB calls related
to the initiated search, the "PRGK" parameter must be supplied with the number of the
program channel. When the search operation is terminated, the "PRGK" parameter is cleared
by FB 122.
In the case of linear magazines, the search always starts from the actual position, in the case
of non-linear magazines, from PLAA.
© Siemens AG 1991 All Rights Reserved 6FC5 197-0AA40-1BP1
5–23
SINUMERIK 840/880 (PJ)