A method , performed in a control system , wherein the control system comprises a programmable logic control section configured to control operation of a machine and a numerical control section configured to control relative motion between a tool of said machine and a work piece , wherein the method comprises: evaluating an input signal , received by the programmable logic control section, in relation to a first condition, wherein the input signal includes information about a state of the tool or about a state of a subtractive process performed via interaction of the tool and the work piece; characterized by : in response to the input signal satisfying the first condition, providing said information to the numerical control section as input to a computer program being executed by the numerical control section; evaluating the input signal in relation to a second condition; and in response to the input signal satisfying the second condition: triggering interruption of the computer program executed by the numerical control section, assigning a second computer program in the numerical control section to be executed by the control system, and providing said information as input to the assigned second computer program; evaluating the input signal in relation to a third condition; and in response to the input signal satisfying the third condition, assigning at least a portion of a computer program in the programmable logic control section to be executed by the control system with said information as input. evaluating an input signal , received by the programmable logic control section, in relation to a first condition, wherein the input signal includes information about a state of the tool or about a state of a subtractive process performed via interaction of the tool and the work piece; characterized by : in response to the input signal satisfying the first condition, providing said information to the numerical control section as input to a computer program being executed by the numerical control section; evaluating the input signal in relation to a second condition; and in response to the input signal satisfying the second condition: triggering interruption of the computer program executed by the numerical control section, assigning a second computer program in the numerical control section to be executed by the control system, and providing said information as input to the assigned second computer program; evaluating the input signal in relation to a third condition; and in response to the input signal satisfying the third condition, assigning at least a portion of a computer program in the programmable logic control section to be executed by the control system with said information as input. in response to the input signal satisfying the first condition, providing said information to the numerical control section as input to a computer program being executed by the numerical control section; evaluating the input signal in relation to a second condition; and in response to the input signal satisfying the second condition: triggering interruption of the computer program executed by the numerical control section, assigning a second computer program in the numerical control section to be executed by the control system, and providing said information as input to the assigned second computer program; triggering interruption of the computer program executed by the numerical control section, assigning a second computer program in the numerical control section to be executed by the control system, and providing said information as input to the assigned second computer program; evaluating the input signal in relation to a third condition; and in response to the input signal satisfying the third condition, assigning at least a portion of a computer program in the programmable logic control section to be executed by the control system with said information as input. <EOS>