1. An automated system comprising a controller and a plant connected by at least one actor unit and at least one sensor unit, wherein the at least one sensor unit collects and outputs information about the plant to the controller and the controller calculates based on the received information a control signal and outputs the control signal to the at least one actor unit, wherein the controller comprises a processing unit to calculate and output said control signal by the controller, wherein, said automated system further comprises an interpreter generating and executing an execution code on said processing unit, wherein the interpreter receives instructions in form of a tree sequence comprising at least one step, wherein the at least one step comprises at least one statement, wherein at least one statement is an assignment statement defining computational or peripheral procedures to be performed by said controller, or a control flow statement used to initiate a new subsequence, or a suspend statement used to suspend execution at the position of the statement without suspending statements comprised in the respective step, wherein said execution code generated and executed by said interpreter causes the processing unit to sequentially execute the steps of each subsequence, such that each of said steps is executed by the processing unit until all statements comprised in the respective step have been completed, and wherein statements initiated by the same step are executed in a parallel or in a quasi -parallel manner by the processing unit.