Siemens SINUMERIK 828D Function Manual page 964

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
PI service: TSEARC
Function: Complex search using search screen form
(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 operation. 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. For this in the block TF in the operand masks (parMaskT..) the relevant
comparison criteria (which tool data is to be compared?) are highlighted,
comparison operator-data (parDataT..) filled with the corresponding comparison types (==, <, >, <=, >=, &&)
to be executed
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":
MagNr
PlaceNr
From
From
WVar1
WVar2
#M1
#P1
#M1
-1
#M1
-1
#M1
#P1
964
MagNr
PlaceNr
To
To
WVar3
WVar4
#M2
#P2
#M1
-1
-1
-1
-1
-1
Search area
Locations starting at magazine #M1, location
#P1 up to magazine #M2, location #P2 are
searched
All locations in magazine #M1 - and no others
- are searched
All locations starting at magazine #M1 are
searched
All locations starting at magazine #M1 and
location #P1 are searched
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Basic Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents