AMBERG, Germany—Siemens’ electronics assembly plant here exemplifies the factory of the future: Smart machines collaborate with each other. Defects, downtime, waste and waiting are not issues. Plant managers and CIOs work together to create a seamless blend of data and production.