We are looking at a simple method to identify tooling on a injection molding production line. I want to create a simple circuit using a DIP switch that would send a binary code back to a PLC to tell it what mold is currently setup. We are not going to use more than 15 molds, so I purchased a 4 position DIP switch. These DIP switches will stay with the mold. I need a simple circuit that would identify the mold, send the binary code to the PLC (24 v input). I would like to keep it at 5v to the dip switch and then up the voltage to 24v so the plc can read the code. I will use standard 9 pin D connector for the connection method. My electronic experience is basic, but learning rapidly. Any help would be appreciated.