5-2 Applications MN19175.2 Tool changerIn this demonstration a Mint program will be used to increase the speed of a typical tool changer application. This isachieved by ensuring that the specified tool is always selected by rotating the tool carousel by the ëshortest pathí.The tool positions are read from the presets table.1. If you are not working through the manual in sequence, you must download your parameter file.See section 4.2.1, steps 3. to 5. if you are not sure how to do this.2. Download the preset table Presets.pre.See section 4.3, steps 3. to 6. if you are not sure how to do this.3. Open the file Toolchanger.mnt.See section 4.2.2. if you are not sure how to do this.4. On the toolbar, click the Start button.5.2.1 Using the programThe program reads the digital inputs to determine which tool is required. In this demonstration, 8 different tools canbe selected by using a combination of input switches 0, 1 and 2, as shown in Table 2.Tool(Bit pattern sum)Input switch 0(Bit pattern value: 1)Input switch 1(Bit pattern value: 2)Input switch 2(Bit pattern value: 4)0 Off Off Off1 On Off Off2 Off On Off3 On On Off4 Off Off On5 On Off On6 Off On On7 On On OnTable 2 - Tool selection using digital inputs1. Confirm input switch 7 is in the off (up) position.2. Use a combination of input switches 0, 1 and 2 to select a tool. For example, to select tool 3 set input switches 0 and1 to the on position.It is important to understand that the program is now using the digital inputs. The input switches are not being usedto directly select a preset move, as they were in section 4.3.1.3. Set input switch 7 to the on position to start the move.The program compares the position of the current tool and the new tool, using information from the presets table.From this, it calculates the shortest (and therefore quickest) way to rotate the tool carousel to select the new tool.To move the new tool into position, the program performs a relative move.The status of the program is shown in the Output window at the bottom of the Edit & Debug screen.