This paper present a Part oriented Sequence of Operation (P-SOP) approach that address flexibility, robustness and deployment in manufacturing cells up to plant level. A P-SOP description language has been formulated where the control strategy based on actual circumstances easily can be defined. Furthermore, a P-SOP multi-agent generator has been created that compiles the strategy description to multi-agents that control the manufacturing. Deadlock free IEC 61131-3 PLC code are directly generated from the description language. The code is not optimised for a specific scenario since the general description contains all possible routing paths and all resources available.