13.17.4.25 PI service: TMGETTFunction: Determine T number for the specified tool name with duplo numberThe PI service is used to determine the T number of a tool via the tool name and duplo number.The result is written in BTSS variables in the TF block (parameterization, return parametersfrom TMGETT, TSEARC):● resultNrOfTools– resultNrOfTools == 0: The specified tool was not found– resultNrOfTools == 1: The specified tool was found● resultToolNr: T number of the specified tool with "resultNrOfTools" == 1NoteBefore and after this PI service, the PI service MMCSEM with parameter "WVar1" must becalled with function number 5 for TMGETT. See Section "PI service: MMCSEM (Page 950)".Description of formal parametersSignal Type Value range DescriptionPIService: ANY "PI".TMGETT Determining the T numberUnit: INT 1, 2, 3 ... 10 TOAAddr1: STRING Max. 32 charac‐tersTool nameWVar1: INT Duplo number13.17.4.26 PI service: TMMVTLFunction: Prepare magazine location for loading, unload toolThe PI service is used to load, unload, and relocate tools:1. Loading and unloading: loading point ↔ magazine)2. Loading and unloading: loading point ↔ buffer storage, e.g. spindle3. Relocation within a magazine4. Relocation between different magazines5. Relocation between magazine and buffer storage6. Relocation within buffer storageCase 1, 3, 4 and 5: The following BTSS variables of the block TM (magazine data: generaldata) are written:● magCmd (area no. = TO unit, line = magazine number)● magCmdState ← "acknowledgment"P3: Basic PLC program for SINUMERIK 840D sl13.17 Block descriptionsBasic FunctionsFunction Manual, 01/2015, 6FC5397-0BP40-5BA2 955