Abstract: A system is for configuring control instructions for a tool assembly formed as a pipe string arranged at least partially to be inserted into a borehole, in which pipe string components are comprise unique, machine-readable identification carriers which are recognizable to a control system via one or more readers. The control system is linked to as database containing as component-data set for each pipe string component, and the control system is arranged to include the corresponding component-data set in a control-instruction set after a pipe string component has been recorded by a reader, in order thereby to generate control instructions for associated drilling-operation equipment in accordance with the relevant composition of the pipe string at any time. A method is for configuring control instructions for a tool assembly formed as a pipe string arranged at least partially to be inserted into a borehole is described as well.