Method for configuring an automation system with a plurality of controllers including a first controller and a second controller, the method comprising: - obtaining a first function block having a first interface, which first function block is suitable for a sequential first application compliant with a first standard, the first function block being created by use of a first tool compliant with the first standard; - creating a platform independent model for an event-driven second application compliant with a second standard with a second tool compliant with the second standard, wherein creating the platform independent model comprises incorporating a second function block (30, 32, 34, 36, 38) comprising the first interface and an event interface by accessing a shared database comprising an agnostic presentation of the first function block with the second tool; - creating a platform definition model of the first controller for the second application to form a first controller configuration by using the first tool for defining a configuration of the first function block; - creating a platform specific model for the second application, wherein creating the platform specific model for the second application comprises: - allocating and compiling, with the second tool, a primary part (30, 32, 34) of the second application including the second function block (30, 32, 34, 36, 38) for the first controller and a secondary part (36, 38) of the second application for the second controller; - instantiating the first function block with the first tool; - allocating, with the first tool, logical input/outputs to physical input/outputs; and - compiling the first function block with the first tool into a first application; and - the method comprising downloading the first controller configuration, the first application and the primary part of the second application to the first controller. - obtaining a first function block having a first interface, which first function block is suitable for a sequential first application compliant with a first standard, the first function block being created by use of a first tool compliant with the first standard; - creating a platform independent model for an event-driven second application compliant with a second standard with a second tool compliant with the second standard, wherein creating the platform independent model comprises incorporating a second function block (30, 32, 34, 36, 38) comprising the first interface and an event interface by accessing a shared database comprising an agnostic presentation of the first function block with the second tool; - creating a platform definition model of the first controller for the second application to form a first controller configuration by using the first tool for defining a configuration of the first function block; - creating a platform specific model for the second application, wherein creating the platform specific model for the second application comprises: - allocating and compiling, with the second tool, a primary part (30, 32, 34) of the second application including the second function block (30, 32, 34, 36, 38) for the first controller and a secondary part (36, 38) of the second application for the second controller; - instantiating the first function block with the first tool; - allocating, with the first tool, logical input/outputs to physical input/outputs; and - compiling the first function block with the first tool into a first application; and - the method comprising downloading the first controller configuration, the first application and the primary part of the second application to the first controller. - allocating and compiling, with the second tool, a primary part (30, 32, 34) of the second application including the second function block (30, 32, 34, 36, 38) for the first controller and a secondary part (36, 38) of the second application for the second controller; - instantiating the first function block with the first tool; - allocating, with the first tool, logical input/outputs to physical input/outputs; and - compiling the first function block with the first tool into a first application; and - the method comprising downloading the first controller configuration, the first application and the primary part of the second application to the first controller.