In this paper, we present an approach to how to store production plans directly on an RFID tag in the form of an automaton. Based on a modular manufacturing system, this enables manufacturing systems to become more flexible and changeable and, in addition, reduces the engineering effort for adaptation in an existing plant. The connection between different production modules is implemented via carriers and a Mealy machine that is stored on an RFID tag. This machine's states represent the production steps of the product on the carrier.