After execution of the PI service, the T number of the tool created is available in the TV blockunder TnumWZV.NoteBefore and after this PI service, the PI service MMCSEM with parameter "WVar1" must becalled with function number 1 for TMCRTO. See Section "PI service: MMCSEM (Page 950)".Description of formal parametersSignal Type Value range DescriptionPIService: ANY "PI".TMCRTO Create toolUnit: INT 1, 2, 3 ... 10 TOAWVar1: INT 1) T numberWVar2: INT Duplo numberAddr1: STRING Max. 32 charac‐tersTool name1)T number > 0 ⇒ the T number is specifiedT number > -1 ⇒ the NC assigns the T number13.17.4.23 PI service: TMFDPLFunctionSearch for empty location for loading, depending on the parameter assignment:● Location_number_to = -1 AND Magazine_number_to = -1Searches all magazines in the specified area (= channel) for an empty location for the toolspecified with a T number. After execution of the PI service, the magazine and locationsnumbers found during the search are listed in the configuration block of the channel(component magCMCmdPar1 (magazine number) and magCMCmdPar2 (locationnumber)). Location_number_ID and magazine_number_ID can be set as search criteria ornot (= -1). The PI service is positively or negatively acknowledged depending on the searchresult.● Location_number_to = -1 AND Magazine_number_to = Magazine_numberAn empty location for the tool specified with a T number is searched for in the specifiedmagazine. Location number_ID and magazine number_ID can be set as a search criterionor with -1. The PI service is positively or negatively acknowledged depending on the searchresult.● Location_number_to = Location_number AND Magazine_number_to = Magazine_numberThe specified location is checked, to confirm that it is free to be loaded with the specifiedtool. Location_number_ID and magazine_number_ID can be set as search criteria or -1.The PI service is acknowledged positively or negatively depending on the search result.P3: Basic PLC program for SINUMERIK 840D sl13.17 Block descriptionsBasic Functions952 Function Manual, 01/2015, 6FC5397-0BP40-5BA2