P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
959
Location_number_to = -1, Magazine_number_to = Magazine_number:
An empty location for the tool specified with a T number is searched for in the specified magazine.
Location_number_ID and magazine_number_ID can be set as search criteria or not (= -1). The PI is
acknowledged positively or negatively depending on the search result.
Location_number_to = Location_number, Magazine_number_to = Magazine_number:
The specified location is checked, to confirm that it is free to be loaded with the specified tool.
Location_number_ID and magazine_number_ID can be set as search criteria or not (= -1). The PI is
acknowledged positively or negatively depending on the search result.
Command parameters 1 and 2 are located at source.
PI service: TMFPBP
Function: Empty location search
(dependent on parameter assignment):
For this see the description of FB 7: PI_SERV2 General PI services
PI service: TMGETT
Function: Determine T-number for the specified tool identifier with duplo number
Determining the T number for a specified tool identifier with duplo number. Whether a T number from the PI
service was found, is displayed in the variable resultNrOfTools in the TF block. If the specified tool does not exist,
then the number 0 is returned. If the number 1 is returned, then the T number is displayed in the variable
resultToolNr in the TF block. Since the PI-service returns a result in the variable resultToolNr, the service is to be
Loading:
If source is an internal loading magazine, then the command parameters are
located at the target (a real magazine).
Unloading:
Source is always a real magazine.
Note
Before and after this PI service, the MMCSEM PI service must be called up with the
associated parameter WVar1 for this PI service. See PI service MMCSEM for more
information.
Parameterization
Signal
Type
Value range
Meaning
PIService
ANY
PI.TMFDPL
Empty location
for loading
Unit
INT
1 - 10
TOA
WVar1
INT
T number
WVar2
INT
Location_number
_to
WVar3
INT
Magazine_number_to
WVar4
INT
Location_number
_ID
WVar5
INT
Magazine_number_ID