Currently, most of the factory and material flow operations in manufacturing industries are carried out in static factory layouts. Due to the static layout, there is a limitation in flexibility. Flexibility denotes the ability to change the factory layout to optimize the production process for different production programmes. In this context, there is a need for research in the direction of modular, decentralized and distributed process planning for dynamic factory layouts. One major challenge is the design of an appropriate strategy for communication between the factory modules and the identification of appropriate communication technologies. The communication design has two main requirements. First, to make use of wireless communication for changing the factory structure. Second, the communication strategy should be able to quickly identify the current factory layout and the interconnection of factory resources. According to the current state of knowledge, Light Fidelity (Li-Fi) is one of the adaptable technology to fulfill these requirements. In this thesis, a concept for the integration of Li-Fi communication in the factory planning laboratory is proposed. The distributed factory layouts are demonstrated by applying Li-Fi communication. Specific experiments are conducted to design a robust Li-Fi protocol with a suitable transceiver and reliable communication. RIOT-OS, Arduino-Mega 2560, Li-Fi transceivers and Fischertechink factory modules are used to build modular factory structures.