Detailed description
2.12 Block descriptions
Basic logic functions: PLC Basic program powerline (P3 pl)
146 Function Manual, 11/2006, 6FC5397-0BP10-2BA0
PI service: TSEARC
Function complex search via search screen forms:
(dependent on parameter assignment)
The PI service allows you to search for tools with specified properties within a search domain
(in one or more magazines starting and ending at a specific location). The specified
properties refer only to data of the tools and their cutting edges.
The PI service is only available if tool management is activated.
You can define a search direction and the number of hits for the PI service (e.g., one tool for
the next tool with matching properties or all tools with the specified properties).
As a result of this service, the user who made the call receives a list of the internal T
numbers of the tools found.
The search criteria can only be specified as AND operations. If an application needs to
define an OR operation for the search criteria, it must first execute a series of queries with
AND criteria and then combine/evaluate the results of the individual queries.
To assign the parameters of the PI service, the properties of the required tools are first
defined via variable service in the TF block. To do this, in the block TF in the operand
screens (parMaskT...), the relevant
• comparison criteria (which tool data are to be compared?) are highlighted,
• Comparison operator data (parDataT...) are filled with the corresponding comparison
types (==, <, >, <=, >=, &&) to be done
• and the comparison values are entered in the operand data.
The PI service is then initiated and, after its successful return, the variable service from the
TF block is used to read out the number of hits in the variable resultNrOfTools and the result
list in the variable resultToolNr (i.e., the list of internal T numbers of the tools found in the
search - resultNrOfTools quantity).
The PI service must be encapsulated with a semaphore from its preparation until the
successful return of the result. This is the only way to ensure exclusive access and the
exclusive use of the TF block in conjunction with the TSEARC PI service. The function
number provided for the semaphore feature (PI service MMCSEM) is the function number for
TSEARC.
If the service is configured incorrectly, a malfunction occurs. In all other cases, it will return a
result, even if no tools are found (resultNrOfTools = 0).
The search domain can be defined as follows in the parameters "MagNrFrom",
"PlaceNrFrom", "MagNrTo", "PlaceNrTo":